Completed
Push — develop ( 06c328...a78ff6 )
by Carsten
17:00 queued 08:38
created
module/Cv/src/Cv/Form/SearchForm.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
                  ],
67 67
                  'attributes' => [
68 68
                      'value' => '10', // default distance
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/Auth/src/Auth/Controller/Plugin/SocialProfiles/AbstractAdapter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
      */
35 35
     public function fetch($api)
36 36
     {
37
-        $result  = $this->queryApi($api);
37
+        $result = $this->queryApi($api);
38 38
         if (!$result) {
39 39
             return false;
40 40
         }
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
         $class = get_class($this);
61 61
         $class = explode('\\', $class);
62 62
         $class = array_pop($class);
63
-        $class = '\\Auth\\Entity\\SocialProfiles\\' . $class;
63
+        $class = '\\Auth\\Entity\\SocialProfiles\\'.$class;
64 64
         
65 65
         return $class;
66 66
     }
Please login to merge, or discard this patch.
module/Core/src/Core/Factory/EventManager/EventManagerAbstractFactory.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
      */
165 165
     public function createServiceWithName(ServiceLocatorInterface $serviceLocator, $name, $requestedName)
166 166
     {
167
-        return $this($serviceLocator,$requestedName);
167
+        return $this($serviceLocator, $requestedName);
168 168
     }
169 169
 
170 170
     /**
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
         $defaults = [
184 184
             'service' => 'EventManager',
185 185
             'configure' => true,
186
-            'identifiers' => [ $name ],
186
+            'identifiers' => [$name],
187 187
             'event' => '\Zend\EventManager\Event',
188 188
             'listeners' => [],
189 189
         ];
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
         foreach ($listeners as $name => $options) {
275 275
             $options = $this->normalizeListenerOptions($name, $options);
276 276
 
277
-            if ($options['lazy'] && null !== $options['attach'] ) {
277
+            if ($options['lazy'] && null !== $options['attach']) {
278 278
                 foreach ($options['attach'] as $spec) {
279 279
                     $lazyListeners[] = [
280 280
                         'service' => $options['service'],
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
             }
305 305
 
306 306
             foreach ($options['attach'] as $spec) {
307
-                $callback = $spec['method'] ? [ $listener, $spec['method'] ] : $listener;
307
+                $callback = $spec['method'] ? [$listener, $spec['method']] : $listener;
308 308
                 $eventManager->attach($spec['event'], $callback, $spec['priority']);
309 309
             }
310 310
         }
@@ -375,7 +375,7 @@  discard block
 block discarded – undo
375 375
 
376 376
         if (is_string($options)) {
377 377
             /* Only an event name is provided in config */
378
-            $normalized['attach'] = [ [ 'event' => $options, 'method' => null, 'priority' => 1 ] ];
378
+            $normalized['attach'] = [['event' => $options, 'method' => null, 'priority' => 1]];
379 379
             return $normalized;
380 380
 
381 381
         }
@@ -404,7 +404,7 @@  discard block
 block discarded – undo
404 404
             } else if (is_string($opt)) {
405 405
                 if (null === $event) {
406 406
                     /* first string found is assumed to be the event name */
407
-                    $event = [ $opt ];
407
+                    $event = [$opt];
408 408
                 } else {
409 409
                     /* second string found must be a method name. */
410 410
                     $method = $opt;
@@ -421,7 +421,7 @@  discard block
 block discarded – undo
421 421
         }
422 422
 
423 423
         foreach ($event as &$eventSpec) {
424
-            $eventSpec = [ 'event' => $eventSpec, 'method' => $method, 'priority' => $priority ];
424
+            $eventSpec = ['event' => $eventSpec, 'method' => $method, 'priority' => $priority];
425 425
         }
426 426
 
427 427
         $normalized['attach'] = $event;
@@ -433,7 +433,7 @@  discard block
 block discarded – undo
433 433
     protected function normalizeEventsSpec($options)
434 434
     {
435 435
         $listenerPriority = isset($options['priority']) ? $options['priority'] : 1;
436
-        $listenerMethod   = isset($options['method'])   ? $options['method']   : '__none__';
436
+        $listenerMethod   = isset($options['method']) ? $options['method'] : '__none__';
437 437
         $events = [];
438 438
 
439 439
         foreach ($options['events'] as $event => $spec) {
@@ -453,7 +453,7 @@  discard block
 block discarded – undo
453 453
             } else if (is_array($spec)) {
454 454
                 if (isset($spec['method'])) {
455 455
                     if (!is_array($spec['method'])) {
456
-                        $spec['method'] = [ $spec['method'] ];
456
+                        $spec['method'] = [$spec['method']];
457 457
                     }
458 458
 
459 459
                     foreach ($spec['method'] as $method => $methodPriority) {
Please login to merge, or discard this patch.
module/Auth/src/Auth/Options/CaptchaOptions.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,9 +40,9 @@
 block discarded – undo
40 40
      * @var array
41 41
      */
42 42
     protected $reCaptcha = [
43
-        'site_key' => 'Your Recapture Public Key',      // "site_key"
44
-        'secret_key' => 'Your Recapture Private Key',    // "secret_key"
45
-        'ssl' => true,                                    // include google api via http(s)
43
+        'site_key' => 'Your Recapture Public Key', // "site_key"
44
+        'secret_key' => 'Your Recapture Private Key', // "secret_key"
45
+        'ssl' => true, // include google api via http(s)
46 46
         ];
47 47
 
48 48
     /**
Please login to merge, or discard this patch.
module/Core/src/Core/Listener/XmlRenderListener.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -89,8 +89,8 @@  discard block
 block discarded – undo
89 89
     {
90 90
         if (!($routeMatch = $e->getRouteMatch())) { return; };
91 91
 
92
-        $format = $e->getRouteMatch()->getParam('format',"html");
93
-        $channel = $e->getRouteMatch()->getParam('channel',"default");
92
+        $format = $e->getRouteMatch()->getParam('format', "html");
93
+        $channel = $e->getRouteMatch()->getParam('channel', "default");
94 94
 
95 95
         if ('xml' == $format) {
96 96
             $viewModel = $e->getResult();
@@ -99,8 +99,8 @@  discard block
 block discarded – undo
99 99
             }
100 100
             $resolver = $e->getApplication()->getServiceManager()->get('ViewResolver');
101 101
 
102
-            $templateDefault = $viewModel->getTemplate() . '.xml.phtml';
103
-            $templateChannel = $viewModel->getTemplate() . '.' . $channel . '.xml.phtml';
102
+            $templateDefault = $viewModel->getTemplate().'.xml.phtml';
103
+            $templateChannel = $viewModel->getTemplate().'.'.$channel.'.xml.phtml';
104 104
 
105 105
 
106 106
             if ($channel != 'default' && $resolver->resolve($templateChannel)) {
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 
118 118
             /* @var Response $response */
119 119
             $response = $e->getResponse();
120
-            $response->getHeaders()->addHeaderLine('Content-Type','application/xml');
120
+            $response->getHeaders()->addHeaderLine('Content-Type', 'application/xml');
121 121
         }
122 122
                 
123 123
     }
Please login to merge, or discard this patch.
module/Auth/src/Auth/Adapter/ExternalApplication.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
         }
116 116
                 
117 117
         $identity      = $this->getIdentity();
118
-        $applicationId = '@' . $this->getApplicationIdentifier();
118
+        $applicationId = '@'.$this->getApplicationIdentifier();
119 119
         $applicationIdIndex = strrpos($identity, $applicationId);
120 120
         //$login         = (0 < $applicationIdIndex &&  strlen($identity) - strlen($applicationId) == $applicationIdIndex)?substr($identity, 0, $applicationIdIndex):$identity;
121 121
         $login         = $identity;
@@ -128,8 +128,8 @@  discard block
 block discarded – undo
128 128
         $loginSuccess = false;
129 129
         $loginResult = array();
130 130
         
131
-        if (0 < $applicationIdIndex &&  strlen($identity) - strlen($applicationId) == $applicationIdIndex) {
132
-            $this->serviceManager->get('Core/Log')->debug('User ' . $login . ', login with correct suffix: ');
131
+        if (0 < $applicationIdIndex && strlen($identity) - strlen($applicationId) == $applicationIdIndex) {
132
+            $this->serviceManager->get('Core/Log')->debug('User '.$login.', login with correct suffix: ');
133 133
             // the login ends with the applicationID, therefore use the secret key
134 134
             // the external login must be the form 'xxxxx@yyyy' where yyyy is the matching suffix to the external application key
135 135
             if (isset($user)) {
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
                     $loginSuccess = true;
138 138
                 } else {
139 139
                     $loginSuccess = false;
140
-                    $this->serviceManager->get('Core/Log')->info('User ' . $login . ', secret: ' . $user->getSecret() . ' != loginPassword: ' . $filter->filter($credential) . ' (' . $credential . ')');
140
+                    $this->serviceManager->get('Core/Log')->info('User '.$login.', secret: '.$user->getSecret().' != loginPassword: '.$filter->filter($credential).' ('.$credential.')');
141 141
                 }
142 142
             } else {
143 143
                 $user = $users->create(
@@ -153,17 +153,17 @@  discard block
 block discarded – undo
153 153
                 $loginResult = array('firstLogin' => true);
154 154
             }
155 155
         } elseif (isset($user)) {
156
-            $this->serviceManager->get('Core/Log')->debug('User ' . $login . ', login with incorrect suffix: ');
156
+            $this->serviceManager->get('Core/Log')->debug('User '.$login.', login with incorrect suffix: ');
157 157
             if ($user->getCredential() == $filter->filter($credential)) {
158
-                $this->serviceManager->get('Core/Log')->debug('User ' . $login . ', credentials are equal');
158
+                $this->serviceManager->get('Core/Log')->debug('User '.$login.', credentials are equal');
159 159
                 $loginSuccess = true;
160 160
             } elseif (!empty($applicationId)) {
161
-                $this->serviceManager->get('Core/Log')->debug('User ' . $login . ', credentials are not equal');
161
+                $this->serviceManager->get('Core/Log')->debug('User '.$login.', credentials are not equal');
162 162
                 // TODO: remove this code as soon as the secret key has been fully established
163 163
                 // basically this does allow an external login with an applicationIndex match against the User-Password
164 164
                 // the way it had been used in the start
165 165
                 if ($user->getCredential() == $filter->filter($credential)) {
166
-                    $this->serviceManager->get('Core/Log')->debug('User ' . $login . ', credentials2 test');
166
+                    $this->serviceManager->get('Core/Log')->debug('User '.$login.', credentials2 test');
167 167
                     $loginSuccess = true;
168 168
                 }
169 169
             }
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Factory/Form/ActiveOrganizationSelectFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -53,13 +53,13 @@
 block discarded – undo
53 53
         if ($initialId) {
54 54
             /* @var $serviceLocator \Zend\ServiceManager\AbstractPluginManager
55 55
              * @var $repository \Organizations\Repository\Organization */
56
-            $repositories   = $container->get('repositories');
56
+            $repositories = $container->get('repositories');
57 57
             $repository = $repositories->get('Organizations');
58
-            $organization  = $repository->find($initialId);
58
+            $organization = $repository->find($initialId);
59 59
             $organizations[] = $organization;
60 60
         }
61 61
 
62
-        $select         = new OrganizationSelect();
62
+        $select = new OrganizationSelect();
63 63
 
64 64
         $select->setSelectableOrganizations($organizations);
65 65
         $select->setAttribute('data-ajax', '?ajax=jobs.admin.activeorganizations');
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Listener/LoadActiveOrganizations.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -50,11 +50,11 @@
 block discarded – undo
50 50
             $image    = $org->getImage();
51 51
             $imageUrl = $image ? $image->getUri() : '';
52 52
 
53
-            $options[] = [ 'id' => $org->getId(),
54
-                           'text' => $name . '|'
55
-                                      . $contact->getCity() . '|'
56
-                                      . $contact->getStreet() . '|'
57
-                                      . $contact->getHouseNumber() . '|'
53
+            $options[] = ['id' => $org->getId(),
54
+                           'text' => $name.'|'
55
+                                      . $contact->getCity().'|'
56
+                                      . $contact->getStreet().'|'
57
+                                      . $contact->getHouseNumber().'|'
58 58
                                       . $imageUrl
59 59
             ];
60 60
         }
Please login to merge, or discard this patch.
module/Core/src/Core/Entity/Hydrator/Strategy/FileCopyStrategy.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
         
79 79
         // ensures garbage removal
80 80
         register_shutdown_function(
81
-            function ($filename) {
81
+            function($filename) {
82 82
                 @unlink($filename);
83 83
             },
84 84
             $tmp
@@ -92,10 +92,10 @@  discard block
 block discarded – undo
92 92
 
93 93
         $return = ["file" => $tmp];
94 94
 
95
-        foreach(['user', 'name', 'type'] as $key) {
95
+        foreach (['user', 'name', 'type'] as $key) {
96 96
             $v = $value->{"get$key"}();
97
-            if($v) {
98
-                $return[$key]=$v;
97
+            if ($v) {
98
+                $return[$key] = $v;
99 99
             }
100 100
         }
101 101
 
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
 
123 123
         $entity = $this->getTargetEntity();
124 124
 
125
-        foreach($value as $key=>$v) {
125
+        foreach ($value as $key=>$v) {
126 126
             $entity->{"set$key"}($v);
127 127
         }
128 128
         return $entity;
Please login to merge, or discard this patch.