@@ -101,7 +101,7 @@ |
||
101 | 101 | return; |
102 | 102 | } |
103 | 103 | |
104 | - /** |
|
104 | + /** |
|
105 | 105 | * @return mixed |
106 | 106 | */ |
107 | 107 | public function getServerUrlHelper() |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | 'sendImmediately' => false |
72 | 72 | ], $options); |
73 | 73 | $view = $this->view; |
74 | - $currentTemplate = $view->viewModel() |
|
74 | + $currentTemplate = $view->viewModel() |
|
75 | 75 | ->getCurrent() |
76 | 76 | ->getTemplate(); |
77 | 77 | $partial = dirname($currentTemplate) . '/' . $options['partial']; |
@@ -87,10 +87,10 @@ discard block |
||
87 | 87 | $label = $options['oneClickLabel'] ?: $view->translate('Apply with %s'); |
88 | 88 | |
89 | 89 | foreach ($data['oneClickProfiles'] as $network) { |
90 | - $variables['oneClick'][] = [ |
|
90 | + $variables['oneClick'][] = [ |
|
91 | 91 | 'label' => sprintf($label, $network), |
92 | 92 | 'url' => $view->url('lang/apply-one-click', ['applyId' => $data['applyId'], 'network' => $network, 'immediately' => $options['sendImmediately'] ?: null], ['force_canonical' => true]), |
93 | - 'network' => $network |
|
93 | + 'network' => $network |
|
94 | 94 | ]; |
95 | 95 | } |
96 | 96 | } |
@@ -98,22 +98,22 @@ discard block |
||
98 | 98 | return $view->partial($partial, $variables); |
99 | 99 | } |
100 | 100 | |
101 | - /** |
|
102 | - * @return string |
|
103 | - */ |
|
104 | - public function getPartial() |
|
105 | - { |
|
106 | - return $this->partial; |
|
107 | - } |
|
101 | + /** |
|
102 | + * @return string |
|
103 | + */ |
|
104 | + public function getPartial() |
|
105 | + { |
|
106 | + return $this->partial; |
|
107 | + } |
|
108 | 108 | |
109 | - /** |
|
110 | - * @param string $partial |
|
111 | - * @return ApplyButtons |
|
112 | - */ |
|
113 | - public function setPartial($partial) |
|
114 | - { |
|
115 | - $this->partial = $partial; |
|
109 | + /** |
|
110 | + * @param string $partial |
|
111 | + * @return ApplyButtons |
|
112 | + */ |
|
113 | + public function setPartial($partial) |
|
114 | + { |
|
115 | + $this->partial = $partial; |
|
116 | 116 | |
117 | - return $this; |
|
118 | - } |
|
117 | + return $this; |
|
118 | + } |
|
119 | 119 | } |
@@ -208,13 +208,13 @@ discard block |
||
208 | 208 | return $this->email; |
209 | 209 | } |
210 | 210 | |
211 | - /** |
|
212 | - * @return bool |
|
213 | - */ |
|
214 | - public function getOneClickApply() |
|
215 | - { |
|
216 | - return $this->oneClickApply; |
|
217 | - } |
|
211 | + /** |
|
212 | + * @return bool |
|
213 | + */ |
|
214 | + public function getOneClickApply() |
|
215 | + { |
|
216 | + return $this->oneClickApply; |
|
217 | + } |
|
218 | 218 | |
219 | 219 | |
220 | 220 | /** |
@@ -222,29 +222,29 @@ discard block |
||
222 | 222 | * |
223 | 223 | * @return $this |
224 | 224 | */ |
225 | - public function setOneClickApply($oneClickApply) |
|
226 | - { |
|
227 | - $this->oneClickApply = (bool)$oneClickApply; |
|
225 | + public function setOneClickApply($oneClickApply) |
|
226 | + { |
|
227 | + $this->oneClickApply = (bool)$oneClickApply; |
|
228 | 228 | |
229 | - return $this; |
|
230 | - } |
|
231 | - |
|
232 | - /** |
|
233 | - * @return array |
|
234 | - */ |
|
235 | - public function getOneClickApplyProfiles() |
|
236 | - { |
|
237 | - return $this->oneClickApplyProfiles; |
|
238 | - } |
|
239 | - |
|
240 | - /** |
|
241 | - * @param array $oneClickApplyProfiles |
|
242 | - * @return AtsMode |
|
243 | - */ |
|
244 | - public function setOneClickApplyProfiles(array $oneClickApplyProfiles) |
|
245 | - { |
|
246 | - $this->oneClickApplyProfiles = $oneClickApplyProfiles; |
|
229 | + return $this; |
|
230 | + } |
|
231 | + |
|
232 | + /** |
|
233 | + * @return array |
|
234 | + */ |
|
235 | + public function getOneClickApplyProfiles() |
|
236 | + { |
|
237 | + return $this->oneClickApplyProfiles; |
|
238 | + } |
|
239 | + |
|
240 | + /** |
|
241 | + * @param array $oneClickApplyProfiles |
|
242 | + * @return AtsMode |
|
243 | + */ |
|
244 | + public function setOneClickApplyProfiles(array $oneClickApplyProfiles) |
|
245 | + { |
|
246 | + $this->oneClickApplyProfiles = $oneClickApplyProfiles; |
|
247 | 247 | |
248 | - return $this; |
|
249 | - } |
|
248 | + return $this; |
|
249 | + } |
|
250 | 250 | } |
@@ -33,7 +33,7 @@ |
||
33 | 33 | ]; |
34 | 34 | |
35 | 35 | // do nothing for allowed routes |
36 | - if (in_array($routeName, $allowedRoutes)) |
|
36 | + if (in_array($routeName, $allowedRoutes)) |
|
37 | 37 | { |
38 | 38 | return; |
39 | 39 | } |
@@ -62,17 +62,17 @@ |
||
62 | 62 | } |
63 | 63 | |
64 | 64 | /** |
65 | - * @param array $statusOptions |
|
66 | - * @return UserStatusFieldset |
|
67 | - */ |
|
68 | - public function setStatusOptions(array $statusOptions) |
|
69 | - { |
|
70 | - $this->statusOptions = $statusOptions; |
|
65 | + * @param array $statusOptions |
|
66 | + * @return UserStatusFieldset |
|
67 | + */ |
|
68 | + public function setStatusOptions(array $statusOptions) |
|
69 | + { |
|
70 | + $this->statusOptions = $statusOptions; |
|
71 | 71 | |
72 | - return $this; |
|
73 | - } |
|
72 | + return $this; |
|
73 | + } |
|
74 | 74 | |
75 | - public function init() |
|
75 | + public function init() |
|
76 | 76 | { |
77 | 77 | $this->setName('status'); |
78 | 78 |
@@ -84,9 +84,9 @@ |
||
84 | 84 | $imageStrategy = $infoContainer->getForm('info.image') |
85 | 85 | ->getHydrator() |
86 | 86 | ->getStrategy('image'); |
87 | - $fileEntity = $imageStrategy->getFileEntity(); |
|
88 | - $fileEntity->setUser($user); |
|
89 | - $imageStrategy->setFileEntity($fileEntity); |
|
87 | + $fileEntity = $imageStrategy->getFileEntity(); |
|
88 | + $fileEntity->setUser($user); |
|
89 | + $imageStrategy->setFileEntity($fileEntity); |
|
90 | 90 | |
91 | 91 | if ($this->request->isPost()) { |
92 | 92 | $formName = $params->fromQuery('form'); |
@@ -25,9 +25,9 @@ |
||
25 | 25 | public function indexAction() |
26 | 26 | { |
27 | 27 | return $this->pagination([ |
28 | - 'form' => ['Core/TextSearch', 'as' => 'form'], |
|
29 | - 'paginator' => ['Orders', [ 'sort' => 'date'], 'as' => 'orders'] |
|
30 | - ]); |
|
28 | + 'form' => ['Core/TextSearch', 'as' => 'form'], |
|
29 | + 'paginator' => ['Orders', [ 'sort' => 'date'], 'as' => 'orders'] |
|
30 | + ]); |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | public function viewAction() |
@@ -53,10 +53,10 @@ |
||
53 | 53 | public function init() |
54 | 54 | { |
55 | 55 | $this->setAttributes([ |
56 | - 'class' => 'form-inline search-form', |
|
57 | - 'data-handle-by' => 'script', |
|
58 | - 'method' => 'get', |
|
59 | - ] |
|
56 | + 'class' => 'form-inline search-form', |
|
57 | + 'data-handle-by' => 'script', |
|
58 | + 'method' => 'get', |
|
59 | + ] |
|
60 | 60 | ); |
61 | 61 | |
62 | 62 | if (!$this->hasAttribute('name')) { |
@@ -64,8 +64,8 @@ discard block |
||
64 | 64 | $content = $this->renderElements($elements, $buttons, $colMap, $buttonsSpan); |
65 | 65 | |
66 | 66 | return $this->openTag($form) |
67 | - . '<div class="row" style="padding: 0 15px;">' |
|
68 | - . $content . '</div>' . $this->closeTag(); |
|
67 | + . '<div class="row" style="padding: 0 15px;">' |
|
68 | + . $content . '</div>' . $this->closeTag(); |
|
69 | 69 | |
70 | 70 | } |
71 | 71 | |
@@ -104,15 +104,15 @@ discard block |
||
104 | 104 | |
105 | 105 | if ($fieldset instanceOf TextSearchFormFieldset && $element->getName() == $fieldset->getButtonElement()) { |
106 | 106 | $content.='<div class="input-group col-md-' . $cols . '">' |
107 | - . $formElement($element) |
|
108 | - . '<div class="input-group-btn search-form-buttons" style="width: 0px;">' |
|
109 | - . $this->renderElements($buttonsFieldset, true) . '</div>' |
|
110 | - . '</div>'; |
|
107 | + . $formElement($element) |
|
108 | + . '<div class="input-group-btn search-form-buttons" style="width: 0px;">' |
|
109 | + . $this->renderElements($buttonsFieldset, true) . '</div>' |
|
110 | + . '</div>'; |
|
111 | 111 | $buttonsRendered = true; |
112 | 112 | } else { |
113 | 113 | $content .= '<div class="input-group col-md-' . $cols . '">' |
114 | - . $formElement($element) |
|
115 | - . '</div>'; |
|
114 | + . $formElement($element) |
|
115 | + . '</div>'; |
|
116 | 116 | } |
117 | 117 | |
118 | 118 | $i += 1; |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | $buttonsSpan = $buttonsFieldset->getSpan(); |
124 | 124 | } |
125 | 125 | $content .= '<div class="input-group search-form-buttons col-md-' . $buttonsSpan . ' text-right">' |
126 | - . '<div class="btn-group">' . $this->renderElements($buttonsFieldset, true) .'</div></div>'; |
|
126 | + . '<div class="btn-group">' . $this->renderElements($buttonsFieldset, true) .'</div></div>'; |
|
127 | 127 | } |
128 | 128 | |
129 | 129 | return $content; |