Passed
Pull Request — 2.x (#1446)
by Harings
13:09
created
src/Http/Controllers/Admin/ModuleController.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1691,8 +1691,7 @@
 block discarded – undo
1691 1691
 
1692 1692
         try {
1693 1693
             return TwillCapsules::getCapsuleForModel($this->modelName)->getViewPrefix();
1694
-        }
1695
-        catch (NoCapsuleFoundException $e) {
1694
+        } catch (NoCapsuleFoundException $e) {
1696 1695
             return null;
1697 1696
         }
1698 1697
     }
Please login to merge, or discard this patch.
src/Commands/CapsuleInstall.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -217,8 +217,7 @@
 block discarded – undo
217 217
             $this->error('A capsule with this name already exists!');
218 218
 
219 219
             return false;
220
-        }
221
-        catch (NoCapsuleFoundException $e) {}
220
+        } catch (NoCapsuleFoundException $e) {}
222 221
 
223 222
         if ($this->directoryExists()) {
224 223
             $this->error(
Please login to merge, or discard this patch.
src/Commands/ModuleMake.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -295,8 +295,7 @@  discard block
 block discarded – undo
295 295
         if ($this->isCapsule) {
296 296
             if ($this->isSingleton) {
297 297
                 $this->createCapsuleSingletonSeeder();
298
-            }
299
-            else {
298
+            } else {
300 299
                 $this->createCapsuleSeed();
301 300
             }
302 301
             $this->createCapsuleRoutes();
@@ -935,8 +934,7 @@  discard block
 block discarded – undo
935 934
     {
936 935
         if ($this->customDirs) {
937 936
             $this->makeDir($path);
938
-        }
939
-        else {
937
+        } else {
940 938
             make_twill_directory($path);
941 939
         }
942 940
     }
@@ -951,8 +949,7 @@  discard block
 block discarded – undo
951 949
             );
952 950
 
953 951
             file_put_contents($path, $stub);
954
-        }
955
-        else {
952
+        } else {
956 953
             twill_put_stub($path, $stub);
957 954
         }
958 955
     }
Please login to merge, or discard this patch.