@@ -23,35 +23,35 @@ discard block |
||
23 | 23 | /** |
24 | 24 | * Job has been published |
25 | 25 | */ |
26 | - const RESPONSE_OK = 'ok'; |
|
26 | + const RESPONSE_OK = 'ok'; |
|
27 | 27 | |
28 | 28 | /** |
29 | 29 | * Job has been published and has stopped all other publishing |
30 | 30 | */ |
31 | - const RESPONSE_OKANDSTOP = 'ok and publishing terminated afterwards'; |
|
31 | + const RESPONSE_OKANDSTOP = 'ok and publishing terminated afterwards'; |
|
32 | 32 | |
33 | 33 | /** |
34 | 34 | * publishing has been stopped |
35 | 35 | */ |
36 | - const RESPONSE_STOP = 'publishing terminated'; |
|
36 | + const RESPONSE_STOP = 'publishing terminated'; |
|
37 | 37 | |
38 | 38 | /** |
39 | 39 | * publishing has been denied, |
40 | 40 | * this is very likely when a job was not intended to be sended to a portal |
41 | 41 | */ |
42 | - const RESPONSE_DENIED = 'denied'; |
|
42 | + const RESPONSE_DENIED = 'denied'; |
|
43 | 43 | |
44 | 44 | /** |
45 | 45 | * a connection to the portal could not be established |
46 | 46 | * or the publishing of the Job has been rejected for other reasons |
47 | 47 | */ |
48 | - const RESPONSE_FAIL = 'fail'; |
|
48 | + const RESPONSE_FAIL = 'fail'; |
|
49 | 49 | |
50 | 50 | /** |
51 | 51 | * This error has nothing to do with wrong inputs, |
52 | 52 | * something just has happend in the programm |
53 | 53 | */ |
54 | - const RESPONSE_ERROR = 'internal Error'; |
|
54 | + const RESPONSE_ERROR = 'internal Error'; |
|
55 | 55 | |
56 | 56 | /** |
57 | 57 | * nothing happens, but that's not a failure |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | /** |
63 | 63 | * nothing happens, and get used to it |
64 | 64 | */ |
65 | - const RESPONSE_DEPRECATED = 'deprecated'; |
|
65 | + const RESPONSE_DEPRECATED = 'deprecated'; |
|
66 | 66 | |
67 | 67 | /** |
68 | 68 | * @var string |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | * @param string $portal |
84 | 84 | * @param string $status |
85 | 85 | */ |
86 | - public function __construct($portal = '', $status = self::RESPONSE_NOTIMPLEMENTED, $message='') { |
|
86 | + public function __construct($portal = '', $status = self::RESPONSE_NOTIMPLEMENTED, $message = '') { |
|
87 | 87 | $this->portal = $portal; |
88 | 88 | $this->status = $status; |
89 | 89 | $this->message = $message; |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | * |
57 | 57 | * @var string |
58 | 58 | */ |
59 | - protected $options="Applications/Options"; |
|
59 | + protected $options = "Applications/Options"; |
|
60 | 60 | |
61 | 61 | |
62 | 62 | /** |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | ->setIsDescriptionsEnabled(true) |
78 | 78 | ->setDescription( |
79 | 79 | /*@translate*/ 'Attach images or PDF Documents to your application. Drag&drop them, or click into the attachement area. You can upload up to %sMB', |
80 | - [round($size/(1024*1024))>0? round($size/(1024*1024)):round($size/(1024*1024),1)] |
|
80 | + [round($size / (1024 * 1024)) > 0 ? round($size / (1024 * 1024)) : round($size / (1024 * 1024), 1)] |
|
81 | 81 | ) |
82 | 82 | ->setParam('return', 'file-uri') |
83 | 83 | ->setLabel(/*@translate*/ 'Attachments'); |
@@ -80,7 +80,7 @@ |
||
80 | 80 | * |
81 | 81 | * @return $this |
82 | 82 | */ |
83 | - public function setDescription($description,$params = null) |
|
83 | + public function setDescription($description, $params = null) |
|
84 | 84 | { |
85 | 85 | $this->options['description'] = $description; |
86 | 86 | $this->options['description_params'] = $params; |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | 'id', |
99 | 99 | preg_replace( |
100 | 100 | array('~[^A-Za-z0-9_-]~', '~--+~', '~^-|-$~'), |
101 | - array('-' , '-' , '' ), |
|
101 | + array('-', '-', ''), |
|
102 | 102 | $formId |
103 | 103 | ) |
104 | 104 | ); |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | if (!$element->hasAttribute('id')) { |
120 | 120 | $elementId = preg_replace( |
121 | 121 | array('~[^A-Za-z0-9_-]~', '~--+~', '~^-|-$~'), |
122 | - array('-' , '-', ''), |
|
122 | + array('-', '-', ''), |
|
123 | 123 | $form->getName() . '-' . $element->getName() |
124 | 124 | ); |
125 | 125 | $element->setAttribute('id', $elementId); |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | ); |
186 | 186 | |
187 | 187 | if ($desc = $form->getOption('description', '')) { |
188 | - $descriptionParams=$form->getOption('description_params'); |
|
188 | + $descriptionParams = $form->getOption('description_params'); |
|
189 | 189 | $translator = $this->getTranslator(); |
190 | 190 | $textDomain = $this->getTranslatorTextDomain(); |
191 | 191 | $desc = $translator->translate($desc, $textDomain); |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | */ |
82 | 82 | public function setLabelQualifications($labelQualifications) |
83 | 83 | { |
84 | - $this->labelQualifications=$labelQualifications; |
|
84 | + $this->labelQualifications = $labelQualifications; |
|
85 | 85 | return $this; |
86 | 86 | } |
87 | 87 | |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | */ |
105 | 105 | public function setLabelBenefits($labelBenefits) |
106 | 106 | { |
107 | - $this->labelBenefits=$labelBenefits; |
|
107 | + $this->labelBenefits = $labelBenefits; |
|
108 | 108 | return $this; |
109 | 109 | } |
110 | 110 |
@@ -40,10 +40,10 @@ discard block |
||
40 | 40 | |
41 | 41 | case "days": |
42 | 42 | $date = new \DateTime(); |
43 | - $date->modify('-' . (int) $value. ' day'); |
|
43 | + $date->modify('-' . (int) $value . ' day'); |
|
44 | 44 | $q = array('$lt' => $date); |
45 | 45 | if (isset($query['datePublishStart.date'])) { |
46 | - $query['datePublishStart.date']= array_merge( |
|
46 | + $query['datePublishStart.date'] = array_merge( |
|
47 | 47 | $query['datePublishStart.date'], |
48 | 48 | $q |
49 | 49 | ); |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | } |
60 | 60 | $query['status.name'] = 'active'; |
61 | 61 | |
62 | - $jobs = $jobsRepo->findBy($query,null,$limit); |
|
62 | + $jobs = $jobsRepo->findBy($query, null, $limit); |
|
63 | 63 | $count = count($jobs); |
64 | 64 | |
65 | 65 | if (0 === $count) { |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | |
74 | 74 | echo "$count jobs found, which have to expire ...\n"; |
75 | 75 | |
76 | - $progress = new ProgressBar( |
|
76 | + $progress = new ProgressBar( |
|
77 | 77 | new ConsoleAdapter( |
78 | 78 | array( |
79 | 79 | 'elements' => array( |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | continue; |
134 | 134 | } |
135 | 135 | try { |
136 | - $group = $user->getGroup($job->getCompany()); |
|
136 | + $group = $user->getGroup($job->getCompany()); |
|
137 | 137 | } catch (\Exception $e) { |
138 | 138 | continue; |
139 | 139 | } |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | { |
47 | 47 | $query = $this->params()->fromQuery(); |
48 | 48 | |
49 | - switch($this->plugin){ |
|
49 | + switch ($this->plugin) { |
|
50 | 50 | case 'photon': |
51 | 51 | /* @var Plugin\Photon $geoApi */ |
52 | 52 | $geoApi = $this->getPluginManager()->get('geo/photon'); |
@@ -60,19 +60,19 @@ discard block |
||
60 | 60 | } |
61 | 61 | $result = array(); |
62 | 62 | if (!empty($query['q'])) { |
63 | - $result = $geoApi($query['q'], $this->geoCoderUrl, $this->params('lang','de')); |
|
63 | + $result = $geoApi($query['q'], $this->geoCoderUrl, $this->params('lang', 'de')); |
|
64 | 64 | } |
65 | 65 | $viewModel = new JsonModel($result); |
66 | 66 | /* @var \Zend\Http\Response $response */ |
67 | 67 | $response = $this->getResponse(); |
68 | 68 | |
69 | 69 | $date = new \DateTime(); |
70 | - $expires=$date->modify('+100 day'); |
|
70 | + $expires = $date->modify('+100 day'); |
|
71 | 71 | |
72 | 72 | $response->getHeaders() |
73 | - ->addHeaderLine('Pragma','cache') |
|
74 | - ->addHeaderLine('Cache-Control',"max-age=290304000, public") |
|
75 | - ->addHeaderLine('Expires',$expires->format(\DateTime::RFC1036)); |
|
73 | + ->addHeaderLine('Pragma', 'cache') |
|
74 | + ->addHeaderLine('Cache-Control', "max-age=290304000, public") |
|
75 | + ->addHeaderLine('Expires', $expires->format(\DateTime::RFC1036)); |
|
76 | 76 | |
77 | 77 | return $viewModel; |
78 | 78 | } |
@@ -106,7 +106,7 @@ |
||
106 | 106 | $application = $repository->find($appId); |
107 | 107 | $application->comments->add($comment); |
108 | 108 | $application->changeStatus($application->getStatus(), sprintf( |
109 | - /* @translate */ 'Application was rated by %s' , |
|
109 | + /* @translate */ 'Application was rated by %s', |
|
110 | 110 | $this->auth()->getUser()->getInfo()->getDisplayName()) |
111 | 111 | ); |
112 | 112 | } |
@@ -46,7 +46,7 @@ |
||
46 | 46 | */ |
47 | 47 | function getUri() |
48 | 48 | { |
49 | - return '/' . trim('file/Organizations.OrganizationImage/' . $this->id . "/" . urlencode($this->name),'/'); |
|
49 | + return '/' . trim('file/Organizations.OrganizationImage/' . $this->id . "/" . urlencode($this->name), '/'); |
|
50 | 50 | } |
51 | 51 | |
52 | 52 | /** |