Completed
Push — master ( d040ca...24a963 )
by Mihail
06:36
created
src/Ffcms/Core/Traits/ModelValidator.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
                     } elseif (method_exists($class, $obj)) { // maybe its a function?
133 133
                         $class = $class::$obj; // call function
134 134
                     } else {
135
-                        throw new SyntaxException('Filter callback execution failed: ' . $filter_name);
135
+                        throw new SyntaxException('Filter callback execution failed: '.$filter_name);
136 136
                     }
137 137
 
138 138
                 }
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
             if (method_exists($class, $method)) {
143 143
                 $check = @$class::$method($field_value, $filter_argv);
144 144
             } else {
145
-                throw new SyntaxException('Filter callback execution failed: ' . $filter_name);
145
+                throw new SyntaxException('Filter callback execution failed: '.$filter_name);
146 146
             }
147 147
         } elseif (method_exists('Ffcms\Core\Filter\Native', $filter_name)) { // only full namespace\class path based :(
148 148
             if ($filter_argv != null) {
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
                 $check = Native::$filter_name($field_value);
152 152
             }
153 153
         } else {
154
-            throw new SyntaxException('Filter "' . $filter_name . '" is not exist');
154
+            throw new SyntaxException('Filter "'.$filter_name.'" is not exist');
155 155
         }
156 156
         if ($check !== true) { // switch only on fail check.
157 157
             $this->_badAttr[] = $field_name;
@@ -314,10 +314,10 @@  discard block
 block discarded – undo
314 314
         $paramQuery = $this->getFormName();
315 315
         if (Str::contains('.', $param)) {
316 316
             foreach (explode('.', $param) as $item) {
317
-                $paramQuery .= '[' . $item . ']';
317
+                $paramQuery .= '['.$item.']';
318 318
             }
319 319
         } else {
320
-            $paramQuery .= '[' . $param . ']';
320
+            $paramQuery .= '['.$param.']';
321 321
         }
322 322
 
323 323
         if ($method === null) {
Please login to merge, or discard this patch.