Completed
Branch develop (7585df)
by Carsten
11:01
created
module/Jobs/config/module.config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 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(
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Acl/CreateAssertion.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,8 +26,8 @@
 block discarded – undo
26 26
 {
27 27
 
28 28
     protected $identifiers = array(
29
-         'Jobs/Acl/Assertions',
30
-         'Jobs/Acl/Assertion/Create',
29
+            'Jobs/Acl/Assertions',
30
+            'Jobs/Acl/Assertion/Create',
31 31
     );
32 32
 
33 33
     protected function preAssert(
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Controller/ConsoleController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
                     $date = new \DateTime($value);
51 51
                     $q = array('$lt' => $date);
52 52
                     if (isset($query['datePublishStart.date'])) {
53
-                        $query['datePublishStart.date']= array_merge(
53
+                        $query['datePublishStart.date'] = array_merge(
54 54
                             $query['datePublishStart.date'],
55 55
                             $q
56 56
                         );
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
                     $date = new \DateTime($value);
64 64
                     $q = array('$gt' => $date);
65 65
                     if (isset($query['datePublishStart.date'])) {
66
-                        $query['datePublishStart.date']= array_merge(
66
+                        $query['datePublishStart.date'] = array_merge(
67 67
                             $query['datePublishStart.date'],
68 68
                             $q
69 69
                         );
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
         
100 100
         echo "Generate keywords for $count jobs...\n";
101 101
         
102
-        $progress     = new ProgressBar(
102
+        $progress = new ProgressBar(
103 103
             new ConsoleAdapter(
104 104
                 array(
105 105
                 'elements' => array(
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
                 continue;
162 162
             }
163 163
             try {
164
-                $group       = $user->getGroup($job->getCompany());
164
+                $group = $user->getGroup($job->getCompany());
165 165
             } catch (\Exception $e) {
166 166
                 continue;
167 167
             }
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Controller/ImportController.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
                         $entity = $repositoriesJob->findOneBy(array("applyId" => (string) $applyId));
106 106
                         if (!isset($entity)) {
107 107
                             // new Job (the more likely branch)
108
-                            $entity =$repositoriesJob->create(array("applyId" => (string) $applyId));
108
+                            $entity = $repositoriesJob->create(array("applyId" => (string) $applyId));
109 109
                         } else {
110 110
                             $createdJob = false;
111 111
                         }
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -179,9 +179,9 @@
 block discarded – undo
179 179
                                 $location = new Location();
180 180
                                 $coords = array_map(function($i) { return (float) $i; }, $locData['coordinates']);
181 181
                                 $location->setCountry($locData['country'])
182
-                                         ->setRegion($locData['region'])
183
-                                         ->setCity($locData['city'])
184
-                                         ->setCoordinates(new Point($coords));
182
+                                            ->setRegion($locData['region'])
183
+                                            ->setCity($locData['city'])
184
+                                            ->setCoordinates(new Point($coords));
185 185
 
186 186
                                 $jobLocations->add($location);
187 187
                             }
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Controller/IndexController.php 1 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       MIT
8
- */
3
+     * YAWIK
4
+     *
5
+     * @filesource
6
+     * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
+     * @license       MIT
8
+     */
9 9
 
10 10
 /** ActionController of Jobs */
11 11
 namespace Jobs\Controller;
@@ -158,8 +158,8 @@  discard block
 block discarded – undo
158 158
         /* @var $repository \Jobs\Repository\Job */
159 159
         $query      = $this->params()->fromQuery('q', '*');
160 160
         $repository = $this->getServiceLocator()
161
-                           ->get('repositories')
162
-                           ->get('Jobs/Job');
161
+                            ->get('repositories')
162
+                            ->get('Jobs/Job');
163 163
 
164 164
         $return = array();
165 165
         foreach ($repository->getTypeaheadResults($query, $this->auth('id')) as $id => $item) {
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Controller/JobboardController.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
         }
97 97
 
98 98
         if (!isset($params['sort'])) {
99
-            $params['sort']='-date';
99
+            $params['sort'] = '-date';
100 100
         }
101 101
 
102 102
         $this->searchForm->setAttribute('action', $url);
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
- * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
- * @license   MIT
8
- */
3
+     * YAWIK
4
+     *
5
+     * @filesource
6
+     * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
+     * @license   MIT
8
+     */
9 9
 
10 10
 /** SettingsEntityResolverFactory.php */
11 11
 namespace Settings\Repository;
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Controller/TemplateController.php 2 patches
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 [email protected]
8
- * @license   MIT
9
- */
3
+     * YAWIK
4
+     *
5
+     * @filesource
6
+     * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
+     * @author [email protected]
8
+     * @license   MIT
9
+     */
10 10
 
11 11
 namespace Jobs\Controller;
12 12
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
     protected function editTemplateAction()
81 81
     {
82 82
         $id = $this->params('id');
83
-        $formIdentifier=$this->params()->fromQuery('form');
83
+        $formIdentifier = $this->params()->fromQuery('form');
84 84
         $job = $this->jobRepository->find($id);
85 85
 
86 86
         /** @var \Zend\Http\Request $request */
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Entity/Hydrator/JsonJobsEntityHydratorFactory.php 2 patches
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 Jobs\Entity\Hydrator;
12 12
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,6 +22,6 @@
 block discarded – undo
22 22
      *
23 23
      */
24 24
     protected function prepareHydrator() {
25
-        $this->hydrator->setExcludeMethods(array('user', 'applications', 'termsAccepted', 'atsEnabled', 'permissions'));;
25
+        $this->hydrator->setExcludeMethods(array('user', 'applications', 'termsAccepted', 'atsEnabled', 'permissions')); ;
26 26
     }
27 27
 }
28 28
\ No newline at end of file
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Entity/Job.php 3 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * YAWIK
4
- *
5
- * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
6
- * @license   MIT
7
- */
3
+     * YAWIK
4
+     *
5
+     * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
6
+     * @license   MIT
7
+     */
8 8
 
9 9
 namespace Jobs\Entity;
10 10
 
@@ -380,10 +380,10 @@  discard block
 block discarded – undo
380 380
         return $this;
381 381
     }
382 382
     
383
-     /**
384
-     * (non-PHPdoc)
385
-     * @see \Jobs\Entity\JobInterface::getOrganization()
386
-     */
383
+        /**
384
+         * (non-PHPdoc)
385
+         * @see \Jobs\Entity\JobInterface::getOrganization()
386
+         */
387 387
     public function getOrganization()
388 388
     {
389 389
         return $this->organization;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -513,7 +513,7 @@  discard block
 block discarded – undo
513 513
             if ($removePermissions) {
514 514
                 $this->getPermissions()->revoke($this->user, Permissions::PERMISSION_ALL);
515 515
             }
516
-            $this->user=null;
516
+            $this->user = null;
517 517
         }
518 518
 
519 519
         return $this;
@@ -1003,7 +1003,7 @@  discard block
 block discarded – undo
1003 1003
      */
1004 1004
     public function getSnapshotGenerator()
1005 1005
     {
1006
-        $generator = array (
1006
+        $generator = array(
1007 1007
             'hydrator' => '',
1008 1008
             'target' => 'Jobs\Entity\JobSnapshot',
1009 1009
             'exclude' => array('permissions', 'history')
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -503,7 +503,7 @@  discard block
 block discarded – undo
503 503
     }
504 504
     /**
505 505
      * Gets the number of unread applications
506
-     * @return Collection
506
+     * @return integer
507 507
      */
508 508
     public function getUnreadApplications()
509 509
     {
@@ -917,7 +917,7 @@  discard block
 block discarded – undo
917 917
     }
918 918
 
919 919
     /**
920
-     * @return Job
920
+     * @return JobSnapshot
921 921
      */
922 922
     public function makeSnapshot()
923 923
     {
Please login to merge, or discard this patch.