@@ -106,7 +106,7 @@ |
||
106 | 106 | } |
107 | 107 | return false; |
108 | 108 | } |
109 | - public function possibleModuleClasses($moduleName){ |
|
109 | + public function possibleModuleClasses($moduleName) { |
|
110 | 110 | $possibleModules = []; |
111 | 111 | if ($this->namespace) { |
112 | 112 | $possibleModules[] = $this->namespace . '\\' . $moduleName; |
@@ -1023,12 +1023,12 @@ discard block |
||
1023 | 1023 | } |
1024 | 1024 | static::$relJoins = []; |
1025 | 1025 | if (!empty($options['limit'])) { |
1026 | - $limit = (int)$options['limit']; |
|
1026 | + $limit = (int) $options['limit']; |
|
1027 | 1027 | } else { |
1028 | 1028 | $limit = 0; |
1029 | 1029 | } |
1030 | 1030 | if (!empty($options['start'])) { |
1031 | - $start = (int)$options['start']; |
|
1031 | + $start = (int) $options['start']; |
|
1032 | 1032 | } else { |
1033 | 1033 | $start = 0; |
1034 | 1034 | } |
@@ -1134,12 +1134,12 @@ discard block |
||
1134 | 1134 | $query->order($options['order']); |
1135 | 1135 | } |
1136 | 1136 | if (!empty($options['limit'])) { |
1137 | - $limit = (int)$options['limit']; |
|
1137 | + $limit = (int) $options['limit']; |
|
1138 | 1138 | } else { |
1139 | 1139 | $limit = 0; |
1140 | 1140 | } |
1141 | 1141 | if (!empty($options['start'])) { |
1142 | - $start = (int)$options['start']; |
|
1142 | + $start = (int) $options['start']; |
|
1143 | 1143 | } else { |
1144 | 1144 | $start = 0; |
1145 | 1145 | } |
@@ -1858,13 +1858,13 @@ discard block |
||
1858 | 1858 | if (!empty($className::$cols[$shortName])) { |
1859 | 1859 | switch ($className::$cols[$shortName]['type']) { |
1860 | 1860 | case 'decimal': |
1861 | - $value = (float)$value; |
|
1861 | + $value = (float) $value; |
|
1862 | 1862 | break; |
1863 | 1863 | case 'number': |
1864 | - $value = (int)$value; |
|
1864 | + $value = (int) $value; |
|
1865 | 1865 | break; |
1866 | 1866 | case 'bool': |
1867 | - $value = (bool)$value; |
|
1867 | + $value = (bool) $value; |
|
1868 | 1868 | break; |
1869 | 1869 | } |
1870 | 1870 | } |
@@ -61,7 +61,7 @@ |
||
61 | 61 | return $this->connection->updateItems($tableName, $this->whereArray, $values, $this->dbOptions); |
62 | 62 | } |
63 | 63 | |
64 | - public function delete(string $tableName='') { |
|
64 | + public function delete(string $tableName = '') { |
|
65 | 65 | if (!$tableName) { |
66 | 66 | $tableName = $this->table; |
67 | 67 | } |
@@ -248,7 +248,7 @@ discard block |
||
248 | 248 | return true; |
249 | 249 | } |
250 | 250 | |
251 | - public static function getOptionsList($inputParams, $params = [], $modelName = '', $aditionalInputNamePrefix = 'aditional', $options = [],$model=false) { |
|
251 | + public static function getOptionsList($inputParams, $params = [], $modelName = '', $aditionalInputNamePrefix = 'aditional', $options = [], $model = false) { |
|
252 | 252 | $values = []; |
253 | 253 | switch ($inputParams['source']) { |
254 | 254 | case 'model': |
@@ -259,7 +259,7 @@ discard block |
||
259 | 259 | break; |
260 | 260 | case 'method': |
261 | 261 | if (!empty($inputParams['params'])) { |
262 | - $values = call_user_func_array([\App::$cur->{$inputParams['module']}, $inputParams['method']], $inputParams['params']+[$model]); |
|
262 | + $values = call_user_func_array([\App::$cur->{$inputParams['module']}, $inputParams['method']], $inputParams['params'] + [$model]); |
|
263 | 263 | } else { |
264 | 264 | $values = \App::$cur->{$inputParams['module']}->{$inputParams['method']}($model); |
265 | 265 | } |