Passed
Push — master ( 45ac95...d04c5a )
by Carsten
12:05
created
module/Auth/test/AuthTest/Service/ForgotPasswordTest.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -71,12 +71,12 @@  discard block
 block discarded – undo
71 71
             ->getMock();
72 72
 
73 73
         $this->loginFilterMock = $this->getMockBuilder('Auth\Filter\LoginFilter')
74
-                                         ->disableOriginalConstructor()
75
-                                         ->getMock();
74
+                                            ->disableOriginalConstructor()
75
+                                            ->getMock();
76 76
 
77 77
         $this->optionsMock = $this->getMockBuilder('Auth\Options\ModuleOptions')
78
-                                         ->disableOriginalConstructor()
79
-                                         ->getMock();
78
+                                            ->disableOriginalConstructor()
79
+                                            ->getMock();
80 80
 
81 81
         $this->testedObject = new ForgotPassword($this->userRepositoryMock, $this->tokenGeneratorMock, $this->loginFilterMock, $this->optionsMock);
82 82
 
@@ -149,8 +149,8 @@  discard block
 block discarded – undo
149 149
     }
150 150
 
151 151
     /**
152
-    * @todo fix or delete
153
-    */
152
+     * @todo fix or delete
153
+     */
154 154
     /*
155 155
     public function testProceed()
156 156
     {
Please login to merge, or discard this patch.
module/Core/src/ModuleManager/Feature/VersionProviderTrait.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
                 $version = sprintf(
72 72
                     '%s%s',
73 73
                     str_replace('-g', '@', $output[0]),
74
-                    isset($output[1]) ? ' [' . $output[1] . ']' : ''
74
+                    isset($output[1]) ? ' ['.$output[1].']' : ''
75 75
                 );
76 76
             }
77 77
         }
@@ -91,8 +91,8 @@  discard block
 block discarded – undo
91 91
         }
92 92
 
93 93
         $reflClass = new \ReflectionClass($this);
94
-        $psr4ComposerFile = dirname($reflClass->getFilename(), 2) . '/composer.json';
95
-        $psr0ComposerFile = dirname($psr4ComposerFile, 2) . '/composer.json';
94
+        $psr4ComposerFile = dirname($reflClass->getFilename(), 2).'/composer.json';
95
+        $psr0ComposerFile = dirname($psr4ComposerFile, 2).'/composer.json';
96 96
 
97 97
         $composerFile =
98 98
             file_exists($psr4ComposerFile)
Please login to merge, or discard this patch.
module/Core/src/View/Helper/ModuleVersionFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
         $moduleManager = $container->get('ModuleManager');
28 28
         $modules       = array_filter(
29 29
             $moduleManager->getLoadedModules(),
30
-            function ($i) {
30
+            function($i) {
31 31
                 return strpos($i, 'Zend\\') !== 0 && strpos($i, 'Doctrine') !== 0;
32 32
             },
33 33
             ARRAY_FILTER_USE_KEY
Please login to merge, or discard this patch.
module/Core/src/View/Helper/ModuleVersion.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
     public function setModule(string $module): ModuleVersion
48 48
     {
49 49
         if (!isset($this->modules[$module])) {
50
-            throw new OutOfBoundsException('Unknown module ' . $module);
50
+            throw new OutOfBoundsException('Unknown module '.$module);
51 51
         }
52 52
 
53 53
         $this->module = $this->modules[$module];
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Collection/IdentityWrapperTest.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     
35 35
     protected function setUp(): void
36 36
     {
37
-        $getEntryMock = function ($id) {
37
+        $getEntryMock = function($id) {
38 38
             $entry = $this->getMockBuilder(\stdClass::class)
39 39
                 ->setMethods(['getId'])
40 40
                 ->getMock();
@@ -291,11 +291,11 @@  discard block
 block discarded – undo
291 291
     public function testExistsWithKey()
292 292
     {
293 293
         $searchKey = key($this->entries);
294
-        $this->assertTrue($this->identityWrapper->exists(function ($key) use ($searchKey) {
294
+        $this->assertTrue($this->identityWrapper->exists(function($key) use ($searchKey) {
295 295
             return $key === $searchKey;
296 296
         }));
297 297
         $searchKey = 'non-existent';
298
-        $this->assertFalse($this->identityWrapper->exists(function ($key) use ($searchKey) {
298
+        $this->assertFalse($this->identityWrapper->exists(function($key) use ($searchKey) {
299 299
             return $key === $searchKey;
300 300
         }));
301 301
     }
@@ -306,11 +306,11 @@  discard block
 block discarded – undo
306 306
     public function testExistsWithValue()
307 307
     {
308 308
         $searchValue = current($this->entries);
309
-        $this->assertTrue($this->identityWrapper->exists(function ($key, $value) use ($searchValue) {
309
+        $this->assertTrue($this->identityWrapper->exists(function($key, $value) use ($searchValue) {
310 310
             return $value === $searchValue;
311 311
         }));
312 312
         $searchValue = 'non-existent';
313
-        $this->assertFalse($this->identityWrapper->exists(function ($key, $value) use ($searchValue) {
313
+        $this->assertFalse($this->identityWrapper->exists(function($key, $value) use ($searchValue) {
314 314
             return $value === $searchValue;
315 315
         }));
316 316
     }
@@ -321,7 +321,7 @@  discard block
 block discarded – undo
321 321
     public function testFilter()
322 322
     {
323 323
         $searchValue = current($this->entries);
324
-        $filter = function ($value) use ($searchValue) {
324
+        $filter = function($value) use ($searchValue) {
325 325
             return $value === $searchValue;
326 326
         };
327 327
         $filtered = $this->identityWrapper->filter($filter);
@@ -336,11 +336,11 @@  discard block
 block discarded – undo
336 336
     public function testForAllWithKey()
337 337
     {
338 338
         $keys = array_keys($this->entries);
339
-        $this->assertTrue($this->identityWrapper->forAll(function ($key) use ($keys) {
339
+        $this->assertTrue($this->identityWrapper->forAll(function($key) use ($keys) {
340 340
             return in_array($key, $keys);
341 341
         }));
342 342
         $keys = ['non-existent'];
343
-        $this->assertFalse($this->identityWrapper->forAll(function ($key) use ($keys) {
343
+        $this->assertFalse($this->identityWrapper->forAll(function($key) use ($keys) {
344 344
             return in_array($key, $keys);
345 345
         }));
346 346
     }
@@ -351,11 +351,11 @@  discard block
 block discarded – undo
351 351
     public function testForAllWithValue()
352 352
     {
353 353
         $values = array_values($this->entries);
354
-        $this->assertTrue($this->identityWrapper->forAll(function ($key, $value) use ($values) {
354
+        $this->assertTrue($this->identityWrapper->forAll(function($key, $value) use ($values) {
355 355
             return in_array($value, $values, true);
356 356
         }));
357 357
         $values = ['non-existent'];
358
-        $this->assertFalse($this->identityWrapper->forAll(function ($key, $value) use ($values) {
358
+        $this->assertFalse($this->identityWrapper->forAll(function($key, $value) use ($values) {
359 359
             return in_array($value, $values, true);
360 360
         }));
361 361
     }
@@ -365,7 +365,7 @@  discard block
 block discarded – undo
365 365
      */
