Passed
Push — master ( 8b9923...b95d07 )
by Mostafa
03:05 queued 36s
created
src/LaraCache.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -30,8 +30,7 @@  discard block
 block discarded – undo
30 30
     {
31 31
         if ($model) {
32 32
             $model::cache()->updateAll();
33
-        }
34
-        else {
33
+        } else {
35 34
             $list = self::list();
36 35
 
37 36
             /** @var mixed $model */
@@ -64,8 +63,7 @@  discard block
 block discarded – undo
64 63
     {
65 64
         if ($model) {
66 65
             $model::cache()->deleteAll($forever);
67
-        }
68
-        else {
66
+        } else {
69 67
             $list = self::list();
70 68
 
71 69
             /** @var mixed $model */
Please login to merge, or discard this patch.
src/Utils/CacheEnum.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 
5 5
 abstract class CacheEnum
6 6
 {
7
-    public function __construct(protected int|string $value) {}
7
+    public function __construct(protected int | string $value) {}
8 8
 
9 9
     public static function __callStatic(string $name, array $arguments): self
10 10
     {
Please login to merge, or discard this patch.
src/Traits/InteractsWithCache.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -78,12 +78,10 @@
 block discarded – undo
78 78
                 if (!in_array($name, $list[$this->model])) {
79 79
                     $list[$this->model][] = $name;
80 80
                 }
81
-            }
82
-            else {
81
+            } else {
83 82
                 $list[$this->model] = [$name];
84 83
             }
85
-        }
86
-        else {
84
+        } else {
87 85
             $list = [
88 86
                 $this->model => [$name]
89 87
             ];
Please login to merge, or discard this patch.
src/Cache.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,8 +55,7 @@
 block discarded – undo
55 55
             foreach ($this->model::cacheEntities() as $entity) {
56 56
                 if ($entity->isQueueable) {
57 57
                     RefreshCache::dispatch($this->model, $entity->name, $event);
58
-                }
59
-                else {
58
+                } else {
60 59
                     $this->updateCacheEntity($entity->name, $event, $entity);
61 60
                 }
62 61
             }
Please login to merge, or discard this patch.