@@ -63,7 +63,7 @@ |
||
| 63 | 63 | * using the logger using info channel |
| 64 | 64 | * |
| 65 | 65 | * @param $flashMessage |
| 66 | - * @param null $logMessage |
|
| 66 | + * @param string $logMessage |
|
| 67 | 67 | */ |
| 68 | 68 | public function handleSuccess($flashMessage, $logMessage = null) |
| 69 | 69 | { |
@@ -274,7 +274,7 @@ discard block |
||
| 274 | 274 | /** |
| 275 | 275 | * Check if the Entity manager is open or closed. |
| 276 | 276 | * |
| 277 | - * @return bool |
|
| 277 | + * @return boolean|null |
|
| 278 | 278 | */ |
| 279 | 279 | public function isOpen() |
| 280 | 280 | { |
@@ -345,7 +345,7 @@ discard block |
||
| 345 | 345 | /** |
| 346 | 346 | * Checks whether the state of the filter collection is clean. |
| 347 | 347 | * |
| 348 | - * @return boolean True, if the filter collection is clean. |
|
| 348 | + * @return boolean|null True, if the filter collection is clean. |
|
| 349 | 349 | */ |
| 350 | 350 | public function isFiltersStateClean() |
| 351 | 351 | { |
@@ -355,7 +355,7 @@ discard block |
||
| 355 | 355 | /** |
| 356 | 356 | * Checks whether the Entity Manager has filters. |
| 357 | 357 | * |
| 358 | - * @return boolean True, if the EM has a filter collection. |
|
| 358 | + * @return boolean|null True, if the EM has a filter collection. |
|
| 359 | 359 | */ |
| 360 | 360 | public function hasFilters() |
| 361 | 361 | { |
@@ -517,7 +517,7 @@ discard block |
||
| 517 | 517 | * |
| 518 | 518 | * @param object $object |
| 519 | 519 | * |
| 520 | - * @return bool |
|
| 520 | + * @return boolean|null |
|
| 521 | 521 | */ |
| 522 | 522 | public function contains($object) |
| 523 | 523 | { |
@@ -65,12 +65,12 @@ |
||
| 65 | 65 | // initialise database |
| 66 | 66 | if (!self::$isDatabaseCreated) { |
| 67 | 67 | // TODO remove database at the end of the tests |
| 68 | - exec(__DIR__ . '/app/console doctrine:database:create --if-not-exists', $output); |
|
| 69 | - exec(__DIR__ . '/app/console doctrine:schema:update --force', $output); |
|
| 68 | + exec(__DIR__.'/app/console doctrine:database:create --if-not-exists', $output); |
|
| 69 | + exec(__DIR__.'/app/console doctrine:schema:update --force', $output); |
|
| 70 | 70 | |
| 71 | 71 | foreach ($output as $line) { |
| 72 | 72 | // TODO only in verbose mode |
| 73 | - fwrite(STDOUT, $line . "\n"); |
|
| 73 | + fwrite(STDOUT, $line."\n"); |
|
| 74 | 74 | } |
| 75 | 75 | fwrite(STDOUT, "\n"); |
| 76 | 76 | self::$isDatabaseCreated = true; |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | } |
| 173 | 173 | |
| 174 | 174 | /** |
| 175 | - * @param $name |
|
| 175 | + * @param string $name |
|
| 176 | 176 | * @return ActionInterface | PHPUnit_Framework_MockObject_MockObject |
| 177 | 177 | */ |
| 178 | 178 | protected function mockAction($name) |
@@ -246,7 +246,7 @@ discard block |
||
| 246 | 246 | /** |
| 247 | 247 | * Return a mock of an entity repository |
| 248 | 248 | * |
| 249 | - * @return RepositoryInterface | PHPUnit_Framework_MockObject_MockObject |
|
| 249 | + * @return \PHPUnit\Framework\MockObject\MockObject | PHPUnit_Framework_MockObject_MockObject |
|
| 250 | 250 | */ |
| 251 | 251 | protected function mockEntityRepository() |
| 252 | 252 | { |
@@ -312,7 +312,7 @@ discard block |
||
| 312 | 312 | } |
| 313 | 313 | |
| 314 | 314 | /** |
| 315 | - * @return TokenStorageInterface | PHPUnit_Framework_MockObject_MockObject |
|
| 315 | + * @return \PHPUnit\Framework\MockObject\MockObject | PHPUnit_Framework_MockObject_MockObject |
|
| 316 | 316 | */ |
| 317 | 317 | protected function mockTokenStorage() |
| 318 | 318 | { |
@@ -351,7 +351,7 @@ discard block |
||
| 351 | 351 | } |
| 352 | 352 | |
| 353 | 353 | /** |
| 354 | - * @return TranslatorInterface | PHPUnit_Framework_MockObject_MockObject |
|
| 354 | + * @return \PHPUnit\Framework\MockObject\MockObject | PHPUnit_Framework_MockObject_MockObject |
|
| 355 | 355 | */ |
| 356 | 356 | protected function mockTranslator() |
| 357 | 357 | { |
@@ -362,7 +362,7 @@ discard block |
||
| 362 | 362 | |
| 363 | 363 | /** |
| 364 | 364 | * @param array $entities |
| 365 | - * @return DataProviderInterface|PHPUnit_Framework_MockObject_MockObject |
|
| 365 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
| 366 | 366 | */ |
| 367 | 367 | protected function mockDataProvider($entities = []) |
| 368 | 368 | { |
@@ -104,7 +104,7 @@ |
||
| 104 | 104 | $logger = new Definition(Logger::class, [ |
| 105 | 105 | 'default' |
| 106 | 106 | ]); |
| 107 | - $session= new Definition(Session::class); |
|
| 107 | + $session = new Definition(Session::class); |
|
| 108 | 108 | |
| 109 | 109 | $entityManager = new Definition(); |
| 110 | 110 | $entityManager->setClass(FakeEntityManager::class); |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | $this->assertEquals('setConfiguration', $fieldCalls[0][0]); |
| 50 | 50 | |
| 51 | 51 | $this->assertInstanceOf(Reference::class, $fieldCalls[0][1][0]); |
| 52 | - $this->assertEquals('lag.admin.application', (string)$fieldCalls[0][1][0]); |
|
| 52 | + $this->assertEquals('lag.admin.application', (string) $fieldCalls[0][1][0]); |
|
| 53 | 53 | |
| 54 | 54 | } |
| 55 | 55 | |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | |
| 74 | 74 | $this->assertExceptionRaised( |
| 75 | 75 | InvalidConfigurationException::class, |
| 76 | - function () use ($compilerPass, $containerBuilder) { |
|
| 76 | + function() use ($compilerPass, $containerBuilder) { |
|
| 77 | 77 | // process the compiler pass |
| 78 | 78 | $compilerPass->process($containerBuilder); |
| 79 | 79 | } |
@@ -23,11 +23,11 @@ |
||
| 23 | 23 | $registry->add('my.action', $action); |
| 24 | 24 | |
| 25 | 25 | // an exception SHOULD be thrown if an Action with the same has already been registered |
| 26 | - $this->assertExceptionRaised(Exception::class, function () use ($registry, $action) { |
|
| 26 | + $this->assertExceptionRaised(Exception::class, function() use ($registry, $action) { |
|
| 27 | 27 | $registry->add('my.action', $action); |
| 28 | 28 | }); |
| 29 | 29 | |
| 30 | - $this->assertExceptionRaised(Exception::class, function () use ($registry, $action) { |
|
| 30 | + $this->assertExceptionRaised(Exception::class, function() use ($registry, $action) { |
|
| 31 | 31 | $registry->get('badName'); |
| 32 | 32 | }); |
| 33 | 33 | |
@@ -239,13 +239,13 @@ |
||
| 239 | 239 | $actionRegistry |
| 240 | 240 | ); |
| 241 | 241 | |
| 242 | - $this->assertExceptionRaised(Exception::class, function () use ($actionFactory) { |
|
| 242 | + $this->assertExceptionRaised(Exception::class, function() use ($actionFactory) { |
|
| 243 | 243 | $actionFactory->getActions('test', [ |
| 244 | 244 | 'lol', |
| 245 | 245 | ]); |
| 246 | 246 | }); |
| 247 | 247 | |
| 248 | - $this->assertExceptionRaised(LogicException::class, function () use ($actionFactory) { |
|
| 248 | + $this->assertExceptionRaised(LogicException::class, function() use ($actionFactory) { |
|
| 249 | 249 | $actionFactory->getActions('test', [ |
| 250 | 250 | 'actions' => [ |
| 251 | 251 | 'my-action' => [], |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | $registry->add($admin); |
| 23 | 23 | |
| 24 | 24 | // an exception SHOULD be thrown if an Admin with the same has already been registered |
| 25 | - $this->assertExceptionRaised(Exception::class, function () use ($registry, $admin) { |
|
| 25 | + $this->assertExceptionRaised(Exception::class, function() use ($registry, $admin) { |
|
| 26 | 26 | $registry->add($admin); |
| 27 | 27 | }); |
| 28 | 28 | |
@@ -419,7 +419,7 @@ |
||
| 419 | 419 | $authorizationChecker |
| 420 | 420 | ->expects($this->exactly(2)) |
| 421 | 421 | ->method('isGranted') |
| 422 | - ->willReturnCallback(function () use (&$i) { |
|
| 422 | + ->willReturnCallback(function() use (&$i) { |
|
| 423 | 423 | $i++; |
| 424 | 424 | |
| 425 | 425 | return $i <= 1; |