Completed
Push — master ( ad21ea...77c158 )
by Marco
05:26
created
src/Actions/Authentication.php 1 patch
Braces   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -97,7 +97,9 @@  discard block
 block discarded – undo
97 97
         
98 98
         try {
99 99
 
100
-            if ( !self::validateProvider($configuration) ) throw new InstallerException('Skipping invalid authentication provider '.$provider.' in '.$package_name);
100
+            if ( !self::validateProvider($configuration) ) {
101
+                throw new InstallerException('Skipping invalid authentication provider '.$provider.' in '.$package_name);
102
+            }
101 103
 
102 104
             $class = $configuration['class'];
103 105
             
@@ -119,7 +121,9 @@  discard block
 block discarded – undo
119 121
         
120 122
         try {
121 123
 
122
-            if ( !self::validateProvider($configuration) ) throw new InstallerException('Skipping invalid authentication provider '.$provider.' in '.$package_name);
124
+            if ( !self::validateProvider($configuration) ) {
125
+                throw new InstallerException('Skipping invalid authentication provider '.$provider.' in '.$package_name);
126
+            }
123 127
             
124 128
             $id = $this->getPackageInstaller()->authentication()->getByName($provider)->getId();
125 129
 
@@ -139,7 +143,9 @@  discard block
 block discarded – undo
139 143
         
140 144
         try {
141 145
 
142
-            if ( !self::validateProvider($configuration) ) throw new InstallerException('Skipping invalid authentication provider '.$provider.' in '.$package_name);
146
+            if ( !self::validateProvider($configuration) ) {
147
+                throw new InstallerException('Skipping invalid authentication provider '.$provider.' in '.$package_name);
148
+            }
143 149
 
144 150
             $class = $configuration['class'];
145 151
             
Please login to merge, or discard this patch.
src/Actions/Command.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,9 @@
 block discarded – undo
67 67
             
68 68
             try {
69 69
 
70
-                if ( !self::validateCommand($actions) ) throw new InstallerException('Skipping invalid command '.$command.' in '.$package_name);
70
+                if ( !self::validateCommand($actions) ) {
71
+                    throw new InstallerException('Skipping invalid command '.$command.' in '.$package_name);
72
+                }
71 73
                 
72 74
                 $class = $actions["class"];
73 75
 
Please login to merge, or discard this patch.
src/Actions/DispatcherPlugin.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,9 @@
 block discarded – undo
66 66
 
67 67
             try {
68 68
 
69
-                if ( !self::validatePlugin($configuration) ) throw new InstallerException('Skipping invalid plugin in '.$package_name);
69
+                if ( !self::validatePlugin($configuration) ) {
70
+                    throw new InstallerException('Skipping invalid plugin in '.$package_name);
71
+                }
70 72
 
71 73
                 $plugin_name = $package_name.'-dispatcher-'.$plugin;
72 74
                 
Please login to merge, or discard this patch.
src/Actions/ExtenderPlugin.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,9 @@
 block discarded – undo
66 66
 
67 67
             try {
68 68
 
69
-                if ( !self::validatePlugin($configuration) ) throw new InstallerException('Skipping invalid plugin in '.$package_name);
69
+                if ( !self::validatePlugin($configuration) ) {
70
+                    throw new InstallerException('Skipping invalid plugin in '.$package_name);
71
+                }
70 72
 
71 73
                 $plugin_name = $package_name.'-extender-'.$plugin;
72 74
                 
Please login to merge, or discard this patch.
src/Actions/ExtenderTask.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,9 @@
 block discarded – undo
69 69
 
70 70
             try {
71 71
 
72
-                if ( !self::validateTask($task) ) throw new InstallerException('Skipping invalid task in '.$package_name);
72
+                if ( !self::validateTask($task) ) {
73
+                    throw new InstallerException('Skipping invalid task in '.$package_name);
74
+                }
73 75
                 
74 76
                 $name = $task['name'];
75 77
                 
Please login to merge, or discard this patch.
src/Actions/Rpc.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,9 @@
 block discarded – undo
67 67
 
68 68
             try {
69 69
 
70
-                if ( !self::validateRpc($rpc) ) throw new InstallerException('Skipping invalid rpc service in '.$package_name);
70
+                if ( !self::validateRpc($rpc) ) {
71
+                    throw new InstallerException('Skipping invalid rpc service in '.$package_name);
72
+                }
71 73
                 
72 74
                 $callback = $rpc['callback'];
73 75
                 
Please login to merge, or discard this patch.
src/Actions/Service.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,9 @@
 block discarded – undo
66 66
 
67 67
             try {
68 68
 
69
-                if ( !self::validateService($service) ) throw new InstallerException('Skipping invalid service in '.$package_name);
69
+                if ( !self::validateService($service) ) {
70
+                    throw new InstallerException('Skipping invalid service in '.$package_name);
71
+                }
70 72
 
71 73
                 $route = $service["route"];
72 74
                 
Please login to merge, or discard this patch.
src/Actions/Setting.php 1 patch
Braces   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -97,7 +97,9 @@  discard block
 block discarded – undo
97 97
         
98 98
         try {
99 99
 
100
-            if ( !self::validateSetting($value) ) throw new InstallerException('Skipping invalid setting '.$setting.' in '.$package_name);
100
+            if ( !self::validateSetting($value) ) {
101
+                throw new InstallerException('Skipping invalid setting '.$setting.' in '.$package_name);
102
+            }
101 103
 
102 104
             $this->getPackageInstaller()->settings()->add($package_name, $setting, $value);
103 105
 
@@ -115,7 +117,9 @@  discard block
 block discarded – undo
115 117
         
116 118
         try {
117 119
 
118
-            if ( !self::validateSetting($value) ) throw new InstallerException('Skipping invalid setting '.$setting.' in '.$package_name);
120
+            if ( !self::validateSetting($value) ) {
121
+                throw new InstallerException('Skipping invalid setting '.$setting.' in '.$package_name);
122
+            }
119 123
 
120 124
             $id = $this->getPackageInstaller()->settings()->getByName($setting)->getId();
121 125
 
@@ -135,7 +139,9 @@  discard block
 block discarded – undo
135 139
         
136 140
         try {
137 141
 
138
-            if ( !self::validateSetting($value) ) throw new InstallerException('Skipping invalid setting '.$setting.' in '.$package_name);
142
+            if ( !self::validateSetting($value) ) {
143
+                throw new InstallerException('Skipping invalid setting '.$setting.' in '.$package_name);
144
+            }
139 145
 
140 146
             $old = $this->getPackageInstaller()->settings()->getByName($setting);
141 147
             
Please login to merge, or discard this patch.
src/Actions/Task.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,9 @@
 block discarded – undo
67 67
 
68 68
             try {
69 69
 
70
-                if ( !self::validateTask($task) ) throw new InstallerException('Skipping invalid task in '.$package_name);
70
+                if ( !self::validateTask($task) ) {
71
+                    throw new InstallerException('Skipping invalid task in '.$package_name);
72
+                }
71 73
                 
72 74
                 $class = $task['class'];
73 75
                 
Please login to merge, or discard this patch.