@@ -27,13 +27,13 @@ |
||
27 | 27 | <?php |
28 | 28 | $delivery = $cartDelivery; |
29 | 29 | if ($delivery->price_text || $delivery->price) { |
30 | - echo "<div>Стоимость доставки: <b>" . ($delivery->price_text ? $delivery->price_text : ( $delivery->price . ' ' . ($delivery->currency ? $delivery->currency->acronym() : 'руб.') )) . '</b></div>'; |
|
30 | + echo "<div>Стоимость доставки: <b>" . ($delivery->price_text ? $delivery->price_text : ($delivery->price . ' ' . ($delivery->currency ? $delivery->currency->acronym() : 'руб.'))) . '</b></div>'; |
|
31 | 31 | } |
32 | 32 | if ((float) $delivery->max_cart_price) { |
33 | 33 | echo '<div>При заказе товаров на сумму от ' . $delivery->max_cart_price . ' руб - бесплатно</div>'; |
34 | 34 | } |
35 | 35 | echo $delivery->info; |
36 | - if($delivery->fields) { |
|
36 | + if ($delivery->fields) { |
|
37 | 37 | echo '<hr \>'; |
38 | 38 | foreach ($delivery->fields as $field) { |
39 | 39 | $form->input($field->type, "deliveryFields[{$field->id}]", $field->name, ['required' => $field->required]); |
@@ -190,12 +190,12 @@ discard block |
||
190 | 190 | $newValue = ''; |
191 | 191 | foreach ($value as $item) { |
192 | 192 | if ($newValue) { |
193 | - $newValue.=','; |
|
193 | + $newValue .= ','; |
|
194 | 194 | } |
195 | 195 | if (is_string($item)) { |
196 | - $newValue .='"' . $item . '"'; |
|
196 | + $newValue .= '"' . $item . '"'; |
|
197 | 197 | } else { |
198 | - $newValue .=$item; |
|
198 | + $newValue .= $item; |
|
199 | 199 | } |
200 | 200 | } |
201 | 201 | $value = '(' . $newValue . ')'; |
@@ -309,7 +309,7 @@ discard block |
||
309 | 309 | } |
310 | 310 | } |
311 | 311 | $update = implode(',', $updates); |
312 | - $query .=" SET {$update}"; |
|
312 | + $query .= " SET {$update}"; |
|
313 | 313 | case 'SELECT': |
314 | 314 | case 'DELETE': |
315 | 315 | $this->buildWhere($this->where); |
@@ -24,8 +24,8 @@ |
||
24 | 24 | 'label' => ['type' => 'text'], |
25 | 25 | 'type' => ['type' => 'text'], |
26 | 26 | 'required' => ['type' => 'bool'], |
27 | - 'form_id' => [ 'type' => 'select', 'source' => 'relation', 'relation' => 'form'], |
|
28 | - 'user_id' => [ 'type' => 'select', 'source' => 'relation', 'relation' => 'user'], |
|
27 | + 'form_id' => ['type' => 'select', 'source' => 'relation', 'relation' => 'form'], |
|
28 | + 'user_id' => ['type' => 'select', 'source' => 'relation', 'relation' => 'user'], |
|
29 | 29 | 'input_params' => ['type' => 'textarea'], |
30 | 30 | 'weight' => ['type' => 'number'] |
31 | 31 | ]; |
@@ -24,10 +24,10 @@ |
||
24 | 24 | public static $cols = [ |
25 | 25 | 'name' => ['type' => 'text'], |
26 | 26 | 'description' => ['type' => 'html'], |
27 | - 'user_id' => [ 'type' => 'select', 'source' => 'relation', 'relation' => 'user'], |
|
27 | + 'user_id' => ['type' => 'select', 'source' => 'relation', 'relation' => 'user'], |
|
28 | 28 | 'date_create' => ['type' => 'dateTime'], |
29 | 29 | //Менеджеры |
30 | - 'inputs' => [ 'type' => 'dataManager', 'relation' => 'inputs'], |
|
30 | + 'inputs' => ['type' => 'dataManager', 'relation' => 'inputs'], |
|
31 | 31 | ]; |
32 | 32 | public static $dataManagers = [ |
33 | 33 | 'manager' => [ |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | } |
32 | 32 | $count += count($items); |
33 | 33 | foreach ($items as $objectChild) { |
34 | - $count+=static::showLi($objectChild, 1, $maxDeep, $hrefFunc); |
|
34 | + $count += static::showLi($objectChild, 1, $maxDeep, $hrefFunc); |
|
35 | 35 | } |
36 | 36 | ?> |
37 | 37 | </ul> |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | echo \Html::el('li', $attributes, $item, true); |
64 | 64 | echo '<ul>'; |
65 | 65 | } |
66 | - $count+=static::showLi($objectChild, $deep + 1, $maxDeep, $hrefFunc); |
|
66 | + $count += static::showLi($objectChild, $deep + 1, $maxDeep, $hrefFunc); |
|
67 | 67 | } |
68 | 68 | } |
69 | 69 | if ($isset) { |