@@ -62,6 +62,6 @@ |
||
62 | 62 | ) |
63 | 63 | ) |
64 | 64 | ) |
65 | - ); |
|
65 | + ); |
|
66 | 66 | } |
67 | 67 | } |
@@ -23,8 +23,8 @@ |
||
23 | 23 | { |
24 | 24 | |
25 | 25 | /** (non-PHPdoc) |
26 | - * @see \Zend\ServiceManager\FactoryInterface::createService() |
|
27 | - */ |
|
26 | + * @see \Zend\ServiceManager\FactoryInterface::createService() |
|
27 | + */ |
|
28 | 28 | public function createService(ServiceLocatorInterface $serviceLocator) |
29 | 29 | { |
30 | 30 |
@@ -32,7 +32,7 @@ |
||
32 | 32 | $configArray = isset($configArray['paginator_manager']) ? $configArray['paginator_manager'] : array(); |
33 | 33 | $config = new PaginatorServiceConfig($configArray); |
34 | 34 | |
35 | - $service = new PaginatorService($serviceLocator, $config); |
|
35 | + $service = new PaginatorService($serviceLocator, $config); |
|
36 | 36 | |
37 | 37 | return $service; |
38 | 38 | } |
@@ -136,13 +136,13 @@ |
||
136 | 136 | { |
137 | 137 | $mail = $this->mailer->get('htmltemplate'); |
138 | 138 | $mail->setTemplate($template) |
139 | - ->setSubject($subject) |
|
140 | - ->setVariables( |
|
141 | - array( |
|
139 | + ->setSubject($subject) |
|
140 | + ->setVariables( |
|
141 | + array( |
|
142 | 142 | 'job' => $job, |
143 | 143 | 'siteName' => $this->options['siteName'], |
144 | 144 | ) |
145 | - ); |
|
145 | + ); |
|
146 | 146 | |
147 | 147 | if ($adminMail) { |
148 | 148 | $mail->setTo($this->options['adminEmail']); |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | * Gets the Job Titles of a certain user. |
69 | 69 | * |
70 | 70 | * @param $query |
71 | - * @param $userId |
|
71 | + * @param \Auth\Controller\Plugin\Auth $userId |
|
72 | 72 | * @return mixed |
73 | 73 | * @throws \Doctrine\ODM\MongoDB\MongoDBException |
74 | 74 | */ |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | /** |
92 | 92 | * Look for an drafted Document of a given user |
93 | 93 | * |
94 | - * @param $user |
|
94 | + * @param \Auth\Entity\AnonymousUser $user |
|
95 | 95 | * @return \Jobs\Entity\Job|null |
96 | 96 | */ |
97 | 97 | public function findDraft($user) |
@@ -40,8 +40,8 @@ discard block |
||
40 | 40 | { |
41 | 41 | $qb = $this->createQueryBuilder(); |
42 | 42 | $qb->hydrate(false) |
43 | - ->select('applyId') |
|
44 | - ->field('applyId')->equals($applyId); |
|
43 | + ->select('applyId') |
|
44 | + ->field('applyId')->equals($applyId); |
|
45 | 45 | |
46 | 46 | $result = $qb->getQuery()->execute(); |
47 | 47 | $count = $result->count(); |
@@ -75,11 +75,11 @@ discard block |
||
75 | 75 | { |
76 | 76 | $qb = $this->createQueryBuilder(); |
77 | 77 | $qb->hydrate(false) |
78 | - ->select('title', 'applyId') |
|
79 | - ->field('permissions.view')->equals($userId) |
|
80 | - ->field('title')->equals(new \MongoRegex('/' . $query . '/i')) |
|
81 | - ->sort('title') |
|
82 | - ->limit(5); |
|
78 | + ->select('title', 'applyId') |
|
79 | + ->field('permissions.view')->equals($userId) |
|
80 | + ->field('title')->equals(new \MongoRegex('/' . $query . '/i')) |
|
81 | + ->sort('title') |
|
82 | + ->limit(5); |
|
83 | 83 | |
84 | 84 | $result = $qb->getQuery()->execute(); |
85 | 85 | |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | $qb = $this->createQueryBuilder(); |
145 | 145 | $qb->distinct('organization') |
146 | 146 | ->hydrate(true) |
147 | - ->field('status.name')->notIn([ StatusInterface::EXPIRED, StatusInterface::INACTIVE ]); |
|
147 | + ->field('status.name')->notIn([ StatusInterface::EXPIRED, StatusInterface::INACTIVE ]); |
|
148 | 148 | $q = $qb->getQuery(); |
149 | 149 | $r = $q->execute(); |
150 | 150 | $r = $r->toArray(); |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | { |
57 | 57 | return $this->findBy( |
58 | 58 | array( |
59 | - 'permissions.assigned.' . $resourceId => array( |
|
59 | + 'permissions.assigned.'.$resourceId => array( |
|
60 | 60 | '$exists' => true |
61 | 61 | ) |
62 | 62 | ) |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | $qb->hydrate(false) |
78 | 78 | ->select('title', 'applyId') |
79 | 79 | ->field('permissions.view')->equals($userId) |
80 | - ->field('title')->equals(new \MongoRegex('/' . $query . '/i')) |
|
80 | + ->field('title')->equals(new \MongoRegex('/'.$query.'/i')) |
|
81 | 81 | ->sort('title') |
82 | 82 | ->limit(5); |
83 | 83 | |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | $qb = $this->createQueryBuilder(); |
145 | 145 | $qb->distinct('organization') |
146 | 146 | ->hydrate(true) |
147 | - ->field('status.name')->notIn([ StatusInterface::EXPIRED, StatusInterface::INACTIVE ]); |
|
147 | + ->field('status.name')->notIn([StatusInterface::EXPIRED, StatusInterface::INACTIVE]); |
|
148 | 148 | $q = $qb->getQuery(); |
149 | 149 | $r = $q->execute(); |
150 | 150 | $r = $r->toArray(); |
@@ -158,7 +158,7 @@ |
||
158 | 158 | */ |
159 | 159 | public function typeaheadAction() |
160 | 160 | { |
161 | - $query = $this->params()->fromQuery('q', '*'); |
|
161 | + $query = $this->params()->fromQuery('q', '*'); |
|
162 | 162 | |
163 | 163 | $return = array(); |
164 | 164 | foreach ($this->jobRepository->getTypeaheadResults($query, $this->auth('id')) as $id => $item) { |
@@ -36,11 +36,11 @@ |
||
36 | 36 | } |
37 | 37 | $entity = new Location(); |
38 | 38 | $entity->setCity($data['city']) |
39 | - ->setRegion($data['region']) |
|
40 | - ->setPostalcode($data['postalcode']) |
|
41 | - ->setCountry($data['country']); |
|
39 | + ->setRegion($data['region']) |
|
40 | + ->setPostalcode($data['postalcode']) |
|
41 | + ->setCountry($data['country']); |
|
42 | 42 | if (!empty($data['coordinates'])) { |
43 | - $entity->setCoordinates(new Point($data['coordinates'])); |
|
43 | + $entity->setCoordinates(new Point($data['coordinates'])); |
|
44 | 44 | } |
45 | 45 | |
46 | 46 | return $entity; |
@@ -71,8 +71,8 @@ discard block |
||
71 | 71 | $coordinates = $location->getCoordinates(); |
72 | 72 | $data = [ |
73 | 73 | "geometry" => [ |
74 | - "coordinates" => $coordinates?$coordinates->getCoordinates():[0,0], |
|
75 | - "type" => $coordinates?$coordinates->getType():'Point' |
|
74 | + "coordinates" => $coordinates ? $coordinates->getCoordinates() : [0, 0], |
|
75 | + "type" => $coordinates ? $coordinates->getType() : 'Point' |
|
76 | 76 | ], |
77 | 77 | "type" => "Feature", |
78 | 78 | "properties" => [ |
@@ -82,9 +82,9 @@ discard block |
||
82 | 82 | "postcode" => $location->getPostalcode() |
83 | 83 | ] |
84 | 84 | ]; |
85 | - return $location->getCity() . '|' . Json::encode($data); |
|
85 | + return $location->getCity().'|'.Json::encode($data); |
|
86 | 86 | } else { |
87 | - return $location->getCity() . ', ' . $location->getRegion(); |
|
87 | + return $location->getCity().', '.$location->getRegion(); |
|
88 | 88 | } |
89 | 89 | } |
90 | 90 | |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | public function toCoordinates($input) { |
99 | 99 | $client = new Client('http://api.cross-solution.de/geo'); |
100 | 100 | $client->setMethod('GET'); |
101 | - $client->setParameterGet(array('q' => $input, 'country' => 'DE', 'coor' => 1, 'zoom' => 1 , 'strict' => 0)); |
|
101 | + $client->setParameterGet(array('q' => $input, 'country' => 'DE', 'coor' => 1, 'zoom' => 1, 'strict' => 0)); |
|
102 | 102 | $response = $client->send(); |
103 | 103 | $result = $response->getBody(); |
104 | 104 | $result = json_decode($result); |
@@ -65,7 +65,7 @@ |
||
65 | 65 | */ |
66 | 66 | public function filter($value) |
67 | 67 | { |
68 | - $htmlPurifier = $this->getHtmlPurifier(); |
|
69 | - return $htmlPurifier->filter($value); |
|
68 | + $htmlPurifier = $this->getHtmlPurifier(); |
|
69 | + return $htmlPurifier->filter($value); |
|
70 | 70 | } |
71 | 71 | } |
72 | 72 | \ No newline at end of file |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | /** |
22 | 22 | * A new job was created. |
23 | 23 | */ |
24 | - const CREATED = /*@translate*/ 'created'; |
|
24 | + const CREATED = /*@translate*/ 'created'; |
|
25 | 25 | |
26 | 26 | /** |
27 | 27 | * A new job is waiting for approval |
@@ -36,12 +36,12 @@ discard block |
||
36 | 36 | /** |
37 | 37 | * A Job is accepted an is going to be published |
38 | 38 | */ |
39 | - const PUBLISH = /*@translate*/ 'publish'; |
|
39 | + const PUBLISH = /*@translate*/ 'publish'; |
|
40 | 40 | |
41 | 41 | /** |
42 | 42 | * A Job is online |
43 | 43 | */ |
44 | - const ACTIVE = /*@translate*/ 'active'; |
|
44 | + const ACTIVE = /*@translate*/ 'active'; |
|
45 | 45 | |
46 | 46 | /** |
47 | 47 | * A job was is set inactive |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | /** |
52 | 52 | * A job was expired |
53 | 53 | */ |
54 | - const EXPIRED = /*@translate*/ 'expired'; |
|
54 | + const EXPIRED = /*@translate*/ 'expired'; |
|
55 | 55 | |
56 | 56 | public function __construct($status = self::CREATED); |
57 | 57 |
@@ -58,8 +58,8 @@ |
||
58 | 58 | } |
59 | 59 | |
60 | 60 | if (is_string($specs)) { |
61 | - $helper->appendScript('// if you are missing the script ' . $specs . ' look up your config and enclose it in an array'); |
|
62 | - continue; |
|
61 | + $helper->appendScript('// if you are missing the script ' . $specs . ' look up your config and enclose it in an array'); |
|
62 | + continue; |
|
63 | 63 | } |
64 | 64 | |
65 | 65 | foreach ($specs as $spec) { |
@@ -58,7 +58,7 @@ |
||
58 | 58 | } |
59 | 59 | |
60 | 60 | if (is_string($specs)) { |
61 | - $helper->appendScript('// if you are missing the script ' . $specs . ' look up your config and enclose it in an array'); |
|
61 | + $helper->appendScript('// if you are missing the script '.$specs.' look up your config and enclose it in an array'); |
|
62 | 62 | continue; |
63 | 63 | } |
64 | 64 |