@@ -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 | [ |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | |
59 | 59 | if ($type->allow_resize && $type->options && json_decode($type->options, true)) { |
60 | 60 | $typeOptions = json_decode($type->options, true); |
61 | - list( $img_width, $img_height, $img_type, $img_tag ) = getimagesize($sitePath . $fileObject->path); |
|
61 | + list($img_width, $img_height, $img_type, $img_tag) = getimagesize($sitePath . $fileObject->path); |
|
62 | 62 | if ($img_height > $typeOptions['max_height'] || $img_width > $typeOptions['max_width']) { |
63 | 63 | Tools::resizeImage($sitePath . $fileObject->path, $typeOptions['max_width'], $typeOptions['max_height']); |
64 | 64 | } |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | |
121 | 121 | if ($type->allow_resize && $type->options && json_decode($type->options, true)) { |
122 | 122 | $typeOptions = json_decode($type->options, true); |
123 | - list( $img_width, $img_height, $img_type, $img_tag ) = getimagesize($sitePath . $fileObject->path); |
|
123 | + list($img_width, $img_height, $img_type, $img_tag) = getimagesize($sitePath . $fileObject->path); |
|
124 | 124 | if ($img_height > $typeOptions['max_height'] || $img_width > $typeOptions['max_width']) { |
125 | 125 | Tools::resizeImage($sitePath . $fileObject->path, $typeOptions['max_width'], $typeOptions['max_height']); |
126 | 126 | } |
@@ -9,10 +9,10 @@ |
||
9 | 9 | </div> |
10 | 10 | <?php |
11 | 11 | ++$i; |
12 | - if (!( $i % 3)) { |
|
12 | + if (!($i % 3)) { |
|
13 | 13 | echo '<div class="clearfix hidden-xs"></div>'; |
14 | 14 | } |
15 | - if (!( $i % 2)) { |
|
15 | + if (!($i % 2)) { |
|
16 | 16 | echo '<div class="clearfix visible-xs"></div>'; |
17 | 17 | } |
18 | 18 | } |
@@ -27,7 +27,7 @@ |
||
27 | 27 | if ($cart->delivery) { |
28 | 28 | echo "<h4>Информация о доставке</h4>"; |
29 | 29 | if ($cart->delivery->price_text || $cart->delivery->price) { |
30 | - echo "<div>Стоимость доставки: <b>" . ($cart->delivery->price_text ? $cart->delivery->price_text : ( $cart->delivery->price . ' ' . ($cart->delivery->currency ? $cart->delivery->currency->acronym() : 'руб.') )) . '</b></div>'; |
|
30 | + echo "<div>Стоимость доставки: <b>" . ($cart->delivery->price_text ? $cart->delivery->price_text : ($cart->delivery->price . ' ' . ($cart->delivery->currency ? $cart->delivery->currency->acronym() : 'руб.'))) . '</b></div>'; |
|
31 | 31 | } |
32 | 32 | if ((float) $cart->delivery->max_cart_price) { |
33 | 33 | echo '<div>При заказе товаров на сумму от ' . $cart->delivery->max_cart_price . ' руб - бесплатно</div>'; |
@@ -9,7 +9,7 @@ |
||
9 | 9 | } |
10 | 10 | |
11 | 11 | $widgetSize = !empty($section['size']) ? $section['size'] : 1; |
12 | - $rowSum+=$widgetSize; |
|
12 | + $rowSum += $widgetSize; |
|
13 | 13 | ?> |
14 | 14 | <div class="col-sm-<?= $widgetSize * 4; ?>" style="margin-bottom: 10px;"><?= $section['widget'](); ?></div> |
15 | 15 | <?php |
@@ -37,7 +37,7 @@ |
||
37 | 37 | $root->setAttribute("xmlns", "http://www.sitemaps.org/schemas/sitemap/0.9"); |
38 | 38 | $root = $xml->appendChild($root); |
39 | 39 | |
40 | - $addToXml = function ($xml, $parent, $nodeName, $text) { |
|
40 | + $addToXml = function($xml, $parent, $nodeName, $text) { |
|
41 | 41 | $node = $parent->appendChild($xml->createElement($nodeName)); |
42 | 42 | $node->appendChild($xml->createTextNode($text)); |
43 | 43 | return $node; |
@@ -25,7 +25,7 @@ |
||
25 | 25 | $query->table = \Exchange1c\Exchange\File::table(); |
26 | 26 | $query->cols = \Exchange1c\Exchange\File::colPrefix() . 'id'; |
27 | 27 | $queryArr = $query->buildQuery(); |
28 | - $queryArr['query'].=' where `' . \Exchange1c\Exchange\File::colPrefix() . 'deleted` = 0 AND `' . \Exchange1c\Exchange\File::colPrefix() . 'date_create` < NOW() - INTERVAL ' . \App::$cur->exchange1c->config['maxSaveFilesInterval']; |
|
28 | + $queryArr['query'] .= ' where `' . \Exchange1c\Exchange\File::colPrefix() . 'deleted` = 0 AND `' . \Exchange1c\Exchange\File::colPrefix() . 'date_create` < NOW() - INTERVAL ' . \App::$cur->exchange1c->config['maxSaveFilesInterval']; |
|
29 | 29 | try { |
30 | 30 | $ids = array_keys($query->query($queryArr)->getArray(\Exchange1c\Exchange\File::colPrefix() . 'id')); |
31 | 31 | } catch (\PDOException $exc) { |
@@ -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) { |