@@ -183,7 +183,7 @@ |
||
183 | 183 | |
184 | 184 | $fileName = $fileinfo['filename'] . '.' . $fileinfo['extension']; |
185 | 185 | if (App::$cur->db->connect) { |
186 | - $fileObj = Files\File::get([ 'path', '%/' . $fileinfo['filename'] . '.' . $fileinfo['extension'], 'LIKE']); |
|
186 | + $fileObj = Files\File::get(['path', '%/' . $fileinfo['filename'] . '.' . $fileinfo['extension'], 'LIKE']); |
|
187 | 187 | if ($fileObj) { |
188 | 188 | $fileName = $fileObj->original_name; |
189 | 189 | } |
@@ -186,12 +186,12 @@ discard block |
||
186 | 186 | $newValue = ''; |
187 | 187 | foreach ($value as $item) { |
188 | 188 | if ($newValue) { |
189 | - $newValue.=','; |
|
189 | + $newValue .= ','; |
|
190 | 190 | } |
191 | 191 | if (is_string($item)) { |
192 | - $newValue .='"' . $item . '"'; |
|
192 | + $newValue .= '"' . $item . '"'; |
|
193 | 193 | } else { |
194 | - $newValue .=$item; |
|
194 | + $newValue .= $item; |
|
195 | 195 | } |
196 | 196 | } |
197 | 197 | $value = '(' . $newValue . ')'; |
@@ -270,12 +270,12 @@ discard block |
||
270 | 270 | $newValue = ''; |
271 | 271 | foreach ($value as $item) { |
272 | 272 | if ($newValue) { |
273 | - $newValue.=','; |
|
273 | + $newValue .= ','; |
|
274 | 274 | } |
275 | 275 | if (is_string($item)) { |
276 | - $newValue .='"' . $item . '"'; |
|
276 | + $newValue .= '"' . $item . '"'; |
|
277 | 277 | } else { |
278 | - $newValue .=$item; |
|
278 | + $newValue .= $item; |
|
279 | 279 | } |
280 | 280 | } |
281 | 281 | $value = '(' . $newValue . ')'; |
@@ -381,7 +381,7 @@ discard block |
||
381 | 381 | } |
382 | 382 | } |
383 | 383 | $update = implode(',', $updates); |
384 | - $query .=" SET {$update}"; |
|
384 | + $query .= " SET {$update}"; |
|
385 | 385 | case 'SELECT': |
386 | 386 | case 'DELETE': |
387 | 387 | $this->buildWhere($this->where); |
@@ -42,7 +42,7 @@ |
||
42 | 42 | 'manager' => [ |
43 | 43 | 'cols' => ['user:id', 'user_id', 'currency_id', 'amount'], |
44 | 44 | 'sortable' => ['user:id', 'user_id', 'currency_id', 'amount'], |
45 | - 'filters' => [ 'currency_id'], |
|
45 | + 'filters' => ['currency_id'], |
|
46 | 46 | ] |
47 | 47 | ]; |
48 | 48 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -return function ($step = NULL, $params = []) { |
|
3 | +return function($step = NULL, $params = []) { |
|
4 | 4 | |
5 | 5 | $groups = [ |
6 | 6 | [ |
@@ -43,7 +43,7 @@ |
||
43 | 43 | Tools::redirect('/admin', 'У вас нет прав доступа для просмотра этого объекта', 'danger'); |
44 | 44 | } |
45 | 45 | $item = $fullModelName::get($pk); |
46 | - $this->view->setTitle(($fullModelName::$objectName ? $fullModelName::$objectName : $fullModelName) . ($item ? ( ' - ' . $item->name()) : '')); |
|
46 | + $this->view->setTitle(($fullModelName::$objectName ? $fullModelName::$objectName : $fullModelName) . ($item ? (' - ' . $item->name()) : '')); |
|
47 | 47 | if (!empty($_POST['comment'])) { |
48 | 48 | $comment = new Dashboard\Comment(); |
49 | 49 | $comment->text = $_POST['comment']; |