@@ -5,7 +5,7 @@ |
||
5 | 5 | * @filesource |
6 | 6 | * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
7 | 7 | * @license MIT |
8 | - */ |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | namespace Jobs\Factory\Form\Hydrator; |
11 | 11 |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | $elements = [ |
60 | 60 | 'general' => [ |
61 | 61 | 'priority' => 100, |
62 | - 'options' => [ 'label' => 'Basic Data' ], |
|
62 | + 'options' => ['label' => 'Basic Data'], |
|
63 | 63 | 'property' => true, |
64 | 64 | 'forms' => [ |
65 | 65 | |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | |
104 | 104 | 'description' => [ |
105 | 105 | 'priority' => '80', |
106 | - 'options' => [ 'label' => 'Job opening' ], |
|
106 | + 'options' => ['label' => 'Job opening'], |
|
107 | 107 | 'property' => true, |
108 | 108 | 'forms' => [ |
109 | 109 | 'descriptionForm' => array( |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | |
116 | 116 | 'preview' => [ |
117 | 117 | 'priority' => 60, |
118 | - 'options' => [ 'label' => 'Preview' ], |
|
118 | + 'options' => ['label' => 'Preview'], |
|
119 | 119 | 'property' => true, |
120 | 120 | 'forms' => [ |
121 | 121 | 'previewForm' => array( |
@@ -129,13 +129,13 @@ discard block |
||
129 | 129 | |
130 | 130 | $this->setForms($elements); |
131 | 131 | |
132 | - $events = $this->getEventManager(); |
|
132 | + $events = $this->getEventManager(); |
|
133 | 133 | $events->trigger(FormEvent::EVENT_INIT, $this); |
134 | 134 | } |
135 | 135 | |
136 | 136 | public function renderPost(Renderer $renderer) |
137 | 137 | { |
138 | - $coreformsjs = $renderer->basepath('/Core/js/core.forms.js'); |
|
138 | + $coreformsjs = $renderer->basepath('/Core/js/core.forms.js'); |
|
139 | 139 | $javaScript = <<<JS |
140 | 140 | $(document).ready(function() { |
141 | 141 |
@@ -92,7 +92,7 @@ |
||
92 | 92 | ), |
93 | 93 | 'attributes' => [ |
94 | 94 | 'value' => '10', // default distance |
95 | - 'data-searchbox' => -1, // hide the search box |
|
95 | + 'data-searchbox' => -1, // hide the search box |
|
96 | 96 | 'data-allowclear' => 'false', // allow to clear a selected value |
97 | 97 | 'data-placeholder' => /*@translate*/ 'Distance', |
98 | 98 | 'data-width' => '100%', |
@@ -28,7 +28,7 @@ |
||
28 | 28 | * |
29 | 29 | * @var string |
30 | 30 | */ |
31 | - protected $options="Jobs/Options"; |
|
31 | + protected $options = "Jobs/Options"; |
|
32 | 32 | |
33 | 33 | /** |
34 | 34 | * Configure the Form width Options |
@@ -107,23 +107,23 @@ |
||
107 | 107 | |
108 | 108 | |
109 | 109 | /** |
110 | - * Sets the name of the organization |
|
111 | - * |
|
112 | - * @param OrganizationName organizationName |
|
113 | - * @return OrganizationInterface |
|
114 | - */ |
|
110 | + * Sets the name of the organization |
|
111 | + * |
|
112 | + * @param OrganizationName organizationName |
|
113 | + * @return OrganizationInterface |
|
114 | + */ |
|
115 | 115 | public function setOrganizationName(OrganizationName $organizationNames); |
116 | 116 | |
117 | - /** |
|
118 | - * Gets the name of the organization |
|
119 | - * |
|
120 | - * @return OrganizationName |
|
121 | - */ |
|
117 | + /** |
|
118 | + * Gets the name of the organization |
|
119 | + * |
|
120 | + * @return OrganizationName |
|
121 | + */ |
|
122 | 122 | public function getOrganizationName(); |
123 | 123 | |
124 | - /** |
|
125 | - * @return string |
|
126 | - */ |
|
124 | + /** |
|
125 | + * @return string |
|
126 | + */ |
|
127 | 127 | public function getDescription(); |
128 | 128 | |
129 | 129 | /** |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | */ |
72 | 72 | public function setHouseNumber($houseNumber = "") |
73 | 73 | { |
74 | - $this->houseNumber=$houseNumber; |
|
74 | + $this->houseNumber = $houseNumber; |
|
75 | 75 | return $this; |
76 | 76 | } |
77 | 77 | |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | */ |
138 | 138 | public function setStreet($street = "") |
139 | 139 | { |
140 | - $this->street=$street; |
|
140 | + $this->street = $street; |
|
141 | 141 | return $this; |
142 | 142 | } |
143 | 143 | |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | */ |
161 | 161 | public function setPhone($phone = "") |
162 | 162 | { |
163 | - $this->phone=$phone; |
|
163 | + $this->phone = $phone; |
|
164 | 164 | return $this; |
165 | 165 | } |
166 | 166 | |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | */ |
184 | 184 | public function setFax($fax = "") |
185 | 185 | { |
186 | - $this->fax=$fax; |
|
186 | + $this->fax = $fax; |
|
187 | 187 | return $this; |
188 | 188 | } |
189 | 189 |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | |
57 | 57 | $query = $this->params()->fromQuery(); |
58 | 58 | |
59 | - switch($this->plugin){ |
|
59 | + switch ($this->plugin) { |
|
60 | 60 | case 'photon': |
61 | 61 | /* @var Plugin\Photon $geoApi */ |
62 | 62 | $geoApi = $this->getPluginManager()->get('geo/photon'); |
@@ -70,19 +70,19 @@ discard block |
||
70 | 70 | } |
71 | 71 | $result = array(); |
72 | 72 | if (!empty($query['q'])) { |
73 | - $result = $geoApi($query['q'], $this->geoCoderUrl, $this->params('lang','de')); |
|
73 | + $result = $geoApi($query['q'], $this->geoCoderUrl, $this->params('lang', 'de')); |
|
74 | 74 | } |
75 | 75 | $viewModel = new JsonModel($result); |
76 | 76 | /* @var \Zend\Http\Response $response */ |
77 | 77 | $response = $this->getResponse(); |
78 | 78 | |
79 | 79 | $date = new \DateTime(); |
80 | - $expires=$date->modify('+100 day'); |
|
80 | + $expires = $date->modify('+100 day'); |
|
81 | 81 | |
82 | 82 | $response->getHeaders() |
83 | - ->addHeaderLine('Pragma','cache') |
|
84 | - ->addHeaderLine('Cache-Control',"max-age=290304000, public") |
|
85 | - ->addHeaderLine('Expires',$expires->format(\DateTime::RFC1036)); |
|
83 | + ->addHeaderLine('Pragma', 'cache') |
|
84 | + ->addHeaderLine('Cache-Control', "max-age=290304000, public") |
|
85 | + ->addHeaderLine('Expires', $expires->format(\DateTime::RFC1036)); |
|
86 | 86 | |
87 | 87 | return $viewModel; |
88 | 88 | } |
@@ -16,6 +16,6 @@ |
||
16 | 16 | $container = new \Core\Form\CollectionContainer('CvSkillForm', new \Cv\Entity\Skill()); |
17 | 17 | $container->setLabel(/*@translate */ 'Skills'); |
18 | 18 | |
19 | - return $container; |
|
19 | + return $container; |
|
20 | 20 | } |
21 | 21 | } |
@@ -16,6 +16,6 @@ |
||
16 | 16 | $container = new \Core\Form\CollectionContainer('Cv/LanguageSkillForm', new \Cv\Entity\Language()); |
17 | 17 | $container->setLabel(/*@translate */ 'Additional Language Skills'); |
18 | 18 | |
19 | - return $container; |
|
19 | + return $container; |
|
20 | 20 | } |
21 | 21 | } |