Completed
Push — master ( 308a3c...ebb499 )
by Alexey
08:08
created
system/modules/Ecommerce/widgets/cart/delivery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
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>';
Please login to merge, or discard this patch.
system/modules/Dashboard/appAdminControllers/content/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
system/modules/Sitemap/Sitemap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
system/modules/Exchange1c/objects/Mode/Init.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
system/modules/Ui/appAdminControllers/content/dataManager/view.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
system/modules/Ui/objects/Tree.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.
system/modules/Ui/objects/DataManager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -473,7 +473,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
system/modules/Ui/widgets/Form/select.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
system/modules/Ui/widgets/Form/dynamicList.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
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>';
Please login to merge, or discard this patch.