Completed
Push — master ( ad21ea...77c158 )
by Marco
05:26
created
src/Actions/ExtenderTask.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 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)) throw new InstallerException('Skipping invalid task in '.$package_name);
73 73
                 
74 74
                 $name = $task['name'];
75 75
                 
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
 
112 112
     private static function validateTask($task) {
113 113
 
114
-        return !( empty($task["name"]) || empty($task["class"]) );
114
+        return !(empty($task["name"]) || empty($task["class"]));
115 115
 
116 116
     }
117 117
 
Please login to merge, or discard this 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/Task.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 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)) throw new InstallerException('Skipping invalid task in '.$package_name);
71 71
                 
72 72
                 $class = $task['class'];
73 73
                 
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 
108 108
     private static function validateTask($task) {
109 109
 
110
-        return !( empty($task["class"]) );
110
+        return !(empty($task["class"]));
111 111
 
112 112
     }
113 113
 
Please login to merge, or discard this 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.
src/Components/Filesystem.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
         
49 49
         foreach ($ri as $file) {
50 50
             
51
-            $targetPath = $target . DIRECTORY_SEPARATOR . $ri->getSubPathName();
51
+            $targetPath = $target.DIRECTORY_SEPARATOR.$ri->getSubPathName();
52 52
             
53 53
             if ($file->isDir()) {
54 54
                 
Please login to merge, or discard this patch.
src/Plugin.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 
36 36
         $this->loadInstallerConfig($composer);
37 37
 
38
-        if ( !$this->loadStaticConfiguration($composer) ) {
38
+        if (!$this->loadStaticConfiguration($composer)) {
39 39
 
40 40
             $this->getIO()->write('<comment>Comodojo configuration not (yet) available.</comment>');
41 41
             
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
             'local-database' => 'database'
70 70
         );
71 71
 
72
-        if ( isset($extra['comodojo-installer-paths']) && is_array($extra['comodojo-installer-paths']) ) {
72
+        if (isset($extra['comodojo-installer-paths']) && is_array($extra['comodojo-installer-paths'])) {
73 73
 
74 74
             $installer_config = array_replace($installer_default_config, $extra['comodojo-installer-paths']);
75 75
 
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
 
100 100
         $config_file = COMODOJO_INSTALLER_WORKING_DIRECTORY.COMODOJO_INSTALLER_STATIC_CONFIG.'/config.php';
101 101
 
102
-        if ( is_file($config_file) && is_readable($config_file) ) {
102
+        if (is_file($config_file) && is_readable($config_file)) {
103 103
 
104 104
             include_once($config_file);
105 105
 
Please login to merge, or discard this patch.
src/Properties/Parser.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
 
40 40
         foreach (SupportedTypes::getActions($type) as $field => $action) {
41 41
 
42
-            if ( isset($extra[$field]) ) $map[$action] = $extra[$field];
42
+            if (isset($extra[$field])) $map[$action] = $extra[$field];
43 43
 
44 44
         }
45 45
 
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,9 @@
 block discarded – undo
39 39
 
40 40
         foreach (SupportedTypes::getActions($type) as $field => $action) {
41 41
 
42
-            if ( isset($extra[$field]) ) $map[$action] = $extra[$field];
42
+            if ( isset($extra[$field]) ) {
43
+                $map[$action] = $extra[$field];
44
+            }
43 45
 
44 46
         }
45 47
 
Please login to merge, or discard this patch.
src/Registry/SupportedTypes.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -33,22 +33,22 @@  discard block
 block discarded – undo
33 33
             "extender-plugin-load" => "ExtenderPlugin"
34 34
         ),
35 35
 
36
-	    'extender-tasks-bundle' => array(
36
+        'extender-tasks-bundle' => array(
37 37
             "comodojo-tasks-register" => "ExtenderTask",
38 38
             "extender-task-register" => "ExtenderTask"
39 39
         ),
40 40
 
41
-	    'extender-commands-bundle' => array(
41
+        'extender-commands-bundle' => array(
42 42
             "comodojo-commands-register" => "Command",
43 43
             "extender-command-register" => "Command"
44 44
         ),
45 45
 
46
-	    'dispatcher-plugin' => array(
46
+        'dispatcher-plugin' => array(
47 47
             "comodojo-plugin-load" => "DispatcherPlugin",
48 48
             "dispatcher-plugin-load" => "DispatcherPlugin"
49 49
         ),
50 50
 
51
-	    'dispatcher-service-bundle' => array(
51
+        'dispatcher-service-bundle' => array(
52 52
             "comodojo-service-route" => "Service",
53 53
             "dispatcher-service-route" => "Service"
54 54
         ),
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
             "comodojo-authentication-register" => "Authentication"
68 68
         ),
69 69
 
70
-	    'comodojo-bundle' => array(
70
+        'comodojo-bundle' => array(
71 71
             "dispatcher-plugin-load" => "DispatcherPlugin",
72 72
             "dispatcher-service-route" => "Service",
73 73
             "extender-plugin-load" => "ExtenderPlugin",
Please login to merge, or discard this patch.
src/Scripts/StaticConfigurationDumper.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
         'COMODOJO_DATABASE_PREFIX' => "cmdj_"
38 38
     );
39 39
     
40
-    public function __construct( $parameters = array() ) {
40
+    public function __construct($parameters = array()) {
41 41
         
42 42
         $this->set('COMODOJO_REAL_PATH', COMODOJO_INSTALLER_WORKING_DIRECTORY);
43 43
         $this->set('COMODOJO_STATIC_CONFIG', COMODOJO_INSTALLER_WORKING_DIRECTORY.'/'.COMODOJO_INSTALLER_STATIC_CONFIG);
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
         $this->set('COMODOJO_PRIV_KEY', self::generateKey());
52 52
         
53 53
         
54
-        foreach( $parameters as $parameter => $value ) {
54
+        foreach ($parameters as $parameter => $value) {
55 55
             
56 56
             $this->set($parameter, $value);
57 57
             
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
 
100 100
         $action = file_put_contents($config_file, $template, LOCK_EX);
101 101
 
102
-        if ( $action === false ) throw new InstallerException("Cannot write comodojo-config file!");
102
+        if ($action === false) throw new InstallerException("Cannot write comodojo-config file!");
103 103
 
104 104
         return true;
105 105
 
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
 
112 112
         $template = file_get_contents($template_file);
113 113
 
114
-        if ( $template === false ) throw new InstallerException("Cannot read comodojo-config template!");
114
+        if ($template === false) throw new InstallerException("Cannot read comodojo-config template!");
115 115
 
116 116
         return $template;
117 117
 
Please login to merge, or discard this patch.
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -99,7 +99,9 @@  discard block
 block discarded – undo
99 99
 
100 100
         $action = file_put_contents($config_file, $template, LOCK_EX);
101 101
 
102
-        if ( $action === false ) throw new InstallerException("Cannot write comodojo-config file!");
102
+        if ( $action === false ) {
103
+            throw new InstallerException("Cannot write comodojo-config file!");
104
+        }
103 105
 
104 106
         return true;
105 107
 
@@ -111,7 +113,9 @@  discard block
 block discarded – undo
111 113
 
112 114
         $template = file_get_contents($template_file);
113 115
 
114
-        if ( $template === false ) throw new InstallerException("Cannot read comodojo-config template!");
116
+        if ( $template === false ) {
117
+            throw new InstallerException("Cannot read comodojo-config template!");
118
+        }
115 119
 
116 120
         return $template;
117 121
 
Please login to merge, or discard this patch.