366 366
     public function testMapValidOperation()
367 367
     {
368
-        $map = function ($value) {
368
+        $map = function($value) {
369 369
             $value->random = rand();
370 370
             return $value;
371 371
         };
@@ -381,7 +381,7 @@  discard block
 block discarded – undo
381 381
      */
382 382
     public function testMapInvalidOperation()
383 383
     {
384
-        $map = function ($value) {
384
+        $map = function($value) {
385 385
             return sprintf('id: %s', $value->getId());
386 386
         };
387 387
         $this->identityWrapper->map($map);
@@ -393,7 +393,7 @@  discard block
 block discarded – undo
393 393
     public function testPartitionWithKey()
394 394
     {
395 395
         $searchKey = key($this->entries);
396
-        $partitions = $this->identityWrapper->partition(function ($key) use ($searchKey) {
396
+        $partitions = $this->identityWrapper->partition(function($key) use ($searchKey) {
397 397
             return $key === $searchKey;
398 398
         });
399 399
         $expectedFirstPartiton = array_slice($this->entries, 0, 1, true);
@@ -412,7 +412,7 @@  discard block
 block discarded – undo
412 412
     public function testPartitionWithValue()
413 413
     {
414 414
         $searchValue = reset($this->entries);
415
-        $partitions = $this->identityWrapper->partition(function ($key, $value) use ($searchValue) {
415
+        $partitions = $this->identityWrapper->partition(function($key, $value) use ($searchValue) {
416 416
             return $value === $searchValue;
417 417
         });
418 418
         $expectedFirstPartiton = array_slice($this->entries, 0, 1, true);
@@ -554,8 +554,8 @@  discard block
 block discarded – undo
554 554
     public function testSetIdentityExtractor()
555 555
     {
556 556
         $suffix = '.suffix';
557
-        $identityExtractor = function ($entry) use ($suffix) {
558
-            return $entry->getId() . $suffix;
557
+        $identityExtractor = function($entry) use ($suffix) {
558
+            return $entry->getId().$suffix;
559 559
         };
560 560
         
561 561
         $this->assertSame($this->identityWrapper, $this->identityWrapper->setIdentityExtractor($identityExtractor));
Please login to merge, or discard this patch.
Core/test/CoreTest/Listener/ModuleVersionAdminWidgetProviderFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
      */
37 37
     private $target = ModuleVersionAdminWidgetProviderFactory::class;
38 38
 
39
-    private $inheritance = [ FactoryInterface::class ];
39
+    private $inheritance = [FactoryInterface::class];
40 40
 
41 41
     public function testCreatesListener()
42 42
     {
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Listener/LanguageRouteListener/BaseTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 
38 38
     private $target;
39 39
 
40
-    private $inheritance = [ ListenerAggregateInterface::class ];
40
+    private $inheritance = [ListenerAggregateInterface::class];
41 41
 
42 42
     protected function setUp(): void
43 43
     {
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
      */
74 74
     public function testDetach()
75 75
     {
76
-        $callableListener = [new CallableListenerMock(),'doSomething'];
76
+        $callableListener = [new CallableListenerMock(), 'doSomething'];
77 77
         
78 78
         $events = $this
79 79
             ->getMockBuilder(EventManager::class)
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Listener/ModuleVersionAdminWidgetProviderTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
                                         ->setMethods(['getLoadedModules'])
52 52
                                         ->getMock();
53 53
 
54
-        return [ $this->moduleManagerMock ];
54
+        return [$this->moduleManagerMock];
55 55
     }
56 56
 
57 57
     public function testConstructorInjectsDependencies()
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Controller/AdminControllerTest.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -43,10 +43,10 @@
 block discarded – undo
43 43
 
44 44
     protected function setUp(): void
45 45
     {
46
-	    $events = $this->getMockBuilder(EventManager::class)
47
-	                   ->setMethods(['getEvent', 'triggerEvent'])
48
-	                   ->getMock();
49
-	    $this->target = new AdminController($events);
46
+        $events = $this->getMockBuilder(EventManager::class)
47
+                        ->setMethods(['getEvent', 'triggerEvent'])
48
+                        ->getMock();
49
+        $this->target = new AdminController($events);
50 50
     }
51 51
 
52 52
     public function testIndexAction()
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
      */
40 40
     protected $target = '\Core\Controller\AdminController';
41 41
 
42
-    protected $inheritance = [ 'Laminas\Mvc\Controller\AbstractActionController' ];
42
+    protected $inheritance = ['Laminas\Mvc\Controller\AbstractActionController'];
43 43
 
44 44
     protected function setUp(): void
45 45
     {
Please login to merge, or discard this patch.