Passed
Push — develop ( 4dc76b...2c7220 )
by Jesús
01:48
created
Commands/MakeServiceCommand.php 1 patch
Braces   +8 added lines, -3 removed lines patch added patch discarded remove patch
@@ -66,15 +66,20 @@
 block discarded – undo
66 66
 
67 67
             $repository = $this->confirm('Do you want to inject a repository to this service?', false);
68 68
 
69
-            if ( $repository ) $repository = $this->ask('Please specify the full interface (with namespace) for the repository that you want to inject (ie: MyApp\Repositories\MyRepositoryInterface)');
70
-            else $repository = FALSE;
69
+            if ( $repository ) {
70
+                $repository = $this->ask('Please specify the full interface (with namespace) for the repository that you want to inject (ie: MyApp\Repositories\MyRepositoryInterface)');
71
+            } else {
72
+                $repository = FALSE;
73
+            }
71 74
 
72 75
             $validator = $this->confirm('Do you want to create and inject a validator for this service?', true);
73 76
 
74 77
             $this->populateValuesForProperties( $service, $folder, $group, $repository, $validator );
75 78
 
76 79
             // Create validator, if it proceeds.
77
-            if ( $validator ) $this->createValidatorWithInterface();
80
+            if ( $validator ) {
81
+                $this->createValidatorWithInterface();
82
+            }
78 83
 
79 84
             // Create service.
80 85
             $this->createServiceWithInterface();
Please login to merge, or discard this patch.