Completed
Branch develop (7585df)
by Carsten
11:01
created
module/Jobs/src/Jobs/Entity/JobSnapshot.php 3 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -673,7 +673,7 @@  discard block
 block discarded – undo
673 673
     /**
674 674
      * Gets locations of a job posting
675 675
      *
676
-     * @return string
676
+     * @return Collection
677 677
      */
678 678
     public function getLocations()
679 679
     {
@@ -715,7 +715,7 @@  discard block
 block discarded – undo
715 715
     /**
716 716
      * Gets applications for a job posting
717 717
      *
718
-     * @return string
718
+     * @return Status
719 719
      */
720 720
     public function getStatus()
721 721
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -303,14 +303,14 @@
 block discarded – undo
303 303
     {
304 304
         $methods = array_filter(
305 305
             get_class_methods($source),
306
-            function ($v) {
306
+            function($v) {
307 307
                 return 3 < strlen($v) && strpos($v, 'get') === 0;
308 308
             }
309 309
         );
310 310
         // these attributes don't need to get copied
311 311
         $methods = array_diff($methods, array('getId', 'getHydrator', 'getHiringOrganizations'));
312 312
         $methods = array_map(
313
-            function ($v) {
313
+            function($v) {
314 314
                 return lcfirst(substr($v, 3));
315 315
             },
316 316
             $methods
Please login to merge, or discard this patch.
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * YAWIK
4
- *
5
- * @filesource
6
- * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
- * @license   MIT
8
- * @author    [email protected]
9
- */
3
+     * YAWIK
4
+     *
5
+     * @filesource
6
+     * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
+     * @license   MIT
8
+     * @author    [email protected]
9
+     */
10 10
 
11 11
 namespace Organizations\Form;
12 12
 
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Factory/Listener/MailSenderFactory.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
      *
28 28
      * @param ServiceLocatorInterface $serviceLocator
29 29
      *
30
-     * @return NewJobMailSender
30
+     * @return MailSender
31 31
      */
32 32
     public function createService(ServiceLocatorInterface $serviceLocator)
33 33
     {
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * YAWIK
4
- *
5
- * @filesource
6
- * @license MIT
7
- * @copyright  2013 - 2015 Cross Solution <http://cross-solution.de>
8
- */
3
+     * YAWIK
4
+     *
5
+     * @filesource
6
+     * @license MIT
7
+     * @copyright  2013 - 2015 Cross Solution <http://cross-solution.de>
8
+     */
9 9
   
10 10
 /** */
11 11
 namespace Organizations\Repository\Event;
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Form/PreviewLink.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
     }
35 35
 
36 36
     /**
37
-     * @return string|\Zend\View\Helper\HelperInterface
37
+     * @return string
38 38
      */
39 39
     public function getViewHelper()
40 40
     {
Please login to merge, or discard this patch.
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * YAWIK
4
- *
5
- * @filesource
6
- * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
- * @license   MIT
8
- * @author    [email protected]
9
- */
3
+     * YAWIK
4
+     *
5
+     * @filesource
6
+     * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
+     * @license   MIT
8
+     * @author    [email protected]
9
+     */
10 10
 
11 11
 namespace Organizations\Form;
12 12
 
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Listener/Events/JobEvent.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
      * Sets the job entity
65 65
      *
66 66
      * @param  Job $jobEntity
67
-     * @return MvcEvent
67
+     * @return JobEvent
68 68
      */
69 69
     public function setJobEntity(Job $jobEntity)
70 70
     {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -34,24 +34,24 @@
 block discarded – undo
34 34
      * Event is fired when a users has created a new job opening and accepted the
35 35
      * terms and conditions
36 36
      */
37
-    const EVENT_JOB_CREATED   = 'job.created';
37
+    const EVENT_JOB_CREATED = 'job.created';
38 38
 
39 39
     /**
40 40
      * Event is fired when the owner of the YAWIK installation has accepted the job
41 41
      * opening
42 42
      */
43
-    const EVENT_JOB_ACCEPTED   = 'job.accepted';
43
+    const EVENT_JOB_ACCEPTED = 'job.accepted';
44 44
 
45 45
     /**
46 46
      * Event is fired, when the owner of the YAWIK installation has rejected the job
47 47
      * opening
48 48
      */
49
-    const EVENT_JOB_REJECTED   = 'job.rejected';
49
+    const EVENT_JOB_REJECTED = 'job.rejected';
50 50
 
51 51
     /**
52 52
      * get all available names for publishing
53 53
      */
54
-    const PORTAL_AVAIL_NAME    = 'portal.availname';
54
+    const PORTAL_AVAIL_NAME = 'portal.availname';
55 55
 
56 56
     /**
57 57
      * @var portals to be published
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Listener/Publisher.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
     }
47 47
 
48 48
     /**
49
-     * @return mixed
49
+     * @return ServiceManager
50 50
      */
51 51
     public function getServiceManager()
52 52
     {
Please login to merge, or discard this patch.
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * YAWIK
4
- *
5
- * @filesource
6
- * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
- * @license   MIT
8
- * @author    [email protected]
9
- */
3
+     * YAWIK
4
+     *
5
+     * @filesource
6
+     * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
+     * @license   MIT
8
+     * @author    [email protected]
9
+     */
10 10
 
11 11
 namespace Organizations\Form;
12 12
 
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Options/ChannelOptions.php 3 patches
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
     /**
148 148
      * Gets the unique key of a channel
149 149
      *
150
-     * @return string
150
+     * @return integer
151 151
      */
152 152
     public function getKey()
153 153
     {
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
     /**
170 170
      * Gets the unique key of a channel
171 171
      *
172
-     * @return string
172
+     * @return integer
173 173
      */
174 174
     public function getExternalkey()
175 175
     {
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
     /**
253 253
      * Gets the tax for a price
254 254
      *
255
-     * @return string
255
+     * @return integer
256 256
      */
257 257
     public function getTax()
258 258
     {
@@ -345,7 +345,7 @@  discard block
 block discarded – undo
345 345
     /**
346 346
      * Gets the headline of the channel
347 347
      *
348
-     * @return mixed
348
+     * @return string
349 349
      */
350 350
     public function getHeadLine()
351 351
     {
@@ -383,7 +383,7 @@  discard block
 block discarded – undo
383 383
     }
384 384
 
385 385
     /**
386
-     * @return mixed
386
+     * @return string
387 387
      */
388 388
     public function getLinkText()
389 389
     {
@@ -401,7 +401,7 @@  discard block
 block discarded – undo
401 401
     }
402 402
 
403 403
     /**
404
-     * @return mixed
404
+     * @return string
405 405
      */
406 406
     public function getRoute()
407 407
     {
@@ -439,7 +439,7 @@  discard block
 block discarded – undo
439 439
     /**
440 440
      * Gets the logo of a channel (Jobboard)
441 441
      *
442
-     * @return string|null
442
+     * @return string
443 443
      */
444 444
     public function getLogo()
445 445
     {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
      *
82 82
      * @var int $publishDuration
83 83
      */
84
-    protected $publishDuration=30;
84
+    protected $publishDuration = 30;
85 85
 
86 86
     /**
87 87
      * Category for this channel
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
      */
141 141
     public function setKey($key)
142 142
     {
143
-        $this->key=$key;
143
+        $this->key = $key;
144 144
         return $this;
145 145
     }
146 146
 
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
      */
163 163
     public function setExternalkey($key)
164 164
     {
165
-        $this->externalkey=$key;
165
+        $this->externalkey = $key;
166 166
         return $this;
167 167
     }
168 168
 
Please login to merge, or discard this patch.
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * YAWIK
4
- *
5
- * @filesource
6
- * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
- * @author cbleek
8
- * @license   MIT
9
- */
3
+     * YAWIK
4
+     *
5
+     * @filesource
6
+     * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
+     * @author cbleek
8
+     * @license   MIT
9
+     */
10 10
 
11 11
 namespace Jobs\Options;
12 12
 
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Repository/Filter/PaginationAdminQueryFactory.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 {
19 19
     /**
20 20
      * @param ServiceLocatorInterface $serviceLocator
21
-     * @return PaginationQuery|mixed
21
+     * @return PaginationAdminQuery
22 22
      */
23 23
     public function createService(ServiceLocatorInterface $serviceLocator)
24 24
     {
Please login to merge, or discard this patch.
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * YAWIK
4
- *
5
- * @filesource
6
- * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
- * @license   MIT
8
- * @author    [email protected]
9
- */
3
+     * YAWIK
4
+     *
5
+     * @filesource
6
+     * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
+     * @license   MIT
8
+     * @author    [email protected]
9
+     */
10 10
 
11 11
 namespace Organizations\Form;
12 12
 
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Repository/Filter/PaginationQueryFactory.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
 {
15 15
     /**
16 16
      * @param ServiceLocatorInterface $serviceLocator
17
-     * @return PaginationQuery|mixed
17
+     * @return PaginationQuery
18 18
      */
19 19
     public function createService(ServiceLocatorInterface $serviceLocator)
20 20
     {
Please login to merge, or discard this patch.
module/Organizations/src/Organizations/Controller/IndexController.php 3 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -301,6 +301,9 @@
 block discarded – undo
301 301
         return $organization;
302 302
     }
303 303
 
304
+    /**
305
+     * @param string $script
306
+     */
304 307
     protected function getErrorViewModel($script)
305 308
     {
306 309
         $this->getResponse()->setStatusCode(500);
Please login to merge, or discard this patch.
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * YAWIK
4
- *
5
- * @filesource
6
- * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
- * @license   GPLv3
8
- */
3
+     * YAWIK
4
+     *
5
+     * @filesource
6
+     * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
+     * @license   GPLv3
8
+     */
9 9
 
10 10
 /** ActionController of Organizations */
11 11
 namespace Organizations\Controller;
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
         if ($isRecruiter) {
96 96
             $params->set('by', 'me');
97 97
         }
98
-         //default sorting
98
+            //default sorting
99 99
         if (!isset($params['sort'])) {
100 100
             $params->set('sort', "-name");
101 101
         }
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
             $container->disableForm('employeesManagement');
238 238
         } else {
239 239
             $container->disableForm('organizationLogo')
240
-                      ->disableForm('descriptionForm');
240
+                        ->disableForm('descriptionForm');
241 241
         }
242 242
         return $container;
243 243
     }
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -124,11 +124,11 @@  discard block
 block discarded – undo
124 124
         $params          = $this->params();
125 125
         $formIdentifier  = $params->fromQuery('form');
126 126
         try {
127
-            $org             = $this->getOrganization(true);
127
+            $org = $this->getOrganization(true);
128 128
         } catch (\RuntimeException $e) {
129 129
             return $this->getErrorViewModel('no-parent');
130 130
         }
131
-        $container       = $this->getFormular($org);
131
+        $container = $this->getFormular($org);
132 132
 
133 133
         if (isset($formIdentifier) && $request->isPost()) {
134 134
             /* @var $form \Zend\Form\FormInterface */
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
         $user = $this->auth()->getUser(); /* @var $user \Auth\Entity\UserInterface */
262 262
 
263 263
         /* @var $organizationId string */
264
-        $organizationId = empty($id_fromRoute)?$id_fromSubForm:$id_fromRoute;
264
+        $organizationId = empty($id_fromRoute) ? $id_fromSubForm : $id_fromRoute;
265 265
         $editOwnOrganization = '__my__' === $organizationId;
266 266
         if ($editOwnOrganization) {
267 267
             /* @var $userOrg \Organizations\Entity\OrganizationReference */
@@ -294,7 +294,7 @@  discard block
 block discarded – undo
294 294
             return $organization;
295 295
         }
296 296
 
297
-        $organization      = $this->repository->find($organizationId);
297
+        $organization = $this->repository->find($organizationId);
298 298
         if (!$organization) {
299 299
             throw new \RuntimeException('No Organization found with id "' . $organizationId . '"');
300 300
         }
Please login to merge, or discard this patch.