Passed
Push — master ( 296302...da0b9b )
by Oleg
04:27
created
widget/ListViewWidget.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
     public function init()
128 128
     {
129 129
         if (!file_exists($this->pathView)) {
130
-            throw new Exception('View path not valid: ' . $this->pathView);
130
+            throw new Exception('View path not valid: '.$this->pathView);
131 131
         }
132 132
 
133 133
         $this->rowsCount = count($this->rows);
@@ -162,8 +162,8 @@  discard block
 block discarded – undo
162 162
      */
163 163
     protected function getCounter()
164 164
     {
165
-        return Html::openTag('div', $this->attributesCounter) .
166
-        $this->counterText . $this->totalCount . Html::closeTag('div');
165
+        return Html::openTag('div', $this->attributesCounter).
166
+        $this->counterText.$this->totalCount.Html::closeTag('div');
167 167
     }
168 168
 
169 169
     /**
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
     protected function getElements()
177 177
     {
178 178
         if (!$this->rows) {
179
-            return Html::openTag('div', $this->attributesEmpty) . $this->emptyText . Html::closeTag('div');
179
+            return Html::openTag('div', $this->attributesEmpty).$this->emptyText.Html::closeTag('div');
180 180
         }
181 181
 
182 182
         ob_start();
Please login to merge, or discard this patch.
validator/RangeValidator.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -35,13 +35,13 @@  discard block
 block discarded – undo
35 35
 
36 36
         foreach ($this->elements AS $element) {
37 37
             if (!$model->checkAttributeExists($element)) {
38
-                $this->errors[] = 'Parameter ' . $element . ' not defined in class ' . get_class($model);
38
+                $this->errors[] = 'Parameter '.$element.' not defined in class '.get_class($model);
39 39
 
40 40
                 return false;
41 41
             }
42 42
             if (!in_array($model->$element, $rang, true)) {
43
-                $this->errors[] = 'Parameter ' . $element . ' not find in rage ' .
44
-                    $this->params['min'] . '..' . $this->params['max'];
43
+                $this->errors[] = 'Parameter '.$element.' not find in rage '.
44
+                    $this->params['min'].'..'.$this->params['max'];
45 45
 
46 46
                 return false;
47 47
             }
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      */
56 56
     public function client(IFormModel $model)
57 57
     {
58
-        $js = 'if (this.value < ' . $this->params['min'] . ' || this.value > ' . $this->params['max'] . ') {' .
58
+        $js = 'if (this.value < '.$this->params['min'].' || this.value > '.$this->params['max'].') {'.
59 59
             ' e.preventDefault(); this.focus(); alert(\'Value not find in range\'); }';
60 60
 
61 61
         return $js;
Please login to merge, or discard this patch.
validator/StringValidator.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
     {
26 26
         foreach ($this->elements AS $element) {
27 27
             if (!$model->checkAttributeExists($element)) {
28
-                $this->errors[] = 'Parameter ' . $element . ' not defined in class ' . get_class($model);
28
+                $this->errors[] = 'Parameter '.$element.' not defined in class '.get_class($model);
29 29
 
30 30
                 return false;
31 31
             }
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
             if (!empty($this->params['min'])) {
34 34
                 $this->params['min'] = filter_var($this->params['min'], FILTER_VALIDATE_INT);
35 35
                 if ($this->params['min'] > $elementLength) {
36
-                    $this->errors[] = $element . ' error: minimal characters not valid.';
36
+                    $this->errors[] = $element.' error: minimal characters not valid.';
37 37
 
38 38
                     return false;
39 39
                 }
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
             if (!empty($this->params['max'])) {
42 42
                 $this->params['max'] = filter_var($this->params['max'], FILTER_VALIDATE_INT);
43 43
                 if ($this->params['max'] < $elementLength) {
44
-                    $this->errors[] = $element . ' error: maximal characters not valid.';
44
+                    $this->errors[] = $element.' error: maximal characters not valid.';
45 45
 
46 46
                     return false;
47 47
                 }
@@ -58,12 +58,12 @@  discard block
 block discarded – undo
58 58
     {
59 59
         $action = '';
60 60
         if (!empty($this->params['min'])) {
61
-            $action .= ' if (this.value.length < ' . $this->params['min'] . ') { e.preventDefault(); this.focus();' .
62
-                ' alert(\'Value lowest, minimum ' . $this->params['min'] . ' symbols\'); }';
61
+            $action .= ' if (this.value.length < '.$this->params['min'].') { e.preventDefault(); this.focus();'.
62
+                ' alert(\'Value lowest, minimum '.$this->params['min'].' symbols\'); }';
63 63
         }
64 64
         if (!empty($this->params['max'])) {
65
-            $action .= ' if (this.value.length > ' . $this->params['max'] . ') { e.preventDefault(); this.focus();' .
66
-                ' alert(\'Value highest, maximum ' . $this->params['max'] . ' symbols\'); }';
65
+            $action .= ' if (this.value.length > '.$this->params['max'].') { e.preventDefault(); this.focus();'.
66
+                ' alert(\'Value highest, maximum '.$this->params['max'].' symbols\'); }';
67 67
         }
68 68
 
69 69
         return $action;
Please login to merge, or discard this patch.
auth/Rbac.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,6 @@
 block discarded – undo
32 32
      *
33 33
      * @access public
34 34
      *
35
-     * @param array $params
36 35
      *
37 36
      * @result void
38 37
      */
Please login to merge, or discard this patch.
mvc/views/View.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@
 block discarded – undo
136 136
         }
137 137
 
138 138
         if (!class_exists($name) && empty($GLOBALS['widgetStack'][$name])) {
139
-            throw new Exception('Widget ' . $name . ' not started.');
139
+            throw new Exception('Widget '.$name.' not started.');
140 140
         }
141 141
 
142 142
         /** @var \Micro\mvc\Widget $widget widget */
Please login to merge, or discard this patch.