cs: Fix code style (safe rules only).

This commit is contained in:
Pol Dellaiera
2021-11-23 14:06:38 +01:00
parent 149d7ce991
commit 8f96a1121d
1223 changed files with 65199 additions and 64625 deletions

View File

@@ -1,9 +1,20 @@
<?php
/**
* Chill is a software for social workers
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Chill\ReportBundle\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
/**
* @internal
* @coversNothing
*/
class ChillReportExtensionTest extends KernelTestCase
{
/*
@@ -11,19 +22,20 @@ class ChillReportExtensionTest extends KernelTestCase
*/
public function testDeclareReportAsCustomizable()
{
self::bootKernel(array('environment' => 'test'));
self::bootKernel(['environment' => 'test']);
$customizablesEntities = static::$kernel->getContainer()
->getParameter('chill_custom_fields.customizables_entities');
->getParameter('chill_custom_fields.customizables_entities');
$reportFounded = false;
foreach ($customizablesEntities as $customizablesEntity) {
if($customizablesEntity['class'] === 'Chill\ReportBundle\Entity\Report') {
if ('Chill\ReportBundle\Entity\Report' === $customizablesEntity['class']) {
$reportFounded = true;
}
}
if(! $reportFounded) {
throw new Exception("Class Chill\ReportBundle\Entity\Report not found in chill_custom_fields.customizables_entities", 1);
if (!$reportFounded) {
throw new Exception('Class Chill\\ReportBundle\\Entity\\Report not found in chill_custom_fields.customizables_entities', 1);
}
}
}