Passed
Push — master ( 6292f6...e5b7ab )
by Mathias
10:49 queued 04:59
created
module/Jobs/src/Form/BaseFieldset.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -46,14 +46,14 @@  discard block
 block discarded – undo
46 46
 
47 47
             $locationsStrategy = new \Laminas\Hydrator\Strategy\ClosureStrategy(
48 48
                 /* extract */
49
-                function ($value) use ($geoLocationStrategy, $geoLocationIsMultiple) {
49
+                function($value) use ($geoLocationStrategy, $geoLocationIsMultiple) {
50 50
                     $value = $geoLocationIsMultiple ? $value : $value->first();
51 51
 
52 52
                     return $geoLocationStrategy->extract($value);
53 53
                 },
54 54
 
55 55
                 /* hydrate */
56
-                function ($value) use ($geoLocationStrategy, $geoLocationIsMultiple) {
56
+                function($value) use ($geoLocationStrategy, $geoLocationIsMultiple) {
57 57
                     if ($geoLocationIsMultiple) {
58 58
                         return $geoLocationStrategy->hydrate($value);
59 59
                     }
@@ -123,14 +123,14 @@  discard block
 block discarded – undo
123 123
         $values = [];
124 124
         foreach ($this->object->getLocations() as $loc) {
125 125
             $values[] = trim(
126
-                $loc->getPostalCode() . ' ' . $loc->getCity() . ', ' . $loc->getRegion(),
126
+                $loc->getPostalCode().' '.$loc->getCity().', '.$loc->getRegion(),
127 127
                 ' ,'
128 128
             );
129 129
         }
130 130
 
131 131
         if (count($values)) {
132 132
             if ($isMultiple) {
133
-                return '<ul><li>' . join('</li><li>', $values) . '</li></ul>';
133
+                return '<ul><li>'.join('</li><li>', $values).'</li></ul>';
134 134
             } else {
135 135
                 return $values[0];
136 136
             }
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Listener/PublisherTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
         
113 113
         $this->target = new Publisher($this->serviceManager);
114 114
 
115
-        $staticClassPrefix = '\\' . __CLASS__ . '::';
115
+        $staticClassPrefix = '\\'.__CLASS__.'::';
116 116
 
117 117
         $this->log = $this->getMockBuilder('\Laminas\Log\Logger')
118 118
             ->disableOriginalConstructor()
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
 
167 167
         $this->publisher->expects($this->any())
168 168
                               ->method('__set')
169
-                              ->will($this->returnCallback($staticClassPrefix . 'publisherSetter'));
169
+                              ->will($this->returnCallback($staticClassPrefix.'publisherSetter'));
170 170
 
171 171
         $this->htmlAbsPathFilter = $this->getMockBuilder('\Core\Filter\HtmlAbsPathFilter')
172 172
                                     ->disableOriginalConstructor()
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
 
175 175
         $this->htmlAbsPathFilter->expects($this->any())
176 176
                               ->method('filter')
177
-                              ->will($this->returnCallback($staticClassPrefix . 'absPathFilter'));
177
+                              ->will($this->returnCallback($staticClassPrefix.'absPathFilter'));
178 178
 
179 179
         $this->filterManager = $this->getMockBuilder('\Laminas\ServiceManager\ServiceManager')
180 180
                                      ->disableOriginalConstructor()
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
 
221 221
         $this->providerChannel->expects($this->any())
222 222
                               ->method('__get')
223
-                              ->will($this->returnCallback($staticClassPrefix . 'providerChannelGetter'));
223
+                              ->will($this->returnCallback($staticClassPrefix.'providerChannelGetter'));
224 224
 
225 225
         $this->provider->expects($this->any(0))
226 226
                        ->method('__get')
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Factory/Filter/ChannelPricesFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
      */
41 41
     public function testInvokation()
42 42
     {
43
-        $provider=new ProviderOptions();
43
+        $provider = new ProviderOptions();
44 44
 
45 45
         $serviceManagerMock = $this->getMockBuilder('\Laminas\ServiceManager\ServiceManager')
46 46
                                    ->disableOriginalConstructor()
Please login to merge, or discard this patch.
module/Cv/config/module.config.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
                  * for multiple paths.
24 24
                  * example https://github.com/doctrine/DoctrineORMModule
25 25
                  */
26
-                'paths' => [ __DIR__ . '/../src/Entity'],
26
+                'paths' => [__DIR__.'/../src/Entity'],
27 27
             ],
28 28
         ],
29 29
         'eventmanager' => [
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
         'translation_file_patterns' => [
45 45
             [
46 46
                 'type'     => 'gettext',
47
-                'base_dir' => __DIR__ . '/../language',
47
+                'base_dir' => __DIR__.'/../language',
48 48
                 'pattern'  => '%s.mo',
49 49
             ],
50 50
         ],
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
         'factories' => [
155 155
             \Cv\Controller\IndexController::class => \Laminas\ServiceManager\Factory\InvokableFactory::class,
156 156
             'Cv/View'  => 'Cv\Factory\Controller\ViewControllerFactory',
157
-            'Cv\Controller\Manage' => [ManageController::class,'factory'],
157
+            'Cv\Controller\Manage' => [ManageController::class, 'factory'],
158 158
         ],
159 159
         'aliases' => [
160 160
             'Cv/Index' => \Cv\Controller\IndexController::class,
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
             'resume-recruiter' => [
170 170
                 'label' =>  /*@translate*/ 'Talent-Pool',
171 171
                 'route' => 'lang/cvs',
172
-                'active_on' => [ 'lang/cvs/edit', 'lang/cvs/view' ],
172
+                'active_on' => ['lang/cvs/edit', 'lang/cvs/view'],
173 173
                 'resource' => 'navigation/resume-recruiter',
174 174
                 'order' => 10,
175 175
                 'query' => [
@@ -200,15 +200,15 @@  discard block
 block discarded – undo
200 200
     
201 201
         // Map template to files. Speeds up the lookup through the template stack.
202 202
         'template_map' => [
203
-            'cv/form/employment.view' => __DIR__ . '/../view/cv/form/employment.view.phtml',
204
-            'cv/form/employment.form' => __DIR__ . '/../view/cv/form/employment.form.phtml',
205
-            'cv/form/education.view' => __DIR__ . '/../view/cv/form/education.view.phtml',
206
-            'cv/form/education.form' => __DIR__ . '/../view/cv/form/education.form.phtml'
203
+            'cv/form/employment.view' => __DIR__.'/../view/cv/form/employment.view.phtml',
204
+            'cv/form/employment.form' => __DIR__.'/../view/cv/form/employment.form.phtml',
205
+            'cv/form/education.view' => __DIR__.'/../view/cv/form/education.view.phtml',
206
+            'cv/form/education.form' => __DIR__.'/../view/cv/form/education.form.phtml'
207 207
         ],
208 208
     
209 209
         // Where to look for view templates not mapped above
210 210
         'template_path_stack' => [
211
-            __DIR__ . '/../view',
211
+            __DIR__.'/../view',
212 212
         ],
213 213
     ],
214 214
 
Please login to merge, or discard this patch.
module/Auth/src/Auth/Listener/TokenListener.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
     {
43 43
         /* @var $events \Laminas\EventManager\SharedEventManager */
44 44
         $events->attach('Laminas\Mvc\Application', MvcEvent::EVENT_BOOTSTRAP, array($this, 'onBootstrap'), $priority);
45
-        $this->listener = [$this,'onBootstrap'];
45
+        $this->listener = [$this, 'onBootstrap'];
46 46
     }
47 47
 
48 48
     /**
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
      */
54 54
     public function detachShared(SharedEventManagerInterface $events)
55 55
     {
56
-        if ($events->detach($this->listener,'Laminas\Mvc\Application')) {
56
+        if ($events->detach($this->listener, 'Laminas\Mvc\Application')) {
57 57
             $this->listener = null;
58 58
         }
59 59
         return $this;
Please login to merge, or discard this patch.
Auth/test/AuthTest/Listener/SocialProfilesUnconfiguredErrorListenerTest.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 
43 43
         $events = $this->getMockBuilder('\Laminas\EventManager\EventManager')->disableOriginalConstructor()->getMock();
44 44
         $events->expects($this->once())
45
-               ->method('attach')->with(MvcEvent::EVENT_DISPATCH_ERROR, [ $target, 'onDispatchError' ])
45
+               ->method('attach')->with(MvcEvent::EVENT_DISPATCH_ERROR, [$target, 'onDispatchError'])
46 46
                ->willReturn('worked');
47 47
 
48 48
         $this->assertSame($target, $target->attach($events), 'Fluent interface broken');
@@ -52,14 +52,14 @@  discard block
 block discarded – undo
52 52
     public function provideTestData()
53 53
     {
54 54
         return [
55
-           [ true, true, true, true ],
56
-           [ false, true, true, false ],
57
-           [ true, false, true, false ],
58
-           [ true, true, false, false ],
59
-           [ false, false, true, false ],
60
-           [ false, true, false, false ],
61
-           [ true, false, false, false ],
62
-           [ false, false, false, false ],
55
+           [true, true, true, true],
56
+           [false, true, true, false],
57
+           [true, false, true, false],
58
+           [true, true, false, false],
59
+           [false, false, true, false],
60
+           [false, true, false, false],
61
+           [true, false, false, false],
62
+           [false, false, false, false],
63 63
        ];
64 64
     }
65 65
 
Please login to merge, or discard this patch.
module/Auth/test/AuthTest/Form/RegisterTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -83,20 +83,20 @@  discard block
 block discarded – undo
83 83
         $options = new CaptchaOptions();
84 84
         $options->setMode("reCaptcha");
85 85
         $testedObject = new Register(null, $options);
86
-        $captchaInput= $testedObject->get('captcha');
86
+        $captchaInput = $testedObject->get('captcha');
87 87
         $this->assertInstanceOf('Laminas\Form\Element\Captcha', $captchaInput);
88 88
         $this->assertInstanceOf('Laminas\Captcha\ReCaptcha', $captchaInput->getOption('captcha'));
89 89
     }
90 90
     
91 91
     public function testWithImageField()
92 92
     {
93
-        if (! function_exists("imageftbbox")) {
93
+        if (!function_exists("imageftbbox")) {
94 94
             return $this->markTestSkipped('This test requires GD FT fonts support');
95 95
         }
96 96
         $options = new CaptchaOptions();
97 97
         $options->setMode("image");
98 98
         $testedObject = new Register(null, $options);
99
-        $captchaInput= $testedObject->get('captcha');
99
+        $captchaInput = $testedObject->get('captcha');
100 100
         $this->assertInstanceOf('Laminas\Captcha\Image', $captchaInput->getOption('captcha'));
101 101
     }
102 102
     
@@ -105,6 +105,6 @@  discard block
 block discarded – undo
105 105
         $options = new CaptchaOptions();
106 106
         $testedObject = new Register(null, $options, 'user');
107 107
         $roleField = $testedObject->get('register')->get('role');
108
-        $this->assertTrue($roleField->getValue() =='user');
108
+        $this->assertTrue($roleField->getValue() == 'user');
109 109
     }
110 110
 }
Please login to merge, or discard this patch.
public/router.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 if (false === strpos($_SERVER['REQUEST_URI'], '.')
4
-    || is_file($_SERVER['DOCUMENT_ROOT'] . '/' . $_SERVER['SCRIPT_NAME'])
4
+    || is_file($_SERVER['DOCUMENT_ROOT'].'/'.$_SERVER['SCRIPT_NAME'])
5 5
 ) {
6 6
     return false;
7 7
 }
8 8
 
9 9
 $_SERVER['SCRIPT_NAME'] = '/index.php';
10
-require __DIR__ . "/index.php";
11 10
\ No newline at end of file
11
+require __DIR__."/index.php";
12 12
\ No newline at end of file
Please login to merge, or discard this patch.
module/Core/test/CoreTest/View/Helper/FormatLocationTest.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -38,18 +38,18 @@
 block discarded – undo
38 38
         static::assertTrue(is_a(FormatLocation::class, AbstractHelper::class, true));
39 39
     }
40 40
 
41
-    private function getLocation($prefix='')
41
+    private function getLocation($prefix = '')
42 42
     {
43 43
         $location = new class extends AbstractLocation implements LocationInterface
44 44
         {  };
45 45
 
46
-        $location->setStreetname($prefix . 'TestStreet');
47
-        $location->setStreetnumber($prefix . '1234');
48
-        $location->setCity($prefix . 'TestCity');
49
-        $location->setCoordinates(new Point([1,1]));
50
-        $location->setCountry($prefix . 'TestCountry');
51
-        $location->setPostalCode($prefix . 'ZipCode');
52
-        $location->setRegion($prefix . 'TestRegion');
46
+        $location->setStreetname($prefix.'TestStreet');
47
+        $location->setStreetnumber($prefix.'1234');
48
+        $location->setCity($prefix.'TestCity');
49
+        $location->setCoordinates(new Point([1, 1]));
50
+        $location->setCountry($prefix.'TestCountry');
51
+        $location->setPostalCode($prefix.'ZipCode');
52
+        $location->setRegion($prefix.'TestRegion');
53 53
 
54 54
         return $location;
55 55
     }
Please login to merge, or discard this patch.