@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | |
| 68 | 68 | try { |
| 69 | 69 | |
| 70 | - if ( !self::validateTheme($configuration) ) throw new InstallerException('Skipping invalid theme in '.$package_name); |
|
| 70 | + if (!self::validateTheme($configuration)) throw new InstallerException('Skipping invalid theme in '.$package_name); |
|
| 71 | 71 | |
| 72 | 72 | $assets = $configuration['assets']; |
| 73 | 73 | |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | |
| 116 | 116 | private static function validateTheme($theme) { |
| 117 | 117 | |
| 118 | - return !( empty($theme['assets']) ); |
|
| 118 | + return !(empty($theme['assets'])); |
|
| 119 | 119 | |
| 120 | 120 | } |
| 121 | 121 | |
@@ -48,7 +48,7 @@ |
||
| 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 | |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | |
| 102 | 102 | foreach ($actions_map as $action_class => $extra) { |
| 103 | 103 | |
| 104 | - $action_fqcn = 'Comodojo\\Installer\\Actions\\' . $action_class; |
|
| 104 | + $action_fqcn = 'Comodojo\\Installer\\Actions\\'.$action_class; |
|
| 105 | 105 | |
| 106 | 106 | $action = new $action_fqcn($this->composer, $this->io, $package_path, $installer); |
| 107 | 107 | |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | |
| 124 | 124 | foreach ($actions_map as $action_class => $extra) { |
| 125 | 125 | |
| 126 | - $action_fqcn = 'Comodojo\\Installer\\Actions\\' . $action_class; |
|
| 126 | + $action_fqcn = 'Comodojo\\Installer\\Actions\\'.$action_class; |
|
| 127 | 127 | |
| 128 | 128 | $action = new $action_fqcn($this->composer, $this->io, $package_path, $installer); |
| 129 | 129 | |
@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | |
| 162 | 162 | foreach ($uninstall as $action_uninstall) { |
| 163 | 163 | |
| 164 | - $action_fqcn = 'Comodojo\\Installer\\Actions\\' . $action_uninstall; |
|
| 164 | + $action_fqcn = 'Comodojo\\Installer\\Actions\\'.$action_uninstall; |
|
| 165 | 165 | |
| 166 | 166 | $action = new $action_fqcn($this->composer, $this->io, $initial_package_path, $installer); |
| 167 | 167 | |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | |
| 172 | 172 | foreach ($install as $action_install) { |
| 173 | 173 | |
| 174 | - $action_fqcn = 'Comodojo\\Installer\\Actions\\' . $action_install; |
|
| 174 | + $action_fqcn = 'Comodojo\\Installer\\Actions\\'.$action_install; |
|
| 175 | 175 | |
| 176 | 176 | $action = new $action_fqcn($this->composer, $this->io, $target_package_path, $installer); |
| 177 | 177 | |
@@ -181,7 +181,7 @@ discard block |
||
| 181 | 181 | |
| 182 | 182 | foreach ($update as $action_update) { |
| 183 | 183 | |
| 184 | - $action_fqcn = 'Comodojo\\Installer\\Actions\\' . $action_update; |
|
| 184 | + $action_fqcn = 'Comodojo\\Installer\\Actions\\'.$action_update; |
|
| 185 | 185 | |
| 186 | 186 | $action = new $action_fqcn($this->composer, $this->io, $target_package_path, $installer); |
| 187 | 187 | |
@@ -35,7 +35,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 | |
@@ -39,7 +39,7 @@ |
||
| 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 | |
@@ -37,7 +37,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | |