Completed
Push — develop ( 39c196...b11cac )
by Carsten
26:33
created
module/Auth/src/Auth/Entity/Status.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,10 +53,10 @@
 block discarded – undo
53 53
     public function __construct($status = self::ACTIVE)
54 54
     {
55 55
         if (!isset(static::$orderMap[$status])) {
56
-            throw new \DomainException('Unknown status: ' . $status);
56
+            throw new \DomainException('Unknown status: '.$status);
57 57
         }
58 58
         
59
-        $constant = 'self::' . strtoupper($status);
59
+        $constant = 'self::'.strtoupper($status);
60 60
         $this->name = constant($constant);
61 61
         $this->order = $this->getOrder();
62 62
     }
Please login to merge, or discard this patch.
module/Core/src/Core/EventManager/ListenerAggregateTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
90 90
             $method = $spec[1];
91 91
             $priority = isset($spec[2]) ? $spec[2] : 0;
92 92
 
93
-            $this->listeners[] = $events->attach($event, [ $this, $method ], $priority);
93
+            $this->listeners[] = $events->attach($event, [$this, $method], $priority);
94 94
         }
95 95
 
96 96
         return $this;
Please login to merge, or discard this patch.
module/Auth/src/Auth/Controller/UsersController.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -84,9 +84,9 @@
 block discarded – undo
84 84
         $imageStrategy = $infoContainer->getForm('info.image')
85 85
             ->getHydrator()
86 86
             ->getStrategy('image');
87
-		$fileEntity = $imageStrategy->getFileEntity();
88
-		$fileEntity->setUser($user);
89
-		$imageStrategy->setFileEntity($fileEntity);
87
+        $fileEntity = $imageStrategy->getFileEntity();
88
+        $fileEntity->setUser($user);
89
+        $imageStrategy->setFileEntity($fileEntity);
90 90
         
91 91
         if ($this->request->isPost()) {
92 92
             $formName = $params->fromQuery('form');
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
     /**
41 41
      * List users
42 42
      *
43
-     * @return \Zend\Http\Response|ViewModel
43
+     * @return \Core\Controller\Plugin\CreatePaginator
44 44
      */
45 45
     public function listAction()
46 46
     {
Please login to merge, or discard this patch.
module/Orders/src/Controller/ListController.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,9 +25,9 @@
 block discarded – undo
25 25
     public function indexAction()
26 26
     {
27 27
         return $this->pagination([
28
-                                     'form' => ['Core/TextSearch', 'as' => 'form'],
29
-                                     'paginator' => ['Orders', [ 'sort' => 'date'], 'as' => 'orders']
30
-                                 ]);
28
+                                        'form' => ['Core/TextSearch', 'as' => 'form'],
29
+                                        'paginator' => ['Orders', [ 'sort' => 'date'], 'as' => 'orders']
30
+                                    ]);
31 31
     }
32 32
 
33 33
     public function viewAction()
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
     {
27 27
         return $this->pagination([
28 28
                                      'form' => ['Core/TextSearch', 'as' => 'form'],
29
-                                     'paginator' => ['Orders', [ 'sort' => 'date'], 'as' => 'orders']
29
+                                     'paginator' => ['Orders', ['sort' => 'date'], 'as' => 'orders']
30 30
                                  ]);
31 31
     }
32 32
 
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
         $order = $repository->find($id);
45 45
 
46 46
         if (!$order) {
47
-            throw new \InvalidArgumentException('No order with id "' . $id . '" found.');
47
+            throw new \InvalidArgumentException('No order with id "'.$id.'" found.');
48 48
         }
49 49
 
50 50
         return [
Please login to merge, or discard this patch.
module/Core/src/Core/Controller/Plugin/PaginationBuilder.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
         }
71 71
 
72 72
         if (!is_array($stack)) {
73
-            throw new \InvalidArgumentException('Expected argument to be of type array, but received ' . gettype($stack));
73
+            throw new \InvalidArgumentException('Expected argument to be of type array, but received '.gettype($stack));
74 74
         }
75 75
 
76 76
         $this->stack = $stack;
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
      *
137 137
      * @return self
138 138
      */
