Completed
Push — refonte ( addcdf...2c2b90 )
by Arnaud
05:47 queued 02:37
created
src/LAG/AdminBundle/Tests/AdminTestBase.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -65,12 +65,12 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
AdminBundle/Tests/AdminBundle/DependencyInjection/LAGAdminExtensionTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
AdminBundle/Tests/AdminBundle/DependencyInjection/FieldCompilerPassTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
src/LAG/AdminBundle/Tests/AdminBundle/Action/Registry/RegistryTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,11 +23,11 @@
 block discarded – undo
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
     
Please login to merge, or discard this patch.
src/LAG/AdminBundle/Tests/AdminBundle/Action/Factory/ActionFactoryTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -239,13 +239,13 @@
 block discarded – undo
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' => [],
Please login to merge, or discard this patch.
src/LAG/AdminBundle/Tests/AdminBundle/Admin/Registry/RegistryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
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
     
Please login to merge, or discard this patch.
src/LAG/AdminBundle/Tests/AdminBundle/Admin/AdminTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -419,7 +419,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/LAG/AdminBundle/Tests/AdminBundle/Field/ArrayFieldTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -48,15 +48,15 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/LAG/AdminBundle/Tests/AdminBundle/Field/DateTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.