Passed
Push — master ( 617e52...ff4e9f )
by Arthur
35:51
created
src/Modules/Script/Support/RsaGenerator.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,8 +21,9 @@
 block discarded – undo
21 21
 
22 22
     public static function generateKeyPair($keySize = 1024): RsaKeyPair
23 23
     {
24
-        if (self::$instance === null)
25
-            self::$instance = new RsaGenerator();
24
+        if (self::$instance === null) {
25
+                    self::$instance = new RsaGenerator();
26
+        }
26 27
 
27 28
         return self::$instance->generate($keySize);
28 29
     }
Please login to merge, or discard this patch.
src/Modules/Script/Services/ScriptService.php 1 patch
Braces   +8 added lines, -6 removed lines patch added patch discarded remove patch
@@ -76,8 +76,9 @@  discard block
 block discarded – undo
76 76
     {
77 77
         $script = $this->resolve($id);
78 78
         $deleted = $script->delete();
79
-        if ($deleted)
80
-            event(new ScriptWasDeletedEvent($script));
79
+        if ($deleted) {
80
+                    event(new ScriptWasDeletedEvent($script));
81
+        }
81 82
         return $deleted;
82 83
     }
83 84
 
@@ -85,10 +86,11 @@  discard block
 block discarded – undo
85 86
     {
86 87
         $script = $this->resolve($id);
87 88
         $releases = $script->releases()->get();
88
-        if ($releases->isEmpty())
89
-            $lastVersion = "0.0.0";
90
-        else
91
-            $lastVersion = $releases->last()->version;
89
+        if ($releases->isEmpty()) {
90
+                    $lastVersion = "0.0.0";
91
+        } else {
92
+                    $lastVersion = $releases->last()->version;
93
+        }
92 94
 
93 95
         $version = new Version($lastVersion);
94 96
 
Please login to merge, or discard this patch.
src/Foundation/Generator/Commands/TestMakeCommand.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,8 +73,9 @@
 block discarded – undo
73 73
     {
74 74
         $type = $this->getType();
75 75
 
76
-        if (in_array($type, $this->types))
77
-            return "test-" . $type . ".stub";
76
+        if (in_array($type, $this->types)) {
77
+                    return "test-" . $type . ".stub";
78
+        }
78 79
 
79 80
         throw new Exception("Test type not supported");
80 81
     }
Please login to merge, or discard this patch.