@@ -14,10 +14,10 @@ |
||
14 | 14 | protected $validator; |
15 | 15 | |
16 | 16 | /** |
17 | - * Get a validator if none has been set. |
|
18 | - * https://github.com/posabsolute/jQuery-Validation-Engine/issues/265 |
|
19 | - * @return ValidatorInterface |
|
20 | - */ |
|
17 | + * Get a validator if none has been set. |
|
18 | + * https://github.com/posabsolute/jQuery-Validation-Engine/issues/265 |
|
19 | + * @return ValidatorInterface |
|
20 | + */ |
|
21 | 21 | public function getValidator() |
22 | 22 | { |
23 | 23 | if (null === $this->validator) { |
@@ -84,7 +84,7 @@ |
||
84 | 84 | { |
85 | 85 | /* @var $serviceLocator \Zend\Form\FormElementManager */ |
86 | 86 | $service = $serviceLocator->getServiceLocator(); |
87 | - $options=null; |
|
87 | + $options = null; |
|
88 | 88 | if ($this->options) { |
89 | 89 | $options = $service->get($this->options); |
90 | 90 | } |
@@ -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; |
@@ -49,7 +49,7 @@ |
||
49 | 49 | $properties = $refl->getProperties(); |
50 | 50 | |
51 | 51 | foreach ($properties as $property) { |
52 | - $name = $property->getName(); |
|
52 | + $name = $property->getName(); |
|
53 | 53 | if ('_' == $name{0}) { |
54 | 54 | continue; |
55 | 55 | } |
@@ -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,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 view helpers */ |
11 | 11 | namespace Core\Form\View\Helper; |
@@ -71,12 +71,12 @@ discard block |
||
71 | 71 | $basepath = $renderer->plugin('basepath'); |
72 | 72 | |
73 | 73 | $headscript->appendFile($basepath('Core/js/core.spinnerbutton.js')) |
74 | - ->appendFile($basepath('js/select2.min.js')) |
|
75 | - ->appendFile($basepath('Core/js/core.forms.js')); |
|
74 | + ->appendFile($basepath('js/select2.min.js')) |
|
75 | + ->appendFile($basepath('Core/js/core.forms.js')); |
|
76 | 76 | |
77 | 77 | /* @noinspection PhpParamsInspection */ |
78 | 78 | $renderer->headLink()->appendStylesheet($basepath('css/select2.css')) |
79 | - ->appendStylesheet($basepath('css/select2-bootstrap.css')); |
|
79 | + ->appendStylesheet($basepath('css/select2-bootstrap.css')); |
|
80 | 80 | |
81 | 81 | if ($scripts = $form->getOption('headscript')) { |
82 | 82 | if (!is_array($scripts)) { |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | 'id', |
99 | 99 | preg_replace( |
100 | 100 | array('~[^A-Za-z0-9_-]~', '~--+~', '~^-|-$~'), |
101 | - array('-' , '-' , '' ), |
|
101 | + array('-', '-', ''), |
|
102 | 102 | $formId |
103 | 103 | ) |
104 | 104 | ); |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | if (!$element->hasAttribute('id')) { |
119 | 119 | $elementId = preg_replace( |
120 | 120 | array('~[^A-Za-z0-9_-]~', '~--+~', '~^-|-$~'), |
121 | - array('-' , '-', ''), |
|
121 | + array('-', '-', ''), |
|
122 | 122 | $form->getName() . '-' . $element->getName() |
123 | 123 | ); |
124 | 124 | $element->setAttribute('id', $elementId); |
@@ -148,9 +148,9 @@ discard block |
||
148 | 148 | } else { |
149 | 149 | $formContent .= $renderer->formCollection($element, true, $layout); |
150 | 150 | } elseif (false !== $element->getOption('use_formrow_helper')) { |
151 | - $formContent.= $renderer->formRow($element, null, null, $layout); |
|
151 | + $formContent .= $renderer->formRow($element, null, null, $layout); |
|
152 | 152 | } else { |
153 | - $formContent.= $renderer->formElement($element); |
|
153 | + $formContent .= $renderer->formElement($element); |
|
154 | 154 | } |
155 | 155 | } |
156 | 156 |
@@ -136,10 +136,11 @@ |
||
136 | 136 | $parameterPartial |
137 | 137 | ); |
138 | 138 | |
139 | - } elseif ($element instanceof FieldsetInterface) |
|
140 | - if ($element instanceof ViewHelperProviderInterface) { |
|
139 | + } elseif ($element instanceof FieldsetInterface) { |
|
140 | + if ($element instanceof ViewHelperProviderInterface) { |
|
141 | 141 | /* @var $element ViewHelperProviderInterface */ |
142 | 142 | $helper = $element->getViewHelper(); |
143 | + } |
|
143 | 144 | if (is_string($helper)) { |
144 | 145 | $helper = $renderer->plugin($helper); |
145 | 146 | } |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | if (!$elementId) { |
70 | 70 | $elementId = preg_replace( |
71 | 71 | array('~[^A-Za-z0-9_-]~', '~--+~', '~^-|-$~'), |
72 | - array('-' , '-' , '' ), |
|
72 | + array('-', '-', ''), |
|
73 | 73 | $element->getName() |
74 | 74 | ); |
75 | 75 | $element->setAttribute('id', $elementId); |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | if (!$elementOrFieldsetId) { |
100 | 100 | $elementOrFieldsetId = preg_replace( |
101 | 101 | array('~[^A-Za-z0-9_-]~', '~--+~', '~^-|-$~'), |
102 | - array('-' , '-' , '' ), |
|
102 | + array('-', '-', ''), |
|
103 | 103 | $elementOrFieldset->getName() |
104 | 104 | ); |
105 | 105 | $elementOrFieldset->setAttribute('id', $elementOrFieldsetId); |
@@ -83,9 +83,9 @@ |
||
83 | 83 | } elseif ($element instanceof SummaryForm) { |
84 | 84 | $content .= $this->getView()->summaryForm($element); |
85 | 85 | } elseif ($element instanceof Container) { |
86 | - $content.= $this->render($element, $layout, $parameter); |
|
86 | + $content .= $this->render($element, $layout, $parameter); |
|
87 | 87 | } else { |
88 | - $content.= $this->getView()->form($element, $layout, $parameter); |
|
88 | + $content .= $this->getView()->form($element, $layout, $parameter); |
|
89 | 89 | } |
90 | 90 | } |
91 | 91 |
@@ -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; |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | |
23 | 23 | public function render(ElementInterface $element) |
24 | 24 | { |
25 | - $name = $element->getName(); |
|
25 | + $name = $element->getName(); |
|
26 | 26 | if (empty($name) && $name !== 0) { |
27 | 27 | throw new \DomainException( |
28 | 28 | sprintf( |
@@ -103,15 +103,15 @@ discard block |
||
103 | 103 | } |
104 | 104 | if (is_string($content)) { |
105 | 105 | // content is should be in an ordinary textarea |
106 | - $escapeHtml = $this->getEscapeHtmlHelper(); |
|
106 | + $escapeHtml = $this->getEscapeHtmlHelper(); |
|
107 | 107 | |
108 | - $class = array_key_exists('class', $attributes)?$attributes['class']:''; |
|
109 | - $class .= (empty($class)?:' ') . ' tinymce_' . $this->getTheme(); |
|
108 | + $class = array_key_exists('class', $attributes) ? $attributes['class'] : ''; |
|
109 | + $class .= (empty($class) ?: ' ') . ' tinymce_' . $this->getTheme(); |
|
110 | 110 | $attributes['class'] = $class; |
111 | 111 | $placeHolder = ''; |
112 | 112 | $elementOptions = $element->getOptions(); |
113 | 113 | if (array_key_exists('placeholder', $elementOptions) && !empty($elementOptions['placeholder'])) { |
114 | - $placeHolder = '<div id="placeholder-' . $name . '" style="border: 0 none; position: relative; top: 0ex; left: 10px; color: #aaa; height: 0px; overflow: visible;' . (empty($content)?'':'display:none;') . '">' . $this->translator->translate($elementOptions['placeholder']) . '</div>'; |
|
114 | + $placeHolder = '<div id="placeholder-' . $name . '" style="border: 0 none; position: relative; top: 0ex; left: 10px; color: #aaa; height: 0px; overflow: visible;' . (empty($content) ? '' : 'display:none;') . '">' . $this->translator->translate($elementOptions['placeholder']) . '</div>'; |
|
115 | 115 | } |
116 | 116 | return |
117 | 117 | $placeHolder |
@@ -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 |
@@ -1,7 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - |
|
4 | - */ |
|
3 | + */ |
|
5 | 4 | |
6 | 5 | namespace Core\Form\View\Helper; |
7 | 6 |
@@ -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; |
@@ -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 . ' |
@@ -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(); |