apply more cs rules for php-cs

This commit is contained in:
2023-10-17 13:27:03 +02:00
parent 0b0cbed9db
commit bc2041cbdd
1485 changed files with 8169 additions and 9620 deletions

View File

@@ -11,7 +11,6 @@ declare(strict_types=1);
namespace Chill\MainBundle\Test;
use LogicException;
use Symfony\Bundle\FrameworkBundle\KernelBrowser;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
@@ -26,15 +25,14 @@ trait PrepareClientTrait
* @param string $username the username (default 'center a_social')
* @param string $password the password (default 'password')
*
* @throws LogicException
* @throws \LogicException
*/
public function getClientAuthenticated(
$username = 'center a_social',
$password = 'password'
): KernelBrowser {
if (!$this instanceof WebTestCase) {
throw new LogicException(sprintf('The current class does not '
. 'implements %s', WebTestCase::class));
throw new \LogicException(sprintf('The current class does not implements %s', WebTestCase::class));
}
return static::createClient([], [