@@ -41,7 +41,7 @@ |
||
41 | 41 | ]]); |
42 | 42 | ?>)</h3> |
43 | 43 | <?php |
44 | - foreach (\Dashboard\Comment::getList([ 'where' => [ |
|
44 | + foreach (\Dashboard\Comment::getList(['where' => [ |
|
45 | 45 | ['item_id', $item->id], |
46 | 46 | ['model', $modelName], |
47 | 47 | ], 'order' => ['date_create', 'desc']]) as $comment) { |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | } |
31 | 31 | $count += count($items); |
32 | 32 | foreach ($items as $objectChild) { |
33 | - $count+=static::showLi($objectChild, 1, $maxDeep, $hrefFunc, $order); |
|
33 | + $count += static::showLi($objectChild, 1, $maxDeep, $hrefFunc, $order); |
|
34 | 34 | } |
35 | 35 | ?> |
36 | 36 | </ul> |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | echo \Html::el('li', $attributes, $item, true); |
62 | 62 | echo '<ul>'; |
63 | 63 | } |
64 | - $count+=static::showLi($objectChild, $deep + 1, $maxDeep, $hrefFunc, $order); |
|
64 | + $count += static::showLi($objectChild, $deep + 1, $maxDeep, $hrefFunc, $order); |
|
65 | 65 | } |
66 | 66 | } |
67 | 67 | if ($isset) { |
@@ -473,7 +473,7 @@ discard block |
||
473 | 473 | return $item->$colName; |
474 | 474 | } |
475 | 475 | } elseif (!empty($modelName::$cols[$colName]['type'])) { |
476 | - if (\App::$cur->name == 'admin' && $originalCol == 'name' || ( $dataManager && !empty($dataManager->managerOptions['colToView']) && $dataManager->managerOptions['colToView'] == $originalCol)) { |
|
476 | + if (\App::$cur->name == 'admin' && $originalCol == 'name' || ($dataManager && !empty($dataManager->managerOptions['colToView']) && $dataManager->managerOptions['colToView'] == $originalCol)) { |
|
477 | 477 | $formName = $dataManager && !empty($dataManager->managerOptions['editForm']) ? $dataManager->managerOptions['editForm'] : 'manager'; |
478 | 478 | $redirectUrl = !empty($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '/admin/' . str_replace('\\', '/', get_class($originalItem)); |
479 | 479 | return "<a href ='/admin/{$originalItem->genViewLink()}?formName={$formName}&redirectUrl={$redirectUrl}'>{$item->$colName}</a>"; |
@@ -684,7 +684,7 @@ discard block |
||
684 | 684 | ]; |
685 | 685 | } |
686 | 686 | $tableCols[] = ''; |
687 | - $this->table->class .=' datamanagertable'; |
|
687 | + $this->table->class .= ' datamanagertable'; |
|
688 | 688 | $this->table->setCols($tableCols); |
689 | 689 | } |
690 | 690 |
@@ -23,7 +23,7 @@ |
||
23 | 23 | $showedInput = count($aditionalInputs) - 1; |
24 | 24 | $aditionValue = !empty($options['aditionalValue']) ? $options['aditionalValue'] : ''; |
25 | 25 | } |
26 | - $optionsHtml .= "<option data-aditionalInput='" . ( count($aditionalInputs) - 1) . "' value ='{$key}'{$selected}>{$value['text']}</option>"; |
|
26 | + $optionsHtml .= "<option data-aditionalInput='" . (count($aditionalInputs) - 1) . "' value ='{$key}'{$selected}>{$value['text']}</option>"; |
|
27 | 27 | } else { |
28 | 28 | $optionsHtml .= "<option value ='{$key}'{$selected}>{$value}</option>"; |
29 | 29 | } |
@@ -87,7 +87,7 @@ |
||
87 | 87 | } |
88 | 88 | $col['input']->options['noContainer'] = true; |
89 | 89 | $col['input']->colParams['label'] = false; |
90 | - $col['input']->colName.="[{$colName}][]"; |
|
90 | + $col['input']->colName .= "[{$colName}][]"; |
|
91 | 91 | $col['input']->draw(); |
92 | 92 | if (empty($col['hidden'])) { |
93 | 93 | echo '</td>'; |
@@ -134,7 +134,7 @@ |
||
134 | 134 | $categorys = Category::getList(['where' => ['id', implode(',', $treePath), 'IN']]); |
135 | 135 | foreach ($categorys as $category) { |
136 | 136 | if ($category->alias) { |
137 | - $href .="/{$category->alias}"; |
|
137 | + $href .= "/{$category->alias}"; |
|
138 | 138 | } |
139 | 139 | } |
140 | 140 | } |
@@ -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 |