@@ -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; |
@@ -48,15 +48,15 @@ |
||
| 48 | 48 | { |
| 49 | 49 | $arrayField = new ArrayField('my-field'); |
| 50 | 50 | |
| 51 | - $this->assertExceptionRaised(\Exception::class, function () use ($arrayField) { |
|
| 51 | + $this->assertExceptionRaised(\Exception::class, function() use ($arrayField) { |
|
| 52 | 52 | $arrayField->render('a string'); |
| 53 | 53 | }); |
| 54 | 54 | |
| 55 | - $this->assertExceptionRaised(\Exception::class, function () use ($arrayField) { |
|
| 55 | + $this->assertExceptionRaised(\Exception::class, function() use ($arrayField) { |
|
| 56 | 56 | $arrayField->render(12); |
| 57 | 57 | }); |
| 58 | 58 | |
| 59 | - $this->assertExceptionRaised(\Exception::class, function () use ($arrayField) { |
|
| 59 | + $this->assertExceptionRaised(\Exception::class, function() use ($arrayField) { |
|
| 60 | 60 | $arrayField->render(new stdClass()); |
| 61 | 61 | }); |
| 62 | 62 | } |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | { |
| 27 | 27 | $linkField = new Date('my-field'); |
| 28 | 28 | |
| 29 | - $this->assertExceptionRaised(\Exception::class, function () use ($linkField) { |
|
| 29 | + $this->assertExceptionRaised(\Exception::class, function() use ($linkField) { |
|
| 30 | 30 | $linkField->render('2017-10-05'); |
| 31 | 31 | }); |
| 32 | 32 | } |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | $configurationFactory |
| 48 | 48 | ->expects($this->once()) |
| 49 | 49 | ->method('create') |
| 50 | - ->willReturnCallback(function ($field, $configuration) use ($actionConfiguration, $fieldConfiguration) { |
|
| 50 | + ->willReturnCallback(function($field, $configuration) use ($actionConfiguration, $fieldConfiguration) { |
|
| 51 | 51 | $this->assertInstanceOf(StringField::class, $field); |
| 52 | 52 | $this->assertEquals([ |
| 53 | 53 | 'length' => 200, |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | |
| 55 | 55 | $repository = new FakeRepository($entityManager, $metadata, TestEntity::class); |
| 56 | 56 | |
| 57 | - $this->assertExceptionRaised(\LogicException::class, function () use ($repository, $entity) { |
|
| 57 | + $this->assertExceptionRaised(\LogicException::class, function() use ($repository, $entity) { |
|
| 58 | 58 | $repository->save($entity); |
| 59 | 59 | }); |
| 60 | 60 | } |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | |
| 104 | 104 | $repository = new FakeRepository($entityManager, $metadata, TestEntity::class); |
| 105 | 105 | |
| 106 | - $this->assertExceptionRaised(\LogicException::class, function () use ($repository, $entity) { |
|
| 106 | + $this->assertExceptionRaised(\LogicException::class, function() use ($repository, $entity) { |
|
| 107 | 107 | $repository->delete($entity); |
| 108 | 108 | }); |
| 109 | 109 | } |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | */ |
| 46 | 46 | protected function invalidEntityTest(FormFactory $formFactory, AdminInterface $admin) |
| 47 | 47 | { |
| 48 | - $this->assertExceptionRaised(Exception::class, function () use ($formFactory, $admin) { |
|
| 48 | + $this->assertExceptionRaised(Exception::class, function() use ($formFactory, $admin) { |
|
| 49 | 49 | $formFactory->create( |
| 50 | 50 | TestFormType::class, |
| 51 | 51 | [], |