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\ThirdPartyBundle\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
/**
* @internal
* @coversNothing
*/
class ThirdPartyControllerTest extends WebTestCase
{
public function testIndex()
@@ -26,5 +37,4 @@ class ThirdPartyControllerTest extends WebTestCase
$crawler = $client->request('GET', '/update');
}
}

View File

@@ -1,11 +1,22 @@
<?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\ThirdParty\Tests\Entity;
use Chill\ThirdPartyBundle\Entity\ThirdParty;
use Chill\ThirdPartyBundle\Entity\ThirdPartyCategory;
use PHPUnit\Framework\TestCase;
/**
* @internal
* @coversNothing
*/
class ThirdPartyTest extends TestCase
{
public function testAddingRemovingActivityTypes()
@@ -34,8 +45,10 @@ class ThirdPartyTest extends TestCase
$tp->removeTypesAndCategories('type');
$tp->removeTypesAndCategories($cat2);
$this->assertTrue($tp->getCategories()->contains($cat1),
"test that cat1 is still present");
$this->assertTrue(
$tp->getCategories()->contains($cat1),
'test that cat1 is still present'
);
$this->assertFalse($tp->getCategories()->contains($cat2));
$this->assertCount(1, $tp->getCategories());
@@ -55,7 +68,7 @@ class ThirdPartyTest extends TestCase
'type1',
'type2',
$cat1 = new ThirdPartyCategory(),
$cat2 = new ThirdPartyCategory()
$cat2 = new ThirdPartyCategory(),
]);
$this->assertTrue($tp->getCategories()->contains($cat1));
@@ -88,5 +101,4 @@ class ThirdPartyTest extends TestCase
$this->assertContains('type1', $tp->getTypesAndCategories());
$this->assertNotContains('type2', $tp->getTypesAndCategories());
}
}