@@ -116,7 +116,7 @@ |
||
116 | 116 | /* @var $basepath \Zend\View\Helper\BasePath */ |
117 | 117 | $renderer = $this->getView(); |
118 | 118 | $basepath = $renderer->plugin('basepath'); |
119 | - $createFileDisplay = function ($file) use ($template, $basepath) { |
|
119 | + $createFileDisplay = function($file) use ($template, $basepath) { |
|
120 | 120 | /* @var $file \Core\Entity\FileInterface */ |
121 | 121 | $uri = $basepath($file->getUri()); |
122 | 122 | $name = $file->getName(); |
@@ -1,11 +1,11 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
7 | - * @license MIT |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
7 | + * @license MIT |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | /** */ |
11 | 11 | namespace Core\Form\View\Helper; |
@@ -50,10 +50,10 @@ discard block |
||
50 | 50 | $renderer = $this->getView(); |
51 | 51 | $basepath = $renderer->plugin('basepath'); |
52 | 52 | $renderer->headscript() |
53 | - ->appendFile($basepath('js/jquery-file-upload/vendor/jquery.ui.widget.js')) |
|
54 | - ->appendFile($basepath('js/jquery-file-upload/jquery.iframe-transport.js')) |
|
55 | - ->appendFile($basepath('js/jquery-file-upload/jquery.fileupload.js')) |
|
56 | - ->appendFile($basepath($this->scriptFile)); |
|
53 | + ->appendFile($basepath('js/jquery-file-upload/vendor/jquery.ui.widget.js')) |
|
54 | + ->appendFile($basepath('js/jquery-file-upload/jquery.iframe-transport.js')) |
|
55 | + ->appendFile($basepath('js/jquery-file-upload/jquery.fileupload.js')) |
|
56 | + ->appendFile($basepath($this->scriptFile)); |
|
57 | 57 | |
58 | 58 | $markup = $this->renderMarkup($element); |
59 | 59 | // $fileInput = parent::render($element); |
@@ -126,11 +126,11 @@ discard block |
||
126 | 126 | |
127 | 127 | return str_replace( |
128 | 128 | array('#abort', |
129 | - '__file-uri__', |
|
130 | - '__file-name__', |
|
131 | - '__file-size__', |
|
132 | - 'fu-working', |
|
133 | - 'fa-file-o' |
|
129 | + '__file-uri__', |
|
130 | + '__file-name__', |
|
131 | + '__file-size__', |
|
132 | + 'fu-working', |
|
133 | + 'fa-file-o' |
|
134 | 134 | ), |
135 | 135 | array("$uri?do=delete", $uri, $name, $size, '', $icon), |
136 | 136 | $template |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | '<div class="fu-nonempty-notice"' . ('' == trim($preview) ? ' style="display:none;"' : '') . '>' |
159 | 159 | . $notice . '</div>'; |
160 | 160 | $emptynotice = '<div class="fu-empty-notice"' |
161 | - . ('' == trim($preview) ? '' : ' style="display: none;"') . '> |
|
161 | + . ('' == trim($preview) ? '' : ' style="display: none;"') . '> |
|
162 | 162 | <div class="pull-left"> |
163 | 163 | <span class="yk-icon fa-files-o fa-5x"></span> |
164 | 164 | </div>' . $notice . ' |
@@ -31,7 +31,7 @@ |
||
31 | 31 | |
32 | 32 | if ($file) { |
33 | 33 | if (0 === strpos($file->getType(), 'image/')) { |
34 | - $basepath = $this->getView()->plugin('basepath'); |
|
34 | + $basepath = $this->getView()->plugin('basepath'); |
|
35 | 35 | $preview = '<img src="' . $basepath($file->getUri()) . '" class="img-polaroid" />'; |
36 | 36 | } else { |
37 | 37 | $preview = '<span>' . $file->getName() . '(' . $file->getPrettySize() . ')</span>'; |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
7 | - * @license MIT |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
7 | + * @license MIT |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | /** SettingsEntityResolverFactory.php */ |
11 | 11 | namespace Settings\Repository; |
@@ -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 - 2016 Cross Solution (http://cross-solution.de) |
|
7 | - * @license MIT |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @copyright (c) 2013 - 2016 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 | } |
@@ -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 - 2016 Cross Solution (http://cross-solution.de) |
|
7 | - * @license MIT |
|
8 | - * @author [email protected] |
|
9 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @copyright (c) 2013 - 2016 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 - 2016 Cross Solution (http://cross-solution.de) |
|
7 | - * @license MIT |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @copyright (c) 2013 - 2016 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 |
@@ -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 - 2016 Cross Solution (http://cross-solution.de) |
|
7 | - * @license MIT |
|
8 | - * @author [email protected] |
|
9 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
7 | + * @license MIT |
|
8 | + * @author [email protected] |
|
9 | + */ |
|
10 | 10 | |
11 | 11 | namespace Organizations\Form; |
12 | 12 |
@@ -8,7 +8,7 @@ |
||
8 | 8 | |
9 | 9 | class StringListener implements ListenerAggregateInterface |
10 | 10 | { |
11 | - protected $listeners = array(); |
|
11 | + protected $listeners = array(); |
|
12 | 12 | |
13 | 13 | /** |
14 | 14 | * Attach to an event manager |