@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * Auth Module Bootstrap |
|
5 | - * |
|
6 | - * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | - * @license MIT |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * Auth Module Bootstrap |
|
5 | + * |
|
6 | + * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | + * @license MIT |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | namespace Jobs; |
11 | 11 |
@@ -15,7 +15,7 @@ |
||
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( |
@@ -26,8 +26,8 @@ |
||
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( |
@@ -50,7 +50,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 | } |
@@ -105,7 +105,7 @@ |
||
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 | } |
@@ -179,9 +179,9 @@ |
||
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 | } |
@@ -1,11 +1,11 @@ discard block |
||
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 |
||
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) { |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | /** |
77 | 77 | * List jobs. |
78 | 78 | * |
79 | - * @return array |
|
79 | + * @return ViewModel |
|
80 | 80 | */ |
81 | 81 | public function indexAction() |
82 | 82 | { |
@@ -84,7 +84,6 @@ discard block |
||
84 | 84 | } |
85 | 85 | |
86 | 86 | /** |
87 | - * @param bool $showPendingJobs |
|
88 | 87 | * |
89 | 88 | * @return ViewModel |
90 | 89 | */ |
@@ -96,7 +96,7 @@ |
||
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); |
@@ -1,11 +1,11 @@ |
||
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; |
@@ -1,12 +1,12 @@ |
||
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 |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | $mvcEvent = $this->getEvent(); |
57 | 57 | $applicationViewModel = $mvcEvent->getViewModel(); |
58 | 58 | |
59 | - $isAdmin=$this->auth()->isAdmin(); |
|
59 | + $isAdmin = $this->auth()->isAdmin(); |
|
60 | 60 | |
61 | 61 | $model = $services->get('Jobs/viewModelTemplateFilter')->__invoke($job); |
62 | 62 | |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | protected function editTemplateAction() |
79 | 79 | { |
80 | 80 | $id = $this->params('id'); |
81 | - $formIdentifier=$this->params()->fromQuery('form'); |
|
81 | + $formIdentifier = $this->params()->fromQuery('form'); |
|
82 | 82 | $job = $this->jobRepository->find($id); |
83 | 83 | |
84 | 84 | $request = $this->getRequest(); |
@@ -1,12 +1,12 @@ |
||
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 |
@@ -22,6 +22,6 @@ |
||
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 |