Completed
Branch develop (7585df)
by Carsten
11:01
created
module/Core/src/Core/Form/View/Helper/FormFileUpload.php 2 patches
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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 . '
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
module/Core/src/Core/Form/View/Helper/FormImageUpload.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
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>';
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
module/Core/src/Core/Form/View/Helper/FormInfoCheckbox.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
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 . '" '
Please login to merge, or discard this patch.
module/Core/src/Core/Form/View/Helper/FormRow.php 2 patches
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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>',
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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())) {
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
                     }
174 174
                     $element->setLabelAttributes($labelAttributes);
175 175
 
176
-                    $label = $labelHelper($element,$label);
176
+                    $label = $labelHelper($element, $label);
177 177
                     if ($this->shouldWrap) {
178 178
                         $spanWidth = 12 - $labelWidth;
179 179
                         $elementString = sprintf(
Please login to merge, or discard this patch.
module/Core/src/Core/Form/View/Helper/FormSimple.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,9 +36,9 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
module/Core/src/Core/Form/View/Helper/SummaryForm.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -131,8 +131,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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)) {
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
module/Core/src/Core/Form/View/Helper/ToggleButton.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3 3
 *
4
- */
4
+     */
5 5
 
6 6
 namespace Core\Form\View\Helper;
7 7
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
module/Core/src/Core/Form/ViewPartialProviderAbstract.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
45 45
      */
46 46
     public function getViewPartial()
47 47
     {
48
-         return $this->partial;
48
+            return $this->partial;
49 49
     }
50 50
 }
Please login to merge, or discard this patch.
module/Core/src/Core/Listener/DefaultListener.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.