Passed
Pull Request — master (#580)
by ANTHONIUS
10:05
created
module/Core/src/Form/View/Helper/FormEditor.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -134,8 +134,8 @@
 block discarded – undo
134 134
             $elementOptions = $element->getOptions();
135 135
             if (array_key_exists('placeholder', $elementOptions) && !empty($elementOptions['placeholder'])) {
136 136
                 $placeHolder = '<div id="placeholder-' . $name . '" style="border: 0 none; position: relative; top: 0ex; left: 10px; color: #aaa; height: 0px; overflow: visible;' .
137
-                               (empty($content)?'':'display:none;') .
138
-                               '">' . $this->translator->translate($elementOptions['placeholder']) . '</div>';
137
+                                (empty($content)?'':'display:none;') .
138
+                                '">' . $this->translator->translate($elementOptions['placeholder']) . '</div>';
139 139
             }
140 140
             return
141 141
                 $placeHolder
Please login to merge, or discard this patch.
module/Core/src/Form/View/Helper/FormInfoCheckbox.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,8 +48,8 @@
 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.
module/Core/src/Form/View/Helper/SearchForm.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -67,8 +67,8 @@  discard block
 block discarded – undo
67 67
         $content = $this->renderElements($form, $colMap, $buttonsSpan);
68 68
 
69 69
         return $this->openTag($form)
70
-             . '<div class="row" style="padding: 0 15px;">'
71
-             . $content . '</div>' . $this->closeTag();
70
+                . '<div class="row" style="padding: 0 15px;">'
71
+                . $content . '</div>' . $this->closeTag();
72 72
     }
73 73
 
74 74
     public function renderButtons($buttons)
@@ -81,8 +81,8 @@  discard block
 block discarded – undo
81 81
             $attrs = $helper->createAttributesString($button->getAttributes());
82 82
 
83 83
             $content.= '<button ' . $attrs . '>'
84
-                       . $this->getTranslator()->translate($button->getLabel(), $this->getTranslatorTextDomain())
85
-                       . '</button>';
84
+                        . $this->getTranslator()->translate($button->getLabel(), $this->getTranslatorTextDomain())
85
+                        . '</button>';
86 86
         }
87 87
 
88 88
         return $content;
@@ -118,15 +118,15 @@  discard block
 block discarded – undo
118 118
 
119 119
             if ($element->getName() == $form->getButtonElement()) {
120 120
                 $content.='<div class="input-group col-md-' . $cols . '">'
121
-                              . $formElement($element)
122
-                              . '<div class="input-group-btn search-form-buttons" style="width: 1px;">'
123
-                              . $this->renderButtons($form->getButtons()) . '</div>'
124
-                              . '</div>';
121
+                                . $formElement($element)
122
+                                . '<div class="input-group-btn search-form-buttons" style="width: 1px;">'
123
+                                . $this->renderButtons($form->getButtons()) . '</div>'
124
+                                . '</div>';
125 125
                 $buttonsRendered = true;
126 126
             } else {
127 127
                 $content .= '<div class="input-group col-md-' . $cols . '">'
128
-                          . $formElement($element)
129
-                          . '</div>';
128
+                            . $formElement($element)
129
+                            . '</div>';
130 130
             }
131 131
 
132 132
             $i += 1;
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
                 $buttonsSpan = $form->getOption('buttons_span') ?: 12;
138 138
             }
139 139
             $content .= '<div class="input-group search-form-buttons col-md-' . $buttonsSpan . ' text-right">'
140
-                      . '<div class="btn-group">' . $this->renderButtons($form->getButtons()) .'</div></div>';
140
+                        . '<div class="btn-group">' . $this->renderButtons($form->getButtons()) .'</div></div>';
141 141
         }
142 142
 
143 143
         return $content;
Please login to merge, or discard this patch.
module/Core/src/Form/View/Helper/FormFileUpload.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -113,11 +113,11 @@  discard block
 block discarded – undo
113 113
 
