Test Failed
Push — master ( 88490c...c5f697 )
by Alexey
05:11
created
system/modules/Money/appControllers/content/exchange.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
         $form->end('Выбрать');
15 15
         foreach ($rates as $rate) {
16 16
             $form = new Ui\Form();
17
-            $form->id = 'form_'.Tools::randomString();
17
+            $form->id = 'form_' . Tools::randomString();
18 18
             $form->method = "GET";
19 19
             $form->begin();
20 20
             ?>
Please login to merge, or discard this patch.
system/modules/Ecommerce/widgets/cart/payType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
     <div class="col-md-4">
3 3
         <ul class="nav nav-pills nav-stacked">
4 4
             <?php
5
-            $hiddenId = 'paytype_'.Tools::randomString();
5
+            $hiddenId = 'paytype_' . Tools::randomString();
6 6
             foreach ($payTypes as $payType) {
7 7
                 if ((!empty($_POST['payType']) && $_POST['payType'] == $payType->id) || ($cart->payType && $payType->id == $cart->payType->id)) {
8 8
                     $checked = 'checked';
Please login to merge, or discard this patch.
system/modules/Ecommerce/widgets/cart/delivery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
     <div class="col-md-4">
3 3
         <ul class="nav nav-pills nav-stacked">
4 4
             <?php
5
-            $hiddenId = 'paytype_'.Tools::randomString();
5
+            $hiddenId = 'paytype_' . Tools::randomString();
6 6
             foreach ($deliverys as $delivery) {
7 7
                 if ((!empty($_POST['delivery']) && $_POST['delivery'] == $delivery->id) || ($cart->delivery && $delivery->id == $cart->delivery->id)) {
8 8
                     $checked = 'checked';
Please login to merge, or discard this patch.
system/Inji/Cache.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -128,6 +128,7 @@
 block discarded – undo
128 128
      * Get cache dir for app
129 129
      *
130 130
      * @param App $app
131
+     * @param string $dirname
131 132
      * @return string
132 133
      */
133 134
     public static function getDir($dirname, $app = null) {
Please login to merge, or discard this patch.
system/modules/Ecommerce/widgets/formInputs/pickpointPointChooser.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
             }
19 19
         }
20 20
         if ($data) {
21
-            $address = $data['Name'] . ' ' . $data['Number'] . '<br />' . $data['PostCode'] . ', ' . $data['Region'] . ', ' . $data['CitiName'] . ', ' . $data['Address'];// . '<br /><small>' . $data['OutDescription'].'</small>';
21
+            $address = $data['Name'] . ' ' . $data['Number'] . '<br />' . $data['PostCode'] . ', ' . $data['Region'] . ', ' . $data['CitiName'] . ', ' . $data['Address']; // . '<br /><small>' . $data['OutDescription'].'</small>';
22 22
         }
23 23
     }
24 24
     ?>
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
       function my_function(result) {
37 37
         console.log(result);
38 38
 // устанавливаем в скрытое поле ID терминала
39
-        document.getElementById('<?=$id;?>').value = result.id;
39
+        document.getElementById('<?=$id; ?>').value = result.id;
40 40
 // показываем пользователю название точки и адрес доствки
41 41
         document.getElementById('address').innerHTML = result['name'] + '<br />' + result['address'];
42 42
         document.getElementById('addressbtn').innerHTML = 'Изменить';
Please login to merge, or discard this patch.
system/modules/Ecommerce/widgets/formInputs/cdekChooser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
                 </div>
49 49
                 <script>
50 50
                   inji.onLoad(function () {
51
-                    inji.Ui.customSelect.bind($('#<?=$id;?>'));
51
+                    inji.Ui.customSelect.bind($('#<?=$id; ?>'));
52 52
                   })
53 53
                 </script>
54 54
                 <?php
Please login to merge, or discard this patch.
system/modules/Ui/widgets/Form/autocomplete.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 if (!empty($options['attributes'])) {
38 38
     $attributes = array_merge($attributes, $options['attributes']);
39 39
 }
40
-if(!empty($attributes['onchange'])){
40
+if (!empty($attributes['onchange'])) {
41 41
     unset($attributes['onchange']);
42 42
 }
43 43
 echo Html::el('input', $attributes, '', null);
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 <script>
60 60
   inji.onLoad(function () {
61 61
     setTimeout(function () {
62
-      inji.Ui.autocomplete.bind(inji.get('#<?=$id;?>'), '<?=$options['snippet'];?>', <?=json_encode($options['snippetParams']);?>);
62
+      inji.Ui.autocomplete.bind(inji.get('#<?=$id; ?>'), '<?=$options['snippet']; ?>', <?=json_encode($options['snippetParams']); ?>);
63 63
     }, 100);
64 64
   });
65 65
 </script>
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
 if (!empty($options['attributes'])) {
38 38
     $attributes = array_merge($attributes, $options['attributes']);
39 39
 }
40
-if(!empty($attributes['onchange'])){
40
+if(!empty($attributes['onchange'])) {
41 41
     unset($attributes['onchange']);
42 42
 }
43 43
 echo Html::el('input', $attributes, '', null);
Please login to merge, or discard this patch.
system/modules/Ecommerce/objects/DeliveryProvider/RussianPost.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -11,8 +11,6 @@
 block discarded – undo
11 11
 namespace Ecommerce\DeliveryProvider;
12 12
 
13 13
 
14
-use Ecommerce\UserAdds\Field;
15
-
16 14
 class RussianPost extends \Ecommerce\DeliveryProvider {
17 15
     static $name = 'PickPoint - курьерская служба';
18 16
 
Please login to merge, or discard this patch.
system/modules/Exchange1c/appAdminControllers/Exchange1cController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
         ignore_user_abort(true);
16 16
         set_time_limit(0);
17 17
         Model::$logging = false;
18
-        $reExchange = Exchange1c\Exchange::get((int)$_GET['item_pk']);
18
+        $reExchange = Exchange1c\Exchange::get((int) $_GET['item_pk']);
19 19
 
20 20
         $exchange = new \Exchange1c\Exchange();
21 21
         $exchange->type = $reExchange->type;
Please login to merge, or discard this patch.