@@ -499,7 +499,7 @@ |
||
| 499 | 499 | */ |
| 500 | 500 | public function getTemplate() |
| 501 | 501 | { |
| 502 | - if (null === $this->template){ |
|
| 502 | + if (null === $this->template) { |
|
| 503 | 503 | $this->template = new Template(); |
| 504 | 504 | } |
| 505 | 505 | return $this->template; |
@@ -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 | } |
| 165 | 165 | |
| 166 | 166 | /** |
@@ -182,7 +182,7 @@ discard block |
||
| 182 | 182 | */ |
| 183 | 183 | public function setFax($fax = "") |
| 184 | 184 | { |
| 185 | - $this->fax=$fax; |
|
| 185 | + $this->fax = $fax; |
|
| 186 | 186 | } |
| 187 | 187 | |
| 188 | 188 | /** |
@@ -42,8 +42,8 @@ |
||
| 42 | 42 | { |
| 43 | 43 | $object = parent::hydrate($data, $object); |
| 44 | 44 | /* @var \Organizations\Entity\Template $template */ |
| 45 | - $template=$object->getOrganization()->getTemplate(); |
|
| 46 | - if (isset($data['description-label-requirements'])){ |
|
| 45 | + $template = $object->getOrganization()->getTemplate(); |
|
| 46 | + if (isset($data['description-label-requirements'])) { |
|
| 47 | 47 | $template->setLabelRequirements($data['description-label-requirements']); |
| 48 | 48 | } |
| 49 | 49 | if (isset($data['description-label-qualifications'])) { |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | throw new \InvalidArgumentException('cannot create a viewModel for Templates without aa $job'); |
| 172 | 172 | } |
| 173 | 173 | $location = $this->job->getLocation(); |
| 174 | - $this->container['location'] = isset($location)?$location:''; |
|
| 174 | + $this->container['location'] = isset($location) ? $location : ''; |
|
| 175 | 175 | return $this; |
| 176 | 176 | } |
| 177 | 177 | |
@@ -192,7 +192,7 @@ discard block |
||
| 192 | 192 | } |
| 193 | 193 | $description = $this->job->templateValues->description; |
| 194 | 194 | |
| 195 | - $this->container['description'] = isset($description)?$description:''; |
|
| 195 | + $this->container['description'] = isset($description) ? $description : ''; |
|
| 196 | 196 | return $this; |
| 197 | 197 | } |
| 198 | 198 | |
@@ -214,7 +214,7 @@ discard block |
||
| 214 | 214 | $organization = $this->job->organization; |
| 215 | 215 | if (isset($organization)) { |
| 216 | 216 | $organizationName = $organization->organizationName->name; |
| 217 | - $organizationStreet = $organization->contact->street.' '.$organization->contact->houseNumber; |
|
| 217 | + $organizationStreet = $organization->contact->street . ' ' . $organization->contact->houseNumber; |
|
| 218 | 218 | $organizationPostalCode = $organization->contact->postalcode; |
| 219 | 219 | $organizationPostalCity = $organization->contact->city; |
| 220 | 220 | $organizationPhone = $organization->contact->phone; |
@@ -247,9 +247,9 @@ discard block |
||
| 247 | 247 | if (!isset($this->job)) { |
| 248 | 248 | throw new \InvalidArgumentException('cannot create a viewModel for Templates without a $job'); |
| 249 | 249 | } |
| 250 | - $labelQualifications=''; |
|
| 251 | - $labelBenefits=''; |
|
| 252 | - $labelRequirements=''; |
|
| 250 | + $labelQualifications = ''; |
|
| 251 | + $labelBenefits = ''; |
|
| 252 | + $labelRequirements = ''; |
|
| 253 | 253 | |
| 254 | 254 | $organization = $this->job->organization; |
| 255 | 255 | if (isset($organization)) { |
@@ -14,9 +14,9 @@ discard block |
||
| 14 | 14 | { |
| 15 | 15 | protected $theme = 'light'; |
| 16 | 16 | |
| 17 | - protected $language="de"; |
|
| 17 | + protected $language = "de"; |
|
| 18 | 18 | |
| 19 | - protected $languagePath="/js/tinymce-lang/"; |
|
| 19 | + protected $languagePath = "/js/tinymce-lang/"; |
|
| 20 | 20 | |
| 21 | 21 | protected function additionalOptions() { |
| 22 | 22 | return ' |
@@ -26,11 +26,11 @@ discard block |
||
| 26 | 26 | '.$this->additionalLanguageOptions(); |
| 27 | 27 | } |
| 28 | 28 | |
| 29 | - protected function additionalLanguageOptions(){ |
|
| 30 | - $options=''; |
|
| 31 | - if (in_array($this->language,['de','fr','it','es','hi','ar','ru','zh','tr'])) { |
|
| 32 | - $options='language: "'.$this->language.'",'. |
|
| 33 | - 'language_url: "'. $this->languagePath . $this->language.'.js",'; |
|
| 29 | + protected function additionalLanguageOptions() { |
|
| 30 | + $options = ''; |
|
| 31 | + if (in_array($this->language, ['de', 'fr', 'it', 'es', 'hi', 'ar', 'ru', 'zh', 'tr'])) { |
|
| 32 | + $options = 'language: "' . $this->language . '",' . |
|
| 33 | + 'language_url: "' . $this->languagePath . $this->language . '.js",'; |
|
| 34 | 34 | } |
| 35 | 35 | return $options; |
| 36 | 36 | } |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | * @param $language |
| 42 | 42 | */ |
| 43 | 43 | public function setLanguage($language) { |
| 44 | - $this->language=$language; |
|
| 44 | + $this->language = $language; |
|
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | /** |
@@ -50,6 +50,6 @@ discard block |
||
| 50 | 50 | * @param $languagePath |
| 51 | 51 | */ |
| 52 | 52 | public function setLanguagePath($languagePath) { |
| 53 | - $this->languagePath=$languagePath; |
|
| 53 | + $this->languagePath = $languagePath; |
|
| 54 | 54 | } |
| 55 | 55 | } |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | * @var String |
| 36 | 36 | * @ODM\String |
| 37 | 37 | */ |
| 38 | - protected $qualifications=''; |
|
| 38 | + protected $qualifications = ''; |
|
| 39 | 39 | |
| 40 | 40 | /** |
| 41 | 41 | * Requirements field of the job template |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | * @var String |
| 44 | 44 | * @ODM\String |
| 45 | 45 | */ |
| 46 | - protected $requirements=''; |
|
| 46 | + protected $requirements = ''; |
|
| 47 | 47 | |
| 48 | 48 | /** |
| 49 | 49 | * Benefits field of the job template |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | * @var String |
| 52 | 52 | * @ODM\String |
| 53 | 53 | */ |
| 54 | - protected $benefits=''; |
|
| 54 | + protected $benefits = ''; |
|
| 55 | 55 | |
| 56 | 56 | /** |
| 57 | 57 | * Job title field of the job template |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | * @var String |
| 60 | 60 | * @ODM\String |
| 61 | 61 | */ |
| 62 | - protected $title=''; |
|
| 62 | + protected $title = ''; |
|
| 63 | 63 | |
| 64 | 64 | /** |
| 65 | 65 | * Company description field of the job template |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | * @var String |
| 68 | 68 | * @ODM\String |
| 69 | 69 | */ |
| 70 | - protected $description=''; |
|
| 70 | + protected $description = ''; |
|
| 71 | 71 | |
| 72 | 72 | /** |
| 73 | 73 | * language of the job template values. Must be a valid ISO 639-1 code |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | * @var String |
| 76 | 76 | * @ODM\String |
| 77 | 77 | */ |
| 78 | - protected $language='en'; |
|
| 78 | + protected $language = 'en'; |
|
| 79 | 79 | |
| 80 | 80 | /** |
| 81 | 81 | * free values (currently not in use) |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | */ |
| 93 | 93 | public function setQualifications($qualifications) |
| 94 | 94 | { |
| 95 | - $this->qualifications= (string) $qualifications; |
|
| 95 | + $this->qualifications = (string) $qualifications; |
|
| 96 | 96 | return $this; |
| 97 | 97 | } |
| 98 | 98 | |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | */ |
| 115 | 115 | public function setRequirements($requirements) |
| 116 | 116 | { |
| 117 | - $this->requirements=(string) $requirements; |
|
| 117 | + $this->requirements = (string) $requirements; |
|
| 118 | 118 | return $this; |
| 119 | 119 | } |
| 120 | 120 | |
@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | */ |
| 137 | 137 | public function setBenefits($benefits) |
| 138 | 138 | { |
| 139 | - $this->benefits=(string) $benefits; |
|
| 139 | + $this->benefits = (string) $benefits; |
|
| 140 | 140 | return $this; |
| 141 | 141 | } |
| 142 | 142 | |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | */ |
| 159 | 159 | public function setTitle($title) |
| 160 | 160 | { |
| 161 | - $this->title=(string) $title; |
|
| 161 | + $this->title = (string) $title; |
|
| 162 | 162 | return $this; |
| 163 | 163 | } |
| 164 | 164 | |
@@ -180,7 +180,7 @@ discard block |
||
| 180 | 180 | */ |
| 181 | 181 | public function setDescription($description) |
| 182 | 182 | { |
| 183 | - $this->description=(string) $description; |
|
| 183 | + $this->description = (string) $description; |
|
| 184 | 184 | return $this; |
| 185 | 185 | } |
| 186 | 186 | |
@@ -202,7 +202,7 @@ discard block |
||
| 202 | 202 | */ |
| 203 | 203 | public function setLanguage($language) |
| 204 | 204 | { |
| 205 | - $this->language=(string) $language; |
|
| 205 | + $this->language = (string) $language; |
|
| 206 | 206 | return $this; |
| 207 | 207 | } |
| 208 | 208 | |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | |
| 82 | 82 | if (isset($this->value['location']->coordinates)) { |
| 83 | 83 | $coordinates = $this->value['location']->coordinates->getCoordinates(); |
| 84 | - $queryBuilder->field('locations.coordinates')->geoWithinCenter($coordinates[0], $coordinates[1],(float) $this->value['d']/100); |
|
| 84 | + $queryBuilder->field('locations.coordinates')->geoWithinCenter($coordinates[0], $coordinates[1], (float) $this->value['d'] / 100); |
|
| 85 | 85 | } |
| 86 | 86 | |
| 87 | 87 | |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | */ |
| 95 | 95 | if (isset($this->value['params']['by']) && 'me' == $this->value['params']['by']) { |
| 96 | 96 | $queryBuilder->field('user')->equals($this->user->id); |
| 97 | - }else{ |
|
| 97 | + } else { |
|
| 98 | 98 | $queryBuilder->field('permissions.view')->equals($this->user->id); |
| 99 | 99 | } |
| 100 | 100 | if ( |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | * |
| 62 | 62 | * @var array() |
| 63 | 63 | */ |
| 64 | - protected $enableLogins = ['facebook','xing','linkedin','google','github']; |
|
| 64 | + protected $enableLogins = ['facebook', 'xing', 'linkedin', 'google', 'github']; |
|
| 65 | 65 | |
| 66 | 66 | /** |
| 67 | 67 | * Enable Registration |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | /* @var $serviceLocator \Zend\View\HelperPluginManager */ |
| 27 | 27 | $options = $serviceLocator->getServiceLocator()->get('Auth/Options'); |
| 28 | 28 | $config = $serviceLocator->getServiceLocator()->get('Config'); |
| 29 | - $helper = new SocialButtons($options,$config); |
|
| 29 | + $helper = new SocialButtons($options, $config); |
|
| 30 | 30 | return $helper; |
| 31 | 31 | } |
| 32 | 32 | } |