@@ -32,6 +32,6 @@ |
||
32 | 32 | */ |
33 | 33 | public function getUri() |
34 | 34 | { |
35 | - return "/file/Cv.Attachment/" . $this->getId() . "/" .urlencode($this->name); |
|
35 | + return "/file/Cv.Attachment/".$this->getId()."/".urlencode($this->name); |
|
36 | 36 | } |
37 | 37 | } |
@@ -97,8 +97,8 @@ |
||
97 | 97 | $value = null; |
98 | 98 | $service = $this->getService(); |
99 | 99 | $user = $service->getUser(); |
100 | - if (method_exists($user,"get".$property)) { |
|
101 | - $value = $user->{"get" . $property}(); |
|
100 | + if (method_exists($user, "get".$property)) { |
|
101 | + $value = $user->{"get".$property}(); |
|
102 | 102 | } |
103 | 103 | return $value; |
104 | 104 | } catch (\OutOfBoundsException $e) { |
@@ -92,7 +92,7 @@ |
||
92 | 92 | } |
93 | 93 | return $value; |
94 | 94 | } |
95 | - return 'id' == $property ? $auth->getIdentity() : $auth->getUser()->{'get' . $property}(); |
|
95 | + return 'id' == $property ? $auth->getIdentity() : $auth->getUser()->{'get'.$property}(); |
|
96 | 96 | } |
97 | 97 | return null; |
98 | 98 | } |
@@ -51,7 +51,7 @@ |
||
51 | 51 | 'options' => [ |
52 | 52 | 'placeholder' => /*@translate*/ 'Enter pure html code here', |
53 | 53 | ], |
54 | - 'attributes' => ['style' => 'width:100%;height:100%;',] |
|
54 | + 'attributes' => ['style' => 'width:100%;height:100%;', ] |
|
55 | 55 | ] |
56 | 56 | ); |
57 | 57 | } |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | * @var String |
37 | 37 | * @ODM\Field(type="string") |
38 | 38 | */ |
39 | - protected $qualifications=''; |
|
39 | + protected $qualifications = ''; |
|
40 | 40 | |
41 | 41 | /** |
42 | 42 | * Requirements field of the job template |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | * @var String |
45 | 45 | * @ODM\Field(type="string") |
46 | 46 | */ |
47 | - protected $requirements=''; |
|
47 | + protected $requirements = ''; |
|
48 | 48 | |
49 | 49 | /** |
50 | 50 | * Benefits field of the job template |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | * @var String |
53 | 53 | * @ODM\Field(type="string") |
54 | 54 | */ |
55 | - protected $benefits=''; |
|
55 | + protected $benefits = ''; |
|
56 | 56 | |
57 | 57 | /** |
58 | 58 | * Job title field of the job template |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | * @var String |
61 | 61 | * @ODM\Field(type="string") |
62 | 62 | */ |
63 | - protected $title=''; |
|
63 | + protected $title = ''; |
|
64 | 64 | |
65 | 65 | /** |
66 | 66 | * Company description field of the job template |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | * @var String |
69 | 69 | * @ODM\Field(type="string") |
70 | 70 | */ |
71 | - protected $description=''; |
|
71 | + protected $description = ''; |
|
72 | 72 | |
73 | 73 | /** |
74 | 74 | * language of the job template values. Must be a valid ISO 639-1 code |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | * @var String |
77 | 77 | * @ODM\Field(type="string") |
78 | 78 | */ |
79 | - protected $language='en'; |
|
79 | + protected $language = 'en'; |
|
80 | 80 | |
81 | 81 | /** |
82 | 82 | * Pure HTML |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | * @var string |
86 | 86 | * @since 0.29 |
87 | 87 | */ |
88 | - protected $html=''; |
|
88 | + protected $html = ''; |
|
89 | 89 | |
90 | 90 | /** |
91 | 91 | * free values (currently not in use) |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | */ |
103 | 103 | public function setQualifications($qualifications) |
104 | 104 | { |
105 | - $this->qualifications= (string) $qualifications; |
|
105 | + $this->qualifications = (string) $qualifications; |
|
106 | 106 | return $this; |
107 | 107 | } |
108 | 108 | |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | */ |
125 | 125 | public function setRequirements($requirements) |
126 | 126 | { |
127 | - $this->requirements=(string) $requirements; |
|
127 | + $this->requirements = (string) $requirements; |
|
128 | 128 | return $this; |
129 | 129 | } |
130 | 130 | |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | */ |
147 | 147 | public function setBenefits($benefits) |
148 | 148 | { |
149 | - $this->benefits=(string) $benefits; |
|
149 | + $this->benefits = (string) $benefits; |
|
150 | 150 | return $this; |
151 | 151 | } |
152 | 152 | |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | */ |
169 | 169 | public function setTitle($title) |
170 | 170 | { |
171 | - $this->title=(string) $title; |
|
171 | + $this->title = (string) $title; |
|
172 | 172 | return $this; |
173 | 173 | } |
174 | 174 | |
@@ -190,7 +190,7 @@ discard block |
||
190 | 190 | */ |
191 | 191 | public function setDescription($description) |
192 | 192 | { |
193 | - $this->description=(string) $description; |
|
193 | + $this->description = (string) $description; |
|
194 | 194 | return $this; |
195 | 195 | } |
196 | 196 | |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | */ |
213 | 213 | public function setLanguage($language) |
214 | 214 | { |
215 | - $this->language=(string) $language; |
|
215 | + $this->language = (string) $language; |
|
216 | 216 | return $this; |
217 | 217 | } |
218 | 218 | |
@@ -281,7 +281,7 @@ discard block |
||
281 | 281 | |
282 | 282 | public function __get($property) |
283 | 283 | { |
284 | - $getter = "get" . ucfirst($property); |
|
284 | + $getter = "get".ucfirst($property); |
|
285 | 285 | if (method_exists($this, $getter)) { |
286 | 286 | return $this->$getter(); |
287 | 287 | } |
@@ -296,7 +296,7 @@ discard block |
||
296 | 296 | public function __set($property, $value) |
297 | 297 | { |
298 | 298 | //$this->checkWriteAccess(); |
299 | - $setter = 'set' . ucfirst($property); |
|
299 | + $setter = 'set'.ucfirst($property); |
|
300 | 300 | if (method_exists($this, $setter)) { |
301 | 301 | $this->$setter($value); |
302 | 302 | return; |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | * |
45 | 45 | * @var string |
46 | 46 | */ |
47 | - protected $language="de"; |
|
47 | + protected $language = "de"; |
|
48 | 48 | |
49 | 49 | /** |
50 | 50 | * @var |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | */ |
59 | 59 | public function render(ElementInterface $element) |
60 | 60 | { |
61 | - $name = $element->getName(); |
|
61 | + $name = $element->getName(); |
|
62 | 62 | if (empty($name) && $name !== 0) { |
63 | 63 | throw new \DomainException( |
64 | 64 | sprintf( |
@@ -82,10 +82,10 @@ discard block |
||
82 | 82 | $headscript->prependFile($basepath('/assets/jquery/jquery.min.js')); |
83 | 83 | |
84 | 84 | $headscript->offsetSetScript( |
85 | - '1000_tinymce_' . $this->getTheme(), |
|
85 | + '1000_tinymce_'.$this->getTheme(), |
|
86 | 86 | ' |
87 | 87 | $(document).ready(function() { |
88 | - tinyMCE.init({' . $this->additionalOptions() . ', |
|
88 | + tinyMCE.init({' . $this->additionalOptions().', |
|
89 | 89 | setup: function(editor) { |
90 | 90 | setPlaceHolder = function(editor, show) { |
91 | 91 | placeHolder = $("#placeholder-" + editor.id); |
@@ -131,15 +131,15 @@ discard block |
||
131 | 131 | } |
132 | 132 | if (is_string($content)) { |
133 | 133 | |
134 | - $class = array_key_exists('class', $attributes)?$attributes['class']:''; |
|
135 | - $class .= (empty($class)?:' ') . ' tinymce_' . $this->getTheme(); |
|
134 | + $class = array_key_exists('class', $attributes) ? $attributes['class'] : ''; |
|
135 | + $class .= (empty($class) ?: ' ').' tinymce_'.$this->getTheme(); |
|
136 | 136 | $attributes['class'] = $class; |
137 | 137 | $placeHolder = ''; |
138 | 138 | $elementOptions = $element->getOptions(); |
139 | 139 | if (array_key_exists('placeholder', $elementOptions) && !empty($elementOptions['placeholder'])) { |
140 | - $placeHolder = '<div id="placeholder-' . $name . '" style="border: 0 none; position: relative; top: 0ex; left: 10px; color: #aaa; height: 0px; overflow: visible;' . |
|
141 | - (empty($content)?'':'display:none;') . |
|
142 | - '">' . $this->translator->translate($elementOptions['placeholder']) . '</div>'; |
|
140 | + $placeHolder = '<div id="placeholder-'.$name.'" style="border: 0 none; position: relative; top: 0ex; left: 10px; color: #aaa; height: 0px; overflow: visible;'. |
|
141 | + (empty($content) ? '' : 'display:none;'). |
|
142 | + '">'.$this->translator->translate($elementOptions['placeholder']).'</div>'; |
|
143 | 143 | } |
144 | 144 | return |
145 | 145 | $placeHolder |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | * @param $language |
178 | 178 | */ |
179 | 179 | public function setLanguage($language) { |
180 | - $this->language=$language; |
|
180 | + $this->language = $language; |
|
181 | 181 | } |
182 | 182 | |
183 | 183 | /** |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | * @param $languagePath |
187 | 187 | */ |
188 | 188 | public function setLanguagePath($languagePath) { |
189 | - $this->languagePath=$languagePath; |
|
189 | + $this->languagePath = $languagePath; |
|
190 | 190 | } |
191 | 191 | |
192 | 192 | /** |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | * @param $name |
196 | 196 | * @param $value |
197 | 197 | */ |
198 | - public function setOption($name,$value){ |
|
198 | + public function setOption($name, $value) { |
|
199 | 199 | $this->options[$name] = $value; |
200 | 200 | |
201 | 201 | return $this; |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | */ |
209 | 209 | public function setOptions($options) |
210 | 210 | { |
211 | - foreach($options as $key => $val) { |
|
211 | + foreach ($options as $key => $val) { |
|
212 | 212 | $this->setOption($key, $val); |
213 | 213 | } |
214 | 214 | } |
@@ -47,7 +47,7 @@ |
||
47 | 47 | * @var array |
48 | 48 | */ |
49 | 49 | private $events = [ |
50 | - [ MvcEvent::EVENT_ROUTE, 'onRoute', 100 ], |
|
50 | + [MvcEvent::EVENT_ROUTE, 'onRoute', 100], |
|
51 | 51 | ]; |
52 | 52 | |
53 | 53 | /** |
@@ -28,11 +28,11 @@ discard block |
||
28 | 28 | $client->setMethod('GET'); |
29 | 29 | |
30 | 30 | $osmTags = [ |
31 | - 'tourism','aeroway','railway', 'amenity', 'historic', 'tunnel', 'mountain_pass', |
|
31 | + 'tourism', 'aeroway', 'railway', 'amenity', 'historic', 'tunnel', 'mountain_pass', |
|
32 | 32 | 'leisure', 'natural', 'bridge', 'waterway' |
33 | 33 | ]; |
34 | 34 | |
35 | - $osmTags = array_map(function($i) { return urlencode('!' . $i); }, $osmTags); |
|
35 | + $osmTags = array_map(function($i) { return urlencode('!'.$i); }, $osmTags); |
|
36 | 36 | |
37 | 37 | $uri = sprintf( |
38 | 38 | '%s?osm_tag=%s', |
@@ -59,12 +59,12 @@ discard block |
||
59 | 59 | { |
60 | 60 | $result = json_decode($result); |
61 | 61 | $result = $result->features; |
62 | - $r=[]; |
|
62 | + $r = []; |
|
63 | 63 | |
64 | 64 | foreach ($result as $key => $val) { |
65 | - $row=[ |
|
66 | - 'postalCode' => (property_exists($val->properties, 'postcode') ? $val->properties->postcode:''), |
|
67 | - 'city' =>(property_exists($val->properties, 'city') ? $val->properties->city:''), |
|
65 | + $row = [ |
|
66 | + 'postalCode' => (property_exists($val->properties, 'postcode') ? $val->properties->postcode : ''), |
|
67 | + 'city' =>(property_exists($val->properties, 'city') ? $val->properties->city : ''), |
|
68 | 68 | 'street' => (property_exists($val->properties, 'street') ? $val->properties->street : ''), |
69 | 69 | 'region' => (property_exists($val->properties, 'state') ? $val->properties->state : ''), |
70 | 70 | 'country' => (property_exists($val->properties, 'country') ? $val->properties->country : ''), |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | ]; |
82 | 82 | } |
83 | 83 | //$row['id'] = json_encode($row); |
84 | - $r[]=$row; |
|
84 | + $r[] = $row; |
|
85 | 85 | } |
86 | 86 | return $r; |
87 | 87 | } |
@@ -72,11 +72,11 @@ |
||
72 | 72 | public function get($form, $options = null, $params = null) |
73 | 73 | { |
74 | 74 | if (!is_object($form)) { |
75 | - $form = $this->formElementManager->get($form, $options); |
|
75 | + $form = $this->formElementManager->get($form, $options); |
|
76 | 76 | } |
77 | 77 | |
78 | 78 | /** @noinspection PhpUndefinedMethodInspection */ |
79 | - $params = $params ?: clone $this->getController()->getRequest()->getQuery(); |
|
79 | + $params = $params ?: clone $this->getController()->getRequest()->getQuery(); |
|
80 | 80 | |
81 | 81 | /* I tried using form methods (bind, isValid)... |
82 | 82 | * but because the search form could be in an invalidated state |