Passed
Branch master (799d81)
by Carlos
07:03
created
tests/api/FieldCest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
                 'class' => FieldFixture::class,
28 28
                 'depends' => [],
29 29
             ],
30
-	]);
30
+    ]);
31 31
     }
32 32
 
33 33
     /**
Please login to merge, or discard this patch.
tests/_app/models/User.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
             return false;
75 75
         }
76 76
 
77
-        $timestamp = (int) substr($token, strrpos($token, '_') + 1);
77
+        $timestamp = (int)substr($token, strrpos($token, '_') + 1);
78 78
         $expire = Yii::$app->params['user.passwordResetTokenExpire'];
79 79
 
80 80
         return $timestamp + $expire >= time();
Please login to merge, or discard this patch.
tests/_app/config/db.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,8 +8,8 @@
 block discarded – undo
8 8
     'charset' => 'utf8',
9 9
 ];
10 10
 
11
-if (file_exists(__DIR__.'/db.local.php')) {
12
-    $db = array_merge($db, require(__DIR__.'/db.local.php'));
11
+if (file_exists(__DIR__ . '/db.local.php')) {
12
+    $db = array_merge($db, require(__DIR__ . '/db.local.php'));
13 13
 }
14 14
 
15 15
 return $db;
Please login to merge, or discard this patch.
tests/_app/config/web.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,8 +16,8 @@
 block discarded – undo
16 16
         ],
17 17
         'components' => [
18 18
             'assetManager' => [
19
-               'basePath' => dirname(__DIR__) . '/assets',
20
-           ],
19
+                'basePath' => dirname(__DIR__) . '/assets',
20
+            ],
21 21
         ]
22 22
     ]
23 23
 );
Please login to merge, or discard this patch.
tests/_support/UnitTester.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
 {
22 22
     use _generated\UnitTesterActions;
23 23
 
24
-   /*
24
+    /*
25 25
     * Define custom actions here
26 26
     */
27 27
 }
Please login to merge, or discard this patch.
tests/_support/ApiTester.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
     use _generated\ApiTesterActions;
24 24
     use RoaTesterTrait;
25 25
 
26
-   /**
27
-    * Define custom actions here
28
-    */
26
+    /**
27
+     * Define custom actions here
28
+     */
29 29
 }
Please login to merge, or discard this patch.
tests/_support/FunctionalTester.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 {
21 21
     use _generated\FunctionalTesterActions;
22 22
 
23
-   /**
24
-    * Define custom actions here
25
-    */
23
+    /**
24
+     * Define custom actions here
25
+     */
26 26
 }
Please login to merge, or discard this patch.
src/models/FieldRule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@
 block discarded – undo
107 107
         return Validator::createValidator(
108 108
             $this->rule_class,
109 109
             $model,
110
-            (array) $attributes,
110
+            (array)$attributes,
111 111
             ArrayHelper::map($this->properties, 'property', 'value')
112 112
         );
113 113
     }
Please login to merge, or discard this patch.
src/models/DataType.php 2 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -57,8 +57,8 @@  discard block
 block discarded – undo
57 57
      */
58 58
     protected function getCastCallable()
59 59
     {
60
-         $values = explode(':', $this->cast, 2);
61
-         return isset($values[1])
60
+            $values = explode(':', $this->cast, 2);
61
+            return isset($values[1])
62 62
              ? [$values[0], $values[1]]
63 63
              : [static::class, $values[0]];
64 64
     }
@@ -71,8 +71,8 @@  discard block
 block discarded – undo
71 71
      */
72 72
     public function castValue(SolicitudeValue $model, $attribute)
73 73
     {
74
-         $callable = $this->getCastCallable();
75
-         $model->$attribute = $callable($model->$attribute, $attribute);
74
+            $callable = $this->getCastCallable();
75
+            $model->$attribute = $callable($model->$attribute, $attribute);
76 76
     }
77 77
 
78 78
     /**
@@ -82,12 +82,12 @@  discard block
 block discarded – undo
82 82
      */
83 83
     public function verifyCast($attribute)
84 84
     {
85
-         if (!is_callable($this->getCastCallable())) {
86
-             $this->addError(
87
-                 $attribute,
88
-                 '`cast` must be an statically callable method.'
89
-             );
90
-         }
85
+            if (!is_callable($this->getCastCallable())) {
86
+                $this->addError(
87
+                    $attribute,
88
+                    '`cast` must be an statically callable method.'
89
+                );
90
+            }
91 91
     }
92 92
 
93 93
     public static function booleanCast($value, $attribute)
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
     {
47 47
         return [
48 48
             [['name', 'label', 'cast'], 'required'],
49
-            [['name', 'label', 'cast',], 'string', 'min' => 4],
49
+            [['name', 'label', 'cast', ], 'string', 'min' => 4],
50 50
             [['name'], 'unique'],
51 51
             [['cast'], 'verifyCast'],
52 52
         ];
Please login to merge, or discard this patch.