114 114
             return str_replace(
115 115
                 array('#abort',
116
-                      '__file-uri__',
117
-                      '__file-name__',
118
-                      '__file-size__',
119
-                      'fu-working',
120
-                      'fa-file-o'
116
+                        '__file-uri__',
117
+                        '__file-name__',
118
+                        '__file-size__',
119
+                        'fu-working',
120
+                        'fa-file-o'
121 121
                 ),
122 122
                 array("$uri?do=delete", $uri, $name, $size, '', $icon),
123 123
                 $template
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
             '<div class="fu-nonempty-notice"' . ('' == trim($preview) ? ' style="display:none;"' : '') . '>'
141 141
             . $this->getNonEmptyNotice() . '</div>';
142 142
         $emptynotice    = '<div class="fu-empty-notice"'
143
-                          . ('' == trim($preview) ? '' : ' style="display: none;"') . '>
143
+                            . ('' == trim($preview) ? '' : ' style="display: none;"') . '>
144 144
                        ' . $this->getEmptyNotice() . '
145 145
                   </div>';
146 146
 
Please login to merge, or discard this patch.
module/Core/src/Form/View/Helper/FormRow.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -50,10 +50,10 @@  discard block
 block discarded – undo
50 50
         if ($element instanceof ViewPartialProviderInterface && !$ignoreViewPartial) {
51 51
             return $this->getView()->partial(
52 52
                 $element->getViewPartial(),
53
-                                             array(
54
-                                                 'element' => $element,
55
-                                                 'labelWitdh' => $labelWidth,
56
-                                                 'label_attributes' => $labelAttributes
53
+                                                array(
54
+                                                    'element' => $element,
55
+                                                    'labelWitdh' => $labelWidth,
56
+                                                    'label_attributes' => $labelAttributes
57 57
                                                             )
58 58
             );
59 59
         }
@@ -110,9 +110,9 @@  discard block
 block discarded – undo
110 110
         if ($desc && $this->layout != Form::LAYOUT_BARE) {
111 111
             if (null !== ($translator = $this->getTranslator())) {
112 112
                 $desc = $translator->translate(
113
-                                 $desc,
114
-                                 $this->getTranslatorTextDomain()
115
-                             );
113
+                                    $desc,
114
+                                    $this->getTranslatorTextDomain()
115
+                                );
116 116
             }
117 117
             $elementString .= sprintf(
118 118
                 '<div id="%s-desc" class="cam-description alert alert-info">%s</div>',
Please login to merge, or discard this patch.
module/Core/src/Form/View/Helper/Form.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,8 +71,8 @@
 block discarded – undo
71 71
         $basepath   = $renderer->plugin('basepath');
72 72
         
73 73
         $headscript->appendFile($basepath('modules/Core/js/core.spinnerbutton.js'))
74
-                   //->appendFile($basepath('/assets/select2/js/select2.min.js'))
75
-                   ->appendFile($basepath('modules/Core/js/core.forms.js'));
74
+                    //->appendFile($basepath('/assets/select2/js/select2.min.js'))
75
+                    ->appendFile($basepath('modules/Core/js/core.forms.js'));
76 76
 
77 77
         /* @noinspection PhpParamsInspection */
78 78
         //$renderer->headLink()->appendStylesheet($basepath('/assets/select2/css/select2.css'));
Please login to merge, or discard this patch.
module/Core/src/Form/View/Helper/FormContainer.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,8 +84,8 @@
 block discarded – undo
84 84
         if ($element instanceof ViewPartialProviderInterface) {
85 85
             $parameterPartial = array_merge(array('element' => $element, 'layout' => $layout), $parameterPartial);
86 86
             $content .= $this->getView()->partial(
87
-                             $element->getViewPartial(),
88
-                             $parameterPartial
87
+                                $element->getViewPartial(),
88
+                                $parameterPartial
89 89
             );
90 90
         } elseif ($element instanceof ViewHelperProviderInterface) {
91 91
             $helper = $element->getViewHelper();
Please login to merge, or discard this patch.
module/Core/src/Form/View/Helper/FormElement.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,5 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
-
4 3
  */
5 4
 
6 5
 namespace Core\Form\View\Helper;
Please login to merge, or discard this patch.
module/Core/src/Form/View/Helper/FormWizardContainer.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -89,25 +89,25 @@
 block discarded – undo
89 89
             $tabId = $containerId . '-' . strtolower($tabElement->getName());
90 90
             $tabsNav .= '<li><a data-toggle="tab" href="#' . $tabId . '">' . $translate($tabElement->getLabel()) . '</a></li>';
91 91
             $tabsContent .= '<div class="tab-pane" id="' . $tabId . '">'
92
-                          . $formContainer($tabElement, $layout, $parameter)
93
-                          . '</div>';
92
+                            . $formContainer($tabElement, $layout, $parameter)
93
+                            . '</div>';
94 94
         }
95 95
 
96 96
         $content .= '<style type="text/css">.tab-content > div > div:first-child { margin-top: 10px; }</style><div class="wizard-container" id="' . $containerId . '">'
97
-                  . '<ul>' . $tabsNav . '</ul>'
98
-                  . '<div class="tab-content">' . $tabsContent . '</div>';
97
+                    . '<ul>' . $tabsNav . '</ul>'
98
+                    . '<div class="tab-content">' . $tabsContent . '</div>';
99 99
         if ($containerParams['pager']) {
100 100
             $content .='<ul class="pager wizard">'
101
-                  . '<li class="previous"><a href="javascript:;">&larr; ' . $translate('previous') . '</a></li>'
102
-                  . '<li class="next"><a href="javascript:;">' . $translate('Next') . ' &rarr;</a></li>'
103
-                  . '<li class="finish' . ($containerParams['finish_enabled'] ? '' : ' disabled') . '">'
104
-                  . (
105
-                      false !== $containerParams['finish_label']
101
+                    . '<li class="previous"><a href="javascript:;">&larr; ' . $translate('previous') . '</a></li>'
102
+                    . '<li class="next"><a href="javascript:;">' . $translate('Next') . ' &rarr;</a></li>'
103
+                    . '<li class="finish' . ($containerParams['finish_enabled'] ? '' : ' disabled') . '">'
104
+                    . (
105
+                        false !== $containerParams['finish_label']
106 106
                      ? '<a class="pull-right" href="' . $containerParams['finish_href'] . '">'
107
-                       . $translate($containerParams['finish_label']) . ' &bull;</a>'
107
+                        . $translate($containerParams['finish_label']) . ' &bull;</a>'
108 108
                      : ''
109 109
                     )
110
-                  . '</li></ul>';
110
+                    . '</li></ul>';
111 111
         }
112 112
         $content .= '</div>';
113 113
 
Please login to merge, or discard this patch.