139
-    public function params($namespace, $defaults = [ 'page' => 1 ])
139
+    public function params($namespace, $defaults = ['page' => 1])
140 140
     {
141 141
         $this->stack['params'] = [$namespace, $defaults];
142 142
         return $this;
Please login to merge, or discard this patch.
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -110,7 +110,6 @@
 block discarded – undo
110 110
      * @see \Core\Controller\Plugin\SearchForm::get()
111 111
      *
112 112
      * @param        $elementsFieldset
113
-     * @param null   $buttonsFieldset
114 113
      * @param string $as The name of the key in the result array.
115 114
      *
116 115
      * @return self
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Controller/TemplateController.php 2 patches
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
             $this->auth()->isAdmin()
72 72
         ) {
73 73
             $applicationViewModel->setTemplate('iframe/iFrameInjection');
74
-        }elseif(Status::EXPIRED == $job->getStatus() or  Status::INACTIVE == $job->getStatus()) {
74
+        } elseif(Status::EXPIRED == $job->getStatus() or  Status::INACTIVE == $job->getStatus()) {
75 75
             $this->response->setStatusCode(Response::STATUS_CODE_410);
76 76
             $model->setTemplate('jobs/error/expired');
77 77
             $model->setVariables(
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
     public function viewAction()
57 57
     {
58 58
         $id = $this->params()->fromQuery('id');
59
-        $channel = $this->params()->fromRoute('channel','default');
59
+        $channel = $this->params()->fromRoute('channel', 'default');
60 60
         $response = $this->getResponse();
61 61
         /* @var \Jobs\Entity\Job $job */
62 62
         $job = $this->jobRepository->find($id);
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
             $this->auth()->isAdmin()
84 84
         ) {
85 85
             $applicationViewModel->setTemplate('iframe/iFrameInjection');
86
-        }elseif(Status::EXPIRED == $job->getStatus() or  Status::INACTIVE == $job->getStatus()) {
86
+        }elseif (Status::EXPIRED == $job->getStatus() or Status::INACTIVE == $job->getStatus()) {
87 87
             $response->setStatusCode(Response::STATUS_CODE_410);
88 88
             $model->setTemplate('jobs/error/expired');
89 89
             $model->setVariables(
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
     protected function editTemplateAction()
112 112
     {
113 113
         $id = $this->params('id');
114
-        $formIdentifier=$this->params()->fromQuery('form');
114
+        $formIdentifier = $this->params()->fromQuery('form');
115 115
         $job = $this->jobRepository->find($id);
116 116
         $this->acl($job, 'edit');
117 117
 
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
 
143 143
             $instanceForm = $formTemplate->get($formIdentifier);
144 144
             if (!isset($instanceForm)) {
145
-                throw new \RuntimeException('No form found for "' . $formIdentifier . '"');
145
+                throw new \RuntimeException('No form found for "'.$formIdentifier.'"');
146 146
             }
147 147
 
148 148
             // the id is part of the postData, but it never should be altered
Please login to merge, or discard this patch.
module/Jobs/config/module.config.php 1 patch
Spacing   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
                  * for multiple paths.
16 16
                  * example https://github.com/doctrine/DoctrineORMModule
17 17
                  */
18
-                'paths' => array( __DIR__ . '/../src/Jobs/Entity'),
18
+                'paths' => array(__DIR__.'/../src/Jobs/Entity'),
19 19
             ),
20 20
         ),
21 21
         'eventmanager' => array(
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
             'translation_file_patterns' => array(
47 47
                     array(
48 48
                             'type'     => 'gettext',
49
-                            'base_dir' => __DIR__ . '/../language',
49
+                            'base_dir' => __DIR__.'/../language',
50 50
                             'pattern'  => '%s.mo',
51 51
                     ),
52 52
             ),
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
                 'allow' => array(
85 85
                     'Jobboard',
86 86
                     'Jobs/Jobboard',
87
-                    'Jobs/Template' => [ 'view', 'edittemplate' ],
87
+                    'Jobs/Template' => ['view', 'edittemplate'],
88 88
                     'Jobs/Manage' => array(
89 89
                         'template',
90 90
                     ),
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
     ),
214 214
 
215 215
     'event_manager' => [
216
-        'Core/AdminController/Events' => [ 'listeners' => [
216
+        'Core/AdminController/Events' => ['listeners' => [
217 217
             'Jobs/Listener/AdminWidgetProvider' => \Core\Controller\AdminControllerEvent::EVENT_DASHBOARD,
218 218
         ]],
219 219
 
@@ -266,39 +266,39 @@  discard block
 block discarded – undo
266 266
     'view_manager' => array(
267 267
         // Map template to files. Speeds up the lookup through the template stack.
268 268
         'template_map' => array(
269
-            'jobs/form/list-filter' => __DIR__ . '/../view/form/list-filter.phtml',
270
-            'jobs/form/apply-identifier' => __DIR__ . '/../view/form/apply-identifier.phtml',
271
-            'jobs/form/hiring-organization-select' => __DIR__ . '/../view/form/hiring-organization-select.phtml',
272
-            'jobs/form/multiposting-select' => __DIR__ . '/../view/form/multiposting-select.phtml',
273
-            'jobs/form/multiposting-checkboxes' => __DIR__ . '/../view/form/multiposting-checkboxes.phtml',
274
-            'jobs/form/ats-mode.view' => __DIR__ . '/../view/form/ats-mode.view.phtml',
275
-            'jobs/form/ats-mode.form' => __DIR__ . '/../view/form/ats-mode.form.phtml',
276
-            'jobs/form/preview' => __DIR__ . '/../view/form/preview.phtml',
277
-            'jobs/partials/channel-list' => __DIR__ . '/../view/partials/channel-list.phtml',
278
-            'jobs/assign-user' => __DIR__ . '/../view/jobs/manage/assign-user.phtml',
279
-            'jobs/snapshot_or_preview' => __DIR__ . '/../view/partials/snapshot_or_preview.phtml',
280
-            'jobs/history' => __DIR__ . '/../view/partials/history.phtml',
281
-            'jobs/portalsummary' => __DIR__ . '/../view/partials/portalsummary.phtml',
282
-            'content/jobs-publish-on-yawik' => __DIR__ . '/../view/modals/yawik.phtml',
283
-            'content/jobs-publish-on-jobsintown' => __DIR__ . '/../view/modals/jobsintown.phtml',
284
-            'content/jobs-publish-on-homepage' => __DIR__ . '/../view/modals/homepage.phtml',
285
-            'content/jobs-publish-on-fazjob' => __DIR__ . '/../view/modals/fazjob.phtml',
286
-            'content/jobs-terms-and-conditions' => __DIR__ . '/../view/jobs/index/terms.phtml',
287
-            'mail/job-created' => __DIR__ . '/../view/mails/job-created.phtml',
288
-            'mail/job-pending' => __DIR__ . '/../view/mails/job-pending.phtml',
289
-            'mail/job-accepted' => __DIR__ . '/../view/mails/job-accepted.phtml',
290
-            'mail/job-rejected' => __DIR__ . '/../view/mails/job-rejected.phtml',
291
-            'mail/job-created.en' => __DIR__ . '/../view/mails/job-created.en.phtml',
292
-            'mail/job-pending.en' => __DIR__ . '/../view/mails/job-pending.en.phtml',
293
-            'mail/job-accepted.en' => __DIR__ . '/../view/mails/job-accepted.en.phtml',
294
-            'mail/job-rejected.en' => __DIR__ . '/../view/mails/job-rejected.en.phtml',
295
-            'jobs/error/no-parent' => __DIR__ . '/../view/error/no-parent.phtml',
296
-            'jobs/error/expired' => __DIR__ . '/../view/error/expired.phtml',
269
+            'jobs/form/list-filter' => __DIR__.'/../view/form/list-filter.phtml',
270
+            'jobs/form/apply-identifier' => __DIR__.'/../view/form/apply-identifier.phtml',
271
+            'jobs/form/hiring-organization-select' => __DIR__.'/../view/form/hiring-organization-select.phtml',
272
+            'jobs/form/multiposting-select' => __DIR__.'/../view/form/multiposting-select.phtml',
273
+            'jobs/form/multiposting-checkboxes' => __DIR__.'/../view/form/multiposting-checkboxes.phtml',
274
+            'jobs/form/ats-mode.view' => __DIR__.'/../view/form/ats-mode.view.phtml',
275
+            'jobs/form/ats-mode.form' => __DIR__.'/../view/form/ats-mode.form.phtml',
276
+            'jobs/form/preview' => __DIR__.'/../view/form/preview.phtml',
277
+            'jobs/partials/channel-list' => __DIR__.'/../view/partials/channel-list.phtml',
278
+            'jobs/assign-user' => __DIR__.'/../view/jobs/manage/assign-user.phtml',
279
+            'jobs/snapshot_or_preview' => __DIR__.'/../view/partials/snapshot_or_preview.phtml',
280
+            'jobs/history' => __DIR__.'/../view/partials/history.phtml',
281
+            'jobs/portalsummary' => __DIR__.'/../view/partials/portalsummary.phtml',
282
+            'content/jobs-publish-on-yawik' => __DIR__.'/../view/modals/yawik.phtml',
283
+            'content/jobs-publish-on-jobsintown' => __DIR__.'/../view/modals/jobsintown.phtml',
284
+            'content/jobs-publish-on-homepage' => __DIR__.'/../view/modals/homepage.phtml',
285
+            'content/jobs-publish-on-fazjob' => __DIR__.'/../view/modals/fazjob.phtml',
286
+            'content/jobs-terms-and-conditions' => __DIR__.'/../view/jobs/index/terms.phtml',
287
+            'mail/job-created' => __DIR__.'/../view/mails/job-created.phtml',
288
+            'mail/job-pending' => __DIR__.'/../view/mails/job-pending.phtml',
289
+            'mail/job-accepted' => __DIR__.'/../view/mails/job-accepted.phtml',
290
+            'mail/job-rejected' => __DIR__.'/../view/mails/job-rejected.phtml',
291
+            'mail/job-created.en' => __DIR__.'/../view/mails/job-created.en.phtml',
292
+            'mail/job-pending.en' => __DIR__.'/../view/mails/job-pending.en.phtml',
293
+            'mail/job-accepted.en' => __DIR__.'/../view/mails/job-accepted.en.phtml',
294
+            'mail/job-rejected.en' => __DIR__.'/../view/mails/job-rejected.en.phtml',
295
+            'jobs/error/no-parent' => __DIR__.'/../view/error/no-parent.phtml',
296
+            'jobs/error/expired' => __DIR__.'/../view/error/expired.phtml',
297 297
         ),
298 298
 
299 299
         // Where to look for view templates not mapped above
300 300
         'template_path_stack' => array(
301
-            __DIR__ . '/../view',
301
+            __DIR__.'/../view',
302 302
         ),
303 303
     ),
304 304
 
Please login to merge, or discard this patch.
module/Core/src/Core/Listener/LanguageRouteListener.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -215,8 +215,8 @@
 block discarded – undo
215 215
     }
216 216
 
217 217
     /**
218
-     * @param $response
219
-     * @param $uri
218
+     * @param \Zend\Stdlib\ResponseInterface $response
219
+     * @param string $uri
220 220
      *
221 221
      * @return mixed
222 222
      */
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -97,10 +97,10 @@  discard block
 block discarded – undo
97 97
         }
98 98
         
99 99
         $router = $e->getRouter();
100
-        $basePath=$router->getBaseUrl();
100
+        $basePath = $router->getBaseUrl();
101 101
         $match = [];
102 102
         
103
-        if (preg_match('~^' . $basePath . '/([a-z]{2})(?:/|$)~', $e->getRequest()->getRequestUri(), $match)) {
103
+        if (preg_match('~^'.$basePath.'/([a-z]{2})(?:/|$)~', $e->getRequest()->getRequestUri(), $match)) {
104 104
             /* It seems we have already a language in the URI
105 105
              * Now there are two possibilities:
106 106
              *
@@ -182,8 +182,8 @@  discard block
 block discarded – undo
182 182
         setlocale(
183 183
             LC_ALL,
184 184
             array(
185
-            $locale . ".utf8",
186
-            $locale . ".iso88591",
185
+            $locale.".utf8",
186
+            $locale.".iso88591",
187 187
             $locale,
188 188
             substr($locale, 0, 2),
189 189
             'de_DE.utf8',
Please login to merge, or discard this patch.
module/Core/src/Core/Controller/Plugin/Service/NotificationFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
         $notificationListener = $serviceLocator->getServiceLocator()->get('Core/Listener/Notification');
25 25
         $translator = $services->get('translator');
26 26
 
27
-        $notification   = new Notification($flashMessenger);
27
+        $notification = new Notification($flashMessenger);
28 28
         $notification->setListener($notificationListener);
29 29
         $notification->setTranslator($translator);
30 30
 
Please login to merge, or discard this patch.