Test Failed
Push — master ( d4b66a...4c7907 )
by Alexey
05:07
created
system/modules/Money/appControllers/MerchantsController.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
                 $where[] = ['data', $_GET['data']];
72 72
             }
73 73
             $pays = Money\Pay::getList(['where' => $where, 'order' => ['date_create', 'DESC']]);
74
-            if(count($pays)===1){
74
+            if(count($pays)===1) {
75 75
                 Tools::redirect('/money/merchants/pay/'.current($pays)->id);
76 76
             }
77 77
             $this->view->page(['content' => 'pays', 'data' => compact('bread', 'pays')]);
Please login to merge, or discard this patch.
system/modules/Users/Users.php 1 patch
Braces   +13 added lines, -10 removed lines patch added patch discarded remove patch
@@ -236,17 +236,20 @@
 block discarded – undo
236 236
      * @return boolean|\Users\User
237 237
      */
238 238
     public function get($idn, $ltype = 'id') {
239
-        if (!$idn)
240
-            return false;
239
+        if (!$idn) {
240
+                    return false;
241
+        }
241 242
 
242
-        if (is_numeric($idn) && $ltype != 'login')
243
-            $user = Users\User::get($idn, 'id');
244
-        elseif ($ltype == 'login')
245
-            $user = Users\User::get($idn, 'login');
246
-        else
247
-            $user = Users\User::get($idn, 'mail');
248
-        if (!$user)
249
-            return [];
243
+        if (is_numeric($idn) && $ltype != 'login') {
244
+                    $user = Users\User::get($idn, 'id');
245
+        } elseif ($ltype == 'login') {
246
+                    $user = Users\User::get($idn, 'login');
247
+        } else {
248
+                    $user = Users\User::get($idn, 'mail');
249
+        }
250
+        if (!$user) {
251
+                    return [];
252
+        }
250 253
 
251 254
         return $user;
252 255
     }
Please login to merge, or discard this patch.
system/modules/Sliders/widgets/slider.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 if (!empty($alias)) {
9 9
     $slider = Sliders\Slider::get($alias, 'alias');
10 10
 }
11
-if(empty($slider)){
11
+if(empty($slider)) {
12 12
     echo 'Slider not found';
13 13
     return;
14 14
 }
Please login to merge, or discard this patch.
system/modules/Ecommerce/objects/DeliveryProvider/PickPoint.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,8 +35,11 @@
 block discarded – undo
35 35
         $contents = curl_exec($c);
36 36
         curl_close($c);
37 37
 
38
-        if ($contents) return $contents;
39
-        else return FALSE;
38
+        if ($contents) {
39
+            return $contents;
40
+        } else {
41
+            return FALSE;
42
+        }
40 43
     }
41 44
 
42 45
     static function deliveryTime($cart) {
Please login to merge, or discard this patch.
system/modules/Ui/widgets/Form/autocomplete.php 1 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/Inji/Tools.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -216,7 +216,7 @@
 block discarded – undo
216 216
 
217 217
         $image = self::imgToResource($imagePath);
218 218
         $watermark = self::imgToResource($watermarkPath);
219
-        if(!$image || !$watermark || !$image['res'] || !$watermark['res']){
219
+        if(!$image || !$watermark || !$image['res'] || !$watermark['res']) {
220 220
             return false;
221 221
         }
222 222
 
Please login to merge, or discard this patch.
system/modules/Exchange1c/objects/Mode/Info.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -13,11 +13,9 @@
 block discarded – undo
13 13
 
14 14
 use Exchange1c\Exchange;
15 15
 
16
-class Info extends \Exchange1c\Mode
17
-{
16
+class Info extends \Exchange1c\Mode {
18 17
 
19
-    public function process()
20
-    {
18
+    public function process() {
21 19
         echo "version=2.03";
22 20
         $this->end();
23 21
     }
Please login to merge, or discard this patch.