Passed
Push — master ( 7c1ce7...b66608 )
by Arthur
08:59 queued 11s
created
src/Helpers/MigrationsHelper.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,10 +24,10 @@  discard block
 block discarded – undo
24 24
         $table = '';
25 25
         // make entity lc + underscore
26 26
         $words = preg_split(self::PATTERN_SPLIT_UC, lcfirst($objectName));
27
-        foreach($words as $key => $word)
27
+        foreach ($words as $key => $word)
28 28
         {
29 29
             $table .= $word;
30
-            if(empty($words[$key + 1]) === false)
30
+            if (empty($words[$key + 1]) === false)
31 31
             {
32 32
                 $table .= PhpInterface::UNDERSCORE;
33 33
             }
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
         $table = '';
49 49
         // make entity lc + underscore
50 50
         $words = preg_split(self::PATTERN_MERGE_UC, $tableName);
51
-        foreach($words as $key => $word)
51
+        foreach ($words as $key => $word)
52 52
         {
53 53
             $table .= ucfirst(str_replace(PhpInterface::UNDERSCORE, '', $word));
54 54
         }
Please login to merge, or discard this patch.
src/Types/ConfigInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
     public const CACHE_METHOD         = 'setCacheOptions';
39 39
 
40 40
     // json-api attributes can be in one of: camel-case, snake-case, lisp-case
41
-    public const DEFAULT_CASE  = 'snake-case';
41
+    public const DEFAULT_CASE = 'snake-case';
42 42
     public const CAMEL_CASE = 'camel-case';
43 43
     public const LISP_CASE = 'lisp-case';
44 44
 
Please login to merge, or discard this patch.
src/Extension/BaseJwt.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,12 +29,12 @@
 block discarded – undo
29 29
      */
30 30
     public function handle($request, Closure $next)
31 31
     {
32
-        if(ConfigHelper::getNestedParam(ConfigInterface::JWT, ConfigInterface::ENABLED) === true) {
33
-            if(empty($request->jwt)) {
32
+        if (ConfigHelper::getNestedParam(ConfigInterface::JWT, ConfigInterface::ENABLED) === true) {
33
+            if (empty($request->jwt)) {
34 34
                 die('JWT token required.');
35 35
             }
36 36
             $token = (new Parser())->parse((string)$request->jwt);
37
-            if(Jwt::verify($token) === false) {
37
+            if (Jwt::verify($token) === false) {
38 38
                 header('HTTP/1.1 403 Forbidden');
39 39
                 die('Access forbidden.');
40 40
             }
Please login to merge, or discard this patch.
src/Helpers/SqlOptions.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -16,17 +16,17 @@  discard block
 block discarded – undo
16 16
     /**
17 17
      * @var int
18 18
      */
19
-    public int $id      = 0;
19
+    public int $id = 0;
20 20
 
21 21
     /**
22 22
      * @var int
23 23
      */
24
-    public int $limit   = ModelsInterface::DEFAULT_LIMIT;
24
+    public int $limit = ModelsInterface::DEFAULT_LIMIT;
25 25
 
26 26
     /**
27 27
      * @var int
28 28
      */
29
-    public int $page    = ModelsInterface::DEFAULT_PAGE;
29
+    public int $page = ModelsInterface::DEFAULT_PAGE;
30 30
 
31 31
     /**
32 32
      * @var array
@@ -36,12 +36,12 @@  discard block
 block discarded – undo
36 36
     /**
37 37
      * @var array|string[]
38 38
      */
39
-    public array $data    = ModelsInterface::DEFAULT_DATA;
39
+    public array $data = ModelsInterface::DEFAULT_DATA;
40 40
 
41 41
     /**
42 42
      * @var array
43 43
      */
44
-    public array $filter  = [];
44
+    public array $filter = [];
45 45
 
46 46
     public $formRequest;
47 47
 
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
     {
109 109
         // id must be there anyway
110 110
         $this->data = $data;
111
-        if(\in_array(ModelsInterface::ID, $this->data, true) === false)
111
+        if (\in_array(ModelsInterface::ID, $this->data, true) === false)
112 112
         {
113 113
             $this->data[] = ModelsInterface::ID;
114 114
         }
Please login to merge, or discard this patch.
src/Extension/SpellCheck.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -11,12 +11,12 @@  discard block
 block discarded – undo
11 11
     /**
12 12
      * @var mixed|null
13 13
      */
14
-    private $entity    = [];
14
+    private $entity = [];
15 15
 
16 16
     /**
17 17
      * @var int|string|null
18 18
      */
19
-    private $field     = null;
19
+    private $field = null;
20 20
 
21 21
     /**
22 22
      * @var bool
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
     /**
27 27
      * @var mixed|string
28 28
      */
29
-    private $language  = ConfigInterface::DEFAULT_LANGUAGE;
29
+    private $language = ConfigInterface::DEFAULT_LANGUAGE;
30 30
 
31 31
     /**
32 32
      * @var false|int|null
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
         $this->isEnabled = empty($this->entity[$this->field][ConfigInterface::ENABLED]) ? false : true;
44 44
         $this->language  = empty($this->entity[$this->field][ConfigInterface::LANGUAGE]) ? ConfigInterface::DEFAULT_LANGUAGE
45 45
             : $this->entity[$this->field][ConfigInterface::LANGUAGE];
46
-        if($this->isEnabled === true) {
46
+        if ($this->isEnabled === true) {
47 47
             $this->speLink = pspell_new($this->language, '', '', '', PSPELL_FAST);
48 48
         }
49 49
     }
@@ -59,9 +59,9 @@  discard block
 block discarded – undo
59 59
         $failed = [];
60 60
         $cleanText = $this->cleanText($text);
61 61
         $words     = explode(PhpInterface::SPACE, $cleanText);
62
-        foreach($words as $k => $word) {
62
+        foreach ($words as $k => $word) {
63 63
             $pass = pspell_check($this->speLink, $word);
64
-            if($pass === false) {
64
+            if ($pass === false) {
65 65
                 $failed[] = $word;
66 66
             }
67 67
         }
Please login to merge, or discard this patch.
src/Extension/CustomSql.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
     /**
15 15
      * @var mixed|null
16 16
      */
17
-    private $entity    = [];
17
+    private $entity = [];
18 18
     private $isEnabled;
19 19
 
20 20
     /**
Please login to merge, or discard this patch.
src/Extension/ApiController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
     /**
62 62
      * @var bool
63 63
      */
64
-    private bool $relsRemoved    = false;
64
+    private bool $relsRemoved = false;
65 65
 
66 66
     /**
67 67
      * @var array
Please login to merge, or discard this patch.