Completed
Push — master ( 8b132e...999aae )
by Mihail
02:25
created
src/Ffcms/Core/Traits/ModelValidator.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
                     } elseif (method_exists($class, $obj)) { // maybe its a function?
139 139
                         $class = $class::$obj; // call function
140 140
                     } else {
141
-                        throw new SyntaxException('Filter callback execution failed: ' . $filterName);
141
+                        throw new SyntaxException('Filter callback execution failed: '.$filterName);
142 142
                     }
143 143
 
144 144
                 }
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
             if (method_exists($class, $method)) {
149 149
                 $check = @$class::$method($fieldValue, $filterArgs);
150 150
             } else {
151
-                throw new SyntaxException('Filter callback execution failed: ' . $filterName);
151
+                throw new SyntaxException('Filter callback execution failed: '.$filterName);
152 152
             }
153 153
         } elseif (method_exists('Ffcms\Core\Helper\ModelFilters', $filterName)) { // only full namespace\class path based :(
154 154
             if ($filterArgs != null) {
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
                 $check = ModelFilters::$filterName($fieldValue);
158 158
             }
159 159
         } else {
160
-            throw new SyntaxException('Filter "' . $filterName . '" is not exist');
160
+            throw new SyntaxException('Filter "'.$filterName.'" is not exist');
161 161
         }
162 162
         if ($check !== true) { // switch only on fail check.
163 163
             $this->_badAttr[] = $propertyName;
@@ -323,10 +323,10 @@  discard block
 block discarded – undo
323 323
         $paramQuery = $this->getFormName();
324 324
         if (Str::contains('.', $param)) {
325 325
             foreach (explode('.', $param) as $item) {
326
-                $paramQuery .= '[' . $item . ']';
326
+                $paramQuery .= '['.$item.']';
327 327
             }
328 328
         } else {
329
-            $paramQuery .= '[' . $param . ']';
329
+            $paramQuery .= '['.$param.']';
330 330
         }
331 331
 
332 332
         if ($method === null) {
Please login to merge, or discard this patch.