Passed
Push — master ( c58a40...6d37ad )
by Mathias
10:02 queued 04:27
created
module/Jobs/src/Listener/JobEntityDependencyListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
  */
26 26
 class JobEntityDependencyListener extends AbstractDependenciesListener
27 27
 {
28
-    protected $entityClasses = [ Job::class ];
28
+    protected $entityClasses = [Job::class];
29 29
 
30 30
     protected function dependencyCheck(DependencyResultEvent $event)
31 31
     {
Please login to merge, or discard this patch.
module/Jobs/src/Form/JobboardSearch.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
                 'attributes' => [
67 67
                     'value'            => '10', // default distance
68 68
                     'data-default-index' => '1',
69
-                    'data-searchbox'   => -1,  // hide the search box
69
+                    'data-searchbox'   => -1, // hide the search box
70 70
                     'data-allowclear'  => 'false', // allow to clear a selected value
71 71
                     'data-placeholder' => /*@translate*/ 'Distance',
72 72
                     'data-width'       => '100%',
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Form/CompanyNameFieldsetTest.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -34,9 +34,9 @@  discard block
 block discarded – undo
34 34
     protected function setUp(): void
35 35
     {
36 36
         $this->target = $this->getMockBuilder('\Jobs\Form\CompanyNameFieldset')
37
-                             ->disableOriginalConstructor()
38
-                             ->setMethods(array('setAttribute', 'setName', 'add'))
39
-                             ->getMock();
37
+                                ->disableOriginalConstructor()
38
+                                ->setMethods(array('setAttribute', 'setName', 'add'))
39
+                                ->getMock();
40 40
     }
41 41
 
42 42
     /**
@@ -53,12 +53,12 @@  discard block
 block discarded – undo
53 53
     public function testInitialization()
54 54
     {
55 55
         $this->target->expects($this->once())
56
-                     ->method('setAttribute')
57
-                     ->with('id', 'jobcompanyname-fieldset');
56
+                        ->method('setAttribute')
57
+                        ->with('id', 'jobcompanyname-fieldset');
58 58
 
59 59
         $this->target->expects($this->once())
60
-                     ->method('setName')
61
-                     ->with('jobCompanyName');
60
+                        ->method('setName')
61
+                        ->with('jobCompanyName');
62 62
 
63 63
         $addParam1 = array(
64 64
             'type' => 'Jobs/HiringOrganizationSelect',
@@ -93,10 +93,10 @@  discard block
 block discarded – undo
93 93
             ];
94 94
 
95 95
         $this->target->expects($this->exactly(2))
96
-                     ->method('add')
97
-                     ->withConsecutive(
98
-                         [$addParam1],
99
-                         [$addParam2]
96
+                        ->method('add')
97
+                        ->withConsecutive(
98
+                            [$addParam1],
99
+                            [$addParam2]
100 100
                     );
101 101
 
102 102
         $this->target->init();
Please login to merge, or discard this patch.
module/Auth/test/AuthTest/Controller/PasswordControllerFunctionalTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -23,9 +23,9 @@  discard block
 block discarded – undo
23 23
 
24 24
     protected function setUp(): void
25 25
     {
26
-        $logDir = __DIR__ . '/../../../../../log/';
27
-        $errorLogFile = $logDir . 'error.log';
28
-        $yawikLogFile = $logDir . 'yawik.log';
26
+        $logDir = __DIR__.'/../../../../../log/';
27
+        $errorLogFile = $logDir.'error.log';
28
+        $yawikLogFile = $logDir.'yawik.log';
29 29
 
30 30
         if ((file_exists($errorLogFile) && !is_writable($errorLogFile))
31 31
             || (file_exists($yawikLogFile) && !is_writable($yawikLogFile))
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
             ->getMock();
42 42
         $this->repositoriesMock->expects($this->any())->method('get')
43 43
             ->will($this->returnValueMap([
44
-                [ 'Organizations/OrganizationImage', $orgImageRepo ]
44
+                ['Organizations/OrganizationImage', $orgImageRepo]
45 45
             ]));
46 46
         
47 47
         $manager = $this->getMockBuilder(Manager::class)
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
     public function assertResponseStatusCode($code)
104 104
     {
105 105
         if ($this->useConsoleRequest) {
106
-            if (! in_array($code, [0, 1])) {
106
+            if (!in_array($code, [0, 1])) {
107 107
                 throw new \PHPUnit_Framework_ExpectationFailedException($this->createFailureMessage(
108 108
                     'Console status code assert value must be O (valid) or 1 (error)'
109 109
                 ));
Please login to merge, or discard this patch.
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.