@@ -80,12 +80,12 @@ discard block |
||
80 | 80 | $collection[] = $this->newEntry; |
81 | 81 | $form = $this->buildForm($key, $this->newEntry); |
82 | 82 | $eventManager = $form->getEventManager(); |
83 | - $eventManager->attach(CoreForm::EVENT_IS_VALID, function (Event $event) use ($collection) { |
|
83 | + $eventManager->attach(CoreForm::EVENT_IS_VALID, function (Event $event) use ($collection) { |
|
84 | 84 | if (!$event->getParam('isValid')) { |
85 | 85 | $collection->removeElement($this->newEntry); |
86 | 86 | } |
87 | 87 | }); |
88 | - $eventManager->attach(CoreForm::EVENT_PREPARE, function (Event $event) use ($collection) { |
|
88 | + $eventManager->attach(CoreForm::EVENT_PREPARE, function (Event $event) use ($collection) { |
|
89 | 89 | $this->setupForm($event->getTarget(), $collection->indexOf($this->newEntry)); |
90 | 90 | }); |
91 | 91 | |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | } |
118 | 118 | } |
119 | 119 | |
120 | - /** |
|
120 | + /** |
|
121 | 121 | * @see \Core\Form\Element\ViewHelperProviderInterface::getViewHelper() |
122 | 122 | */ |
123 | 123 | public function getViewHelper() |
@@ -221,7 +221,7 @@ discard block |
||
221 | 221 | */ |
222 | 222 | protected function setupForm(CoreForm $form, $key) |
223 | 223 | { |
224 | - $form->setAttribute('action', sprintf('?form=%s', $this->formatAction($key))) |
|
224 | + $form->setAttribute('action', sprintf('?form=%s', $this->formatAction($key))) |
|
225 | 225 | ->setAttribute('data-entry-key', $key) |
226 | 226 | ->setOption('control_buttons', [[ |
227 | 227 | 'class' => 'btn-danger form-collection-container-remove-button', |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | $translator = $this->getTranslator(); |
61 | 61 | $formContainerHelper = $view->formContainer(); |
62 | 62 | $formsMarkup = ''; |
63 | - $formTemplateWrapper = '<div class="form-collection-container-form"> |
|
63 | + $formTemplateWrapper = '<div class="form-collection-container-form"> |
|
64 | 64 | '. ($this->displayRemoveButton ? '<button type="button" class="btn btn-sm btn-danger pull-right form-collection-container-remove-button">' . $translator->translate('Remove') . '</button>' : '') . ' |
65 | 65 | %s |
66 | 66 | </div>'; |
@@ -71,16 +71,16 @@ discard block |
||
71 | 71 | } |
72 | 72 | |
73 | 73 | $templateForm = $container->getTemplateForm(); |
74 | - $templateMarkup = sprintf( |
|
74 | + $templateMarkup = sprintf( |
|
75 | 75 | $view->formCollection()->getTemplateWrapper(), |
76 | 76 | $view->escapeHtmlAttr(sprintf($formTemplateWrapper, $formContainerHelper->renderElement($templateForm, $layout, $parameter))) |
77 | 77 | ); |
78 | 78 | |
79 | - return sprintf('<div class="form-collection-container" data-new-entry-key="%s" data-remove-action="%s" data-remove-question="%s"> |
|
79 | + return sprintf('<div class="form-collection-container" data-new-entry-key="%s" data-remove-action="%s" data-remove-question="%s"> |
|
80 | 80 | <h3>%s</h3> |
81 | 81 | %s%s%s |
82 | 82 | </div>', |
83 | - CollectionContainer::NEW_ENTRY, |
|
83 | + CollectionContainer::NEW_ENTRY, |
|
84 | 84 | $container->formatAction('remove'), |
85 | 85 | $translator->translate('Really remove?'), |
86 | 86 | $container->getLabel(), |
@@ -90,14 +90,14 @@ discard block |
||
90 | 90 | ); |
91 | 91 | } |
92 | 92 | /** |
93 | - * @param boolean $displayRemoveButton |
|
94 | - * @return FormCollectionContainer |
|
93 | + * @param boolean $displayRemoveButton |
|
94 | + * @return FormCollectionContainer |
|
95 | 95 | * @since 0.26 |
96 | - */ |
|
97 | - public function setDisplayRemoveButton($displayRemoveButton) |
|
98 | - { |
|
99 | - $this->displayRemoveButton = (bool)$displayRemoveButton; |
|
96 | + */ |
|
97 | + public function setDisplayRemoveButton($displayRemoveButton) |
|
98 | + { |
|
99 | + $this->displayRemoveButton = (bool)$displayRemoveButton; |
|
100 | 100 | |
101 | - return $this; |
|
102 | - } |
|
101 | + return $this; |
|
102 | + } |
|
103 | 103 | } |
@@ -108,10 +108,10 @@ |
||
108 | 108 | } |
109 | 109 | |
110 | 110 | /** |
111 | - * @return string |
|
112 | - */ |
|
113 | - public function getDefaultLanguage() |
|
114 | - { |
|
115 | - return $this->defaultLanguage; |
|
116 | - } |
|
111 | + * @return string |
|
112 | + */ |
|
113 | + public function getDefaultLanguage() |
|
114 | + { |
|
115 | + return $this->defaultLanguage; |
|
116 | + } |
|
117 | 117 | } |
@@ -297,9 +297,9 @@ |
||
297 | 297 | } |
298 | 298 | |
299 | 299 | /** |
300 | - * @see \Core\Entity\FileInterface::getUri() |
|
301 | - * @since 0.27 |
|
302 | - */ |
|
303 | - public function getUri() |
|
304 | - {} |
|
300 | + * @see \Core\Entity\FileInterface::getUri() |
|
301 | + * @since 0.27 |
|
302 | + */ |
|
303 | + public function getUri() |
|
304 | + {} |
|
305 | 305 | } |
306 | 306 | \ No newline at end of file |
@@ -91,7 +91,7 @@ |
||
91 | 91 | * and which are not in draft mode |
92 | 92 | */ |
93 | 93 | $queryBuilder->field('permissions.view')->equals($userID) |
94 | - ->field('isDraft')->equals(false); |
|
94 | + ->field('isDraft')->equals(false); |
|
95 | 95 | |
96 | 96 | if (!isset($value['sort'])) { |
97 | 97 | $value['sort'] = '-date'; |
@@ -123,10 +123,10 @@ |
||
123 | 123 | * @param $options |
124 | 124 | */ |
125 | 125 | public function setOptions($options){ |
126 | - foreach($options as $key=>$val) { |
|
126 | + foreach($options as $key=>$val) { |
|
127 | 127 | if (array_key_exists($this->options,$key)) { |
128 | 128 | $this->options[$key]=$val; |
129 | 129 | } |
130 | - } |
|
130 | + } |
|
131 | 131 | } |
132 | 132 | } |
@@ -102,10 +102,10 @@ |
||
102 | 102 | } |
103 | 103 | }else{ |
104 | 104 | $result = sprintf('<a href="%s" rel="%s" %s>%s</a>', |
105 | - $url, |
|
106 | - $options['rel'], |
|
107 | - $options['target']?"target=" . $options['target']:"", |
|
108 | - strip_tags($jobEntity->getTitle())); |
|
105 | + $url, |
|
106 | + $options['rel'], |
|
107 | + $options['target']?"target=" . $options['target']:"", |
|
108 | + strip_tags($jobEntity->getTitle())); |
|
109 | 109 | } |
110 | 110 | |
111 | 111 | return $result; |
@@ -90,24 +90,24 @@ |
||
90 | 90 | $tabId = $containerId . '-' . strtolower($tabElement->getName()); |
91 | 91 | $tabsNav .= '<li><a data-toggle="tab" href="#' . $tabId . '">' . $translate($tabElement->getLabel()) . '</a></li>'; |
92 | 92 | $tabsContent .= '<div class="tab-pane" id="' . $tabId . '">' |
93 | - . $formContainer($tabElement, $layout, $parameter) |
|
94 | - . '</div>'; |
|
93 | + . $formContainer($tabElement, $layout, $parameter) |
|
94 | + . '</div>'; |
|
95 | 95 | } |
96 | 96 | |
97 | 97 | $content .= '<style type="text/css">.tab-content > div > div:first-child { margin-top: 10px; }</style><div class="wizard-container" id="' . $containerId . '">' |
98 | - . '<ul>' . $tabsNav . '</ul>' |
|
99 | - . '<div class="tab-content">' . $tabsContent . '</div>'; |
|
98 | + . '<ul>' . $tabsNav . '</ul>' |
|
99 | + . '<div class="tab-content">' . $tabsContent . '</div>'; |
|
100 | 100 | if ($containerParams['pager']) { |
101 | 101 | $content .='<ul class="pager wizard">' |
102 | - . '<li class="previous"><a href="javascript:;">← ' . $translate('previous') . '</a></li>' |
|
103 | - . '<li class="next"><a href="javascript:;">' . $translate('Next') . ' →</a></li>' |
|
104 | - . '<li class="finish' . ($containerParams['finish_enabled'] ? '' : ' disabled') . '">' |
|
105 | - . (false !== $containerParams['finish_label'] |
|
102 | + . '<li class="previous"><a href="javascript:;">← ' . $translate('previous') . '</a></li>' |
|
103 | + . '<li class="next"><a href="javascript:;">' . $translate('Next') . ' →</a></li>' |
|
104 | + . '<li class="finish' . ($containerParams['finish_enabled'] ? '' : ' disabled') . '">' |
|
105 | + . (false !== $containerParams['finish_label'] |
|
106 | 106 | ? '<a class="pull-right" href="' . $containerParams['finish_href'] . '">' |
107 | - . $translate($containerParams['finish_label']) . ' •</a>' |
|
107 | + . $translate($containerParams['finish_label']) . ' •</a>' |
|
108 | 108 | : '' |
109 | 109 | ) |
110 | - . '</li></ul>'; |
|
110 | + . '</li></ul>'; |
|
111 | 111 | } |
112 | 112 | $content .= '</div>'; |
113 | 113 |
@@ -81,7 +81,7 @@ |
||
81 | 81 | |
82 | 82 | $adapter->setParams($params); |
83 | 83 | $paginator->setCurrentPageNumber($params->get('page', 1)) |
84 | - ->setItemCountPerPage($params->get('count', 10)); |
|
84 | + ->setItemCountPerPage($params->get('count', 10)); |
|
85 | 85 | |
86 | 86 | return $paginator; |
87 | 87 | } |