@@ -1,11 +1,11 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | - * @license MIT |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | + * @license MIT |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | /** */ |
11 | 11 | namespace Core\Form\View\Helper; |
@@ -48,8 +48,8 @@ discard block |
||
48 | 48 | } |
49 | 49 | $linktext = $translator->translate($linktext); |
50 | 50 | $link = '<a data-toggle="modal" href="' . $href . '" ' |
51 | - . 'data-target="#modal-' . $element->getAttribute('id') . '">' |
|
52 | - . $linktext . '</a>'; |
|
51 | + . 'data-target="#modal-' . $element->getAttribute('id') . '">' |
|
52 | + . $linktext . '</a>'; |
|
53 | 53 | |
54 | 54 | $label = sprintf($label, $link); |
55 | 55 | } |
@@ -44,7 +44,7 @@ |
||
44 | 44 | $href = $this->getView()->url($route, $params, true); |
45 | 45 | } else { |
46 | 46 | /*@todo add more options like providing url... */ |
47 | - $href=""; |
|
47 | + $href = ""; |
|
48 | 48 | } |
49 | 49 | $linktext = $translator->translate($linktext); |
50 | 50 | $link = '<a data-toggle="modal" href="' . $href . '" ' |
@@ -1,11 +1,11 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | - * @license MIT |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | + * @license MIT |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | namespace Core\Form\View\Helper; |
11 | 11 | |
@@ -52,10 +52,10 @@ discard block |
||
52 | 52 | |
53 | 53 | if ($element instanceof ViewPartialProviderInterface && !$ignoreViewPartial) { |
54 | 54 | return $this->getView()->partial($element->getViewPartial(), |
55 | - array( |
|
56 | - 'element' => $element, |
|
57 | - 'labelWitdh' => $labelWidth, |
|
58 | - 'label_attributes' => $labelAttributes |
|
55 | + array( |
|
56 | + 'element' => $element, |
|
57 | + 'labelWitdh' => $labelWidth, |
|
58 | + 'label_attributes' => $labelAttributes |
|
59 | 59 | ) |
60 | 60 | ); |
61 | 61 | } |
@@ -107,10 +107,10 @@ discard block |
||
107 | 107 | $desc = $element->getOption('description', false); |
108 | 108 | if ($desc && $this->layout != Form::LAYOUT_BARE) { |
109 | 109 | if (null !== ($translator = $this->getTranslator())) { |
110 | - $desc = $translator->translate( |
|
111 | - $desc, |
|
112 | - $this->getTranslatorTextDomain() |
|
113 | - ); |
|
110 | + $desc = $translator->translate( |
|
111 | + $desc, |
|
112 | + $this->getTranslatorTextDomain() |
|
113 | + ); |
|
114 | 114 | } |
115 | 115 | $elementString .= sprintf( |
116 | 116 | '<div id="%s-desc" class="cam-description alert alert-info">%s</div>', |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | if (!$element->hasAttribute('id')) { |
86 | 86 | $elementId = preg_replace( |
87 | 87 | array('~[^A-Za-z0-9_-]~', '~--+~', '~^-|-$~'), |
88 | - array('-' , '-', ''), |
|
88 | + array('-', '-', ''), |
|
89 | 89 | $element->getName() |
90 | 90 | ); |
91 | 91 | $element->setAttribute('id', $elementId); |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | && $element->getAttribute('type') != 'checkbox' |
101 | 101 | && !$element instanceof Button |
102 | 102 | ) { |
103 | - $element->setAttribute('class', $element->getAttribute('class').' form-control '); |
|
103 | + $element->setAttribute('class', $element->getAttribute('class') . ' form-control '); |
|
104 | 104 | } |
105 | 105 | |
106 | 106 | $elementString = $elementHelper->render($element); |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | } |
132 | 132 | |
133 | 133 | // moved label here so we can change it in the ElementViewHelper |
134 | - $label = $element->getLabel(); |
|
134 | + $label = $element->getLabel(); |
|
135 | 135 | if (isset($label) && '' !== $label && !$element instanceof \Zend\Form\Element\Button) { |
136 | 136 | // Translate the label |
137 | 137 | if (null !== ($translator = $this->getTranslator())) { |
@@ -36,9 +36,9 @@ |
||
36 | 36 | $formContent = ''; |
37 | 37 | foreach ($form as $element) { |
38 | 38 | if ($element instanceof FieldsetInterface) { |
39 | - $formContent.= $this->getView()->formCollection($element); |
|
39 | + $formContent .= $this->getView()->formCollection($element); |
|
40 | 40 | } else { |
41 | - $formContent.= $this->getView()->formRowSimple($element); |
|
41 | + $formContent .= $this->getView()->formRowSimple($element); |
|
42 | 42 | } |
43 | 43 | } |
44 | 44 |
@@ -1,12 +1,12 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | - * @license MIT |
|
8 | - * @author [email protected] |
|
9 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | + * @license MIT |
|
8 | + * @author [email protected] |
|
9 | + */ |
|
10 | 10 | |
11 | 11 | namespace Organizations\Form; |
12 | 12 |
@@ -131,8 +131,8 @@ discard block |
||
131 | 131 | public function renderForm(SummaryFormInterface $form, $layout = Form::LAYOUT_HORIZONTAL, $parameter = array()) |
132 | 132 | { |
133 | 133 | /* @var $form SummaryFormInterface|\Core\Form\SummaryForm */ |
134 | - $renderer = $this->getView(); /* @var $renderer \Zend\View\Renderer\PhpRenderer */ |
|
135 | - $formHelper = $renderer->plugin('form'); /* @var $formHelper \Core\Form\View\Helper\Form */ |
|
134 | + $renderer = $this->getView(); /* @var $renderer \Zend\View\Renderer\PhpRenderer */ |
|
135 | + $formHelper = $renderer->plugin('form'); /* @var $formHelper \Core\Form\View\Helper\Form */ |
|
136 | 136 | $fieldset = $form->getBaseFieldset(); |
137 | 137 | $resetPartial = false; |
138 | 138 | |
@@ -189,10 +189,10 @@ discard block |
||
189 | 189 | } |
190 | 190 | |
191 | 191 | if ($element instanceof ViewPartialProviderInterface) { |
192 | - $renderer = $this->getView(); /* @var $renderer \Zend\View\Renderer\PhpRenderer */ |
|
192 | + $renderer = $this->getView(); /* @var $renderer \Zend\View\Renderer\PhpRenderer */ |
|
193 | 193 | $origPartial = $element->getViewPartial(); |
194 | 194 | $partial = "$origPartial.view"; |
195 | - $partialParams = array( |
|
195 | + $partialParams = array( |
|
196 | 196 | 'element' => $element |
197 | 197 | ); |
198 | 198 | if (!$renderer->resolver($partial)) { |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | - * @license MIT |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | + * @license MIT |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | /** SettingsEntityResolverFactory.php */ |
11 | 11 | namespace Settings\Repository; |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | 3 | * |
4 | - */ |
|
4 | + */ |
|
5 | 5 | |
6 | 6 | namespace Core\Form\View\Helper; |
7 | 7 |
@@ -51,7 +51,7 @@ |
||
51 | 51 | $checkedBoole = ($value == 1 || $value == 'on'); |
52 | 52 | |
53 | 53 | //$checked = $checkedBoole?'checked="checked"':''; |
54 | - $checkedClass = $checkedBoole?'active"':''; |
|
54 | + $checkedClass = $checkedBoole ? 'active"' : ''; |
|
55 | 55 | |
56 | 56 | $buttonContent = '<div class="btn-group" data-toggle="buttons">' . PHP_EOL |
57 | 57 | . '<span class="btn btn-default ' . $checkedClass . '">' . PHP_EOL |
@@ -1,11 +1,11 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | - * @license MIT |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | + * @license MIT |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | /** Core forms */ |
11 | 11 | namespace Core\Form; |
@@ -45,6 +45,6 @@ discard block |
||
45 | 45 | */ |
46 | 46 | public function getViewPartial() |
47 | 47 | { |
48 | - return $this->partial; |
|
48 | + return $this->partial; |
|
49 | 49 | } |
50 | 50 | } |
@@ -1,12 +1,12 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | - * @license MIT |
|
8 | - * @author [email protected] |
|
9 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | + * @license MIT |
|
8 | + * @author [email protected] |
|
9 | + */ |
|
10 | 10 | |
11 | 11 | |
12 | 12 | namespace Core\Listener; |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | */ |
57 | 57 | public function postDispatch(MvcEvent $e) |
58 | 58 | { |
59 | - // $view = $this->getServiceManager()->get('view'); |
|
59 | + // $view = $this->getServiceManager()->get('view'); |
|
60 | 60 | |
61 | 61 | } |
62 | 62 | } |
@@ -94,7 +94,7 @@ |
||
94 | 94 | |
95 | 95 | $view = $e->getApplication()->getServiceManager()->get('ViewManager')->getView(); |
96 | 96 | $view->addRenderingStrategy(array($strategy, 'selectRenderer'), 10); |
97 | - $view->addResponseStrategy(array($strategy, 'injectResponse'), 10); |
|
97 | + $view->addResponseStrategy(array($strategy, 'injectResponse'), 10); |
|
98 | 98 | |
99 | 99 | } |
100 | 100 | } |
@@ -42,12 +42,12 @@ |
||
42 | 42 | |
43 | 43 | public function attachShared(SharedEventManagerInterface $events) |
44 | 44 | { |
45 | - $events->attach('*', NotificationEvent::EVENT_NOTIFICATION_ADD, array($this,'add'), 1); |
|
46 | - $events->attach('Zend\Mvc\Application', MvcEvent::EVENT_DISPATCH, array($this,'renderJSON'), -240); |
|
47 | - $events->attach('Zend\Mvc\Application', MvcEvent::EVENT_DISPATCH, array($this,'renderHTML'), -250); |
|
45 | + $events->attach('*', NotificationEvent::EVENT_NOTIFICATION_ADD, array($this, 'add'), 1); |
|
46 | + $events->attach('Zend\Mvc\Application', MvcEvent::EVENT_DISPATCH, array($this, 'renderJSON'), -240); |
|
47 | + $events->attach('Zend\Mvc\Application', MvcEvent::EVENT_DISPATCH, array($this, 'renderHTML'), -250); |
|
48 | 48 | // Sometimes the Dispatch-Event is not reached, for instance with a route-direct |
49 | 49 | // but also for Events, that are happening after the Dispatch |
50 | - $events->attach('Zend\Mvc\Application', MvcEvent::EVENT_FINISH, array($this,'renderHTML'), -250); |
|
50 | + $events->attach('Zend\Mvc\Application', MvcEvent::EVENT_FINISH, array($this, 'renderHTML'), -250); |
|
51 | 51 | return $this; |
52 | 52 | } |
53 | 53 |
@@ -1,12 +1,12 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | - * @license MIT |
|
8 | - * @author [email protected] |
|
9 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | + * @license MIT |
|
8 | + * @author [email protected] |
|
9 | + */ |
|
10 | 10 | |
11 | 11 | namespace Organizations\Form; |
12 | 12 |