@@ -46,14 +46,14 @@ discard block |
||
46 | 46 | |
47 | 47 | $locationsStrategy = new \Zend\Hydrator\Strategy\ClosureStrategy( |
48 | 48 | /* extract */ |
49 | - function ($value) use ($geoLocationStrategy, $geoLocationIsMultiple) { |
|
49 | + function($value) use ($geoLocationStrategy, $geoLocationIsMultiple) { |
|
50 | 50 | $value = $geoLocationIsMultiple ? $value : $value->first(); |
51 | 51 | |
52 | 52 | return $geoLocationStrategy->extract($value); |
53 | 53 | }, |
54 | 54 | |
55 | 55 | /* hydrate */ |
56 | - function ($value) use ($geoLocationStrategy, $geoLocationIsMultiple) { |
|
56 | + function($value) use ($geoLocationStrategy, $geoLocationIsMultiple) { |
|
57 | 57 | if ($geoLocationIsMultiple) { |
58 | 58 | return $geoLocationStrategy->hydrate($value); |
59 | 59 | } |
@@ -123,14 +123,14 @@ discard block |
||
123 | 123 | $values = []; |
124 | 124 | foreach ($this->object->getLocations() as $loc) { |
125 | 125 | $values[] = trim( |
126 | - $loc->getPostalCode() . ' ' . $loc->getCity() . ', ' . $loc->getRegion(), |
|
126 | + $loc->getPostalCode().' '.$loc->getCity().', '.$loc->getRegion(), |
|
127 | 127 | ' ,' |
128 | 128 | ); |
129 | 129 | } |
130 | 130 | |
131 | 131 | if (count($values)) { |
132 | 132 | if ($isMultiple) { |
133 | - return '<ul><li>' . join('</li><li>', $values) . '</li></ul>'; |
|
133 | + return '<ul><li>'.join('</li><li>', $values).'</li></ul>'; |
|
134 | 134 | } else { |
135 | 135 | return $values[0]; |
136 | 136 | } |
@@ -31,7 +31,7 @@ |
||
31 | 31 | * |
32 | 32 | * @var array |
33 | 33 | */ |
34 | - protected $headscripts = [ 'modules/Jobs/js/forms.manager-select.js' ]; |
|
34 | + protected $headscripts = ['modules/Jobs/js/forms.manager-select.js']; |
|
35 | 35 | |
36 | 36 | public function setHeadscripts(array $scripts) |
37 | 37 | { |
@@ -82,7 +82,7 @@ |
||
82 | 82 | $options = parent::getValueOptions(); |
83 | 83 | |
84 | 84 | return true === $this->getOption('include_all_option') |
85 | - ? array_merge([ 'all' => /*@translate*/ 'All' ], $options) |
|
85 | + ? array_merge(['all' => /*@translate*/ 'All'], $options) |
|
86 | 86 | : $options; |
87 | 87 | } |
88 | 88 | } |
@@ -35,7 +35,7 @@ |
||
35 | 35 | |
36 | 36 | public function render(ElementInterface $element, $options = null) |
37 | 37 | { |
38 | - $content = '<iframe src="' . $element->getValue() . '" name="preview" style="width:100%; height:800px;"></iframe>'; |
|
38 | + $content = '<iframe src="'.$element->getValue().'" name="preview" style="width:100%; height:800px;"></iframe>'; |
|
39 | 39 | return $content; |
40 | 40 | } |
41 | 41 | } |
@@ -45,7 +45,7 @@ |
||
45 | 45 | ), |
46 | 46 | 'attributes' => array( |
47 | 47 | 'value' => Status::CREATED, |
48 | - 'data-searchbox' => -1, // hide the search box |
|
48 | + 'data-searchbox' => -1, // hide the search box |
|
49 | 49 | 'data-allowclear' => 'false', // allow to clear a selected value |
50 | 50 | ) |
51 | 51 | ) |
@@ -63,10 +63,10 @@ |
||
63 | 63 | $image = $org->getImage(); |
64 | 64 | $imageUrl = $image ? $image->getUri() : ''; |
65 | 65 | |
66 | - $options[$org->getId()] = $name . '|' |
|
67 | - . $contact->getCity() . '|' |
|
68 | - . $contact->getStreet() . '|' |
|
69 | - . $contact->getHouseNumber() . '|' |
|
66 | + $options[$org->getId()] = $name.'|' |
|
67 | + . $contact->getCity().'|' |
|
68 | + . $contact->getStreet().'|' |
|
69 | + . $contact->getHouseNumber().'|' |
|
70 | 70 | . $imageUrl; |
71 | 71 | } |
72 | 72 |
@@ -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 | } |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | 'property' => true, |
38 | 38 | 'options' => [ |
39 | 39 | 'enable_descriptions' => true, |
40 | - 'description' => /*@translate*/ 'Manage the professions you want to assign to jobs.' . |
|
40 | + 'description' => /*@translate*/ 'Manage the professions you want to assign to jobs.'. |
|
41 | 41 | /*@translate*/ 'The order of categories can be modified by drag&drop.', |
42 | 42 | 'display_mode' => SummaryForm::DISPLAY_SUMMARY, |
43 | 43 | ], |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | 'property' => true, |
57 | 57 | 'options' => [ |
58 | 58 | 'enable_descriptions' => true, |
59 | - 'description' => /*@translate*/ 'Manage the industries you want to assign to jobs.' . |
|
59 | + 'description' => /*@translate*/ 'Manage the industries you want to assign to jobs.'. |
|
60 | 60 | /*@translate*/ 'The order of categories can be modified by drag&drop.', |
61 | 61 | 'display_mode' => SummaryForm::DISPLAY_SUMMARY, |
62 | 62 | ], |
@@ -55,7 +55,7 @@ |
||
55 | 55 | ), |
56 | 56 | 'attributes' => [ |
57 | 57 | 'value' => '10', // default distance |
58 | - 'data-searchbox' => -1, // hide the search box |
|
58 | + 'data-searchbox' => -1, // hide the search box |
|
59 | 59 | 'data-allowclear' => 'false', // allow to clear a selected value |
60 | 60 | 'data-placeholder' => /*@translate*/ 'Distance', |
61 | 61 | ] |