@@ -25,12 +25,12 @@ discard block |
||
| 25 | 25 | if (!in_array('project', $columns)) { |
| 26 | 26 | // the class table object name |
| 27 | 27 | if ($manager->addField('BlendMigrations', 'project', ['after' => 'id'])) { |
| 28 | - $this->blender->outSuccess('The project column was add to the BlendMigrations class (' . |
|
| 29 | - $this->modx->getTableName('BlendMigrations') . ') successfully'); |
|
| 28 | + $this->blender->outSuccess('The project column was add to the BlendMigrations class ('. |
|
| 29 | + $this->modx->getTableName('BlendMigrations').') successfully'); |
|
| 30 | 30 | |
| 31 | 31 | } else { |
| 32 | - $this->blender->out('The project column was not added to the BlendMigrations class (' . |
|
| 33 | - $this->modx->getTableName('BlendMigrations') . ') successfully', true); |
|
| 32 | + $this->blender->out('The project column was not added to the BlendMigrations class ('. |
|
| 33 | + $this->modx->getTableName('BlendMigrations').') successfully', true); |
|
| 34 | 34 | } |
| 35 | 35 | } |
| 36 | 36 | |
@@ -38,12 +38,12 @@ discard block |
||
| 38 | 38 | if (!in_array('ran_sequence', $columns)) { |
| 39 | 39 | // the class table object name |
| 40 | 40 | if ($manager->addField('BlendMigrations', 'ran_sequence', ['after' => 'processed_at'])) { |
| 41 | - $this->blender->outSuccess('The ran_sequence column was add to the BlendMigrations class (' . |
|
| 42 | - $this->modx->getTableName('BlendMigrations') . ') successfully'); |
|
| 41 | + $this->blender->outSuccess('The ran_sequence column was add to the BlendMigrations class ('. |
|
| 42 | + $this->modx->getTableName('BlendMigrations').') successfully'); |
|
| 43 | 43 | |
| 44 | 44 | } else { |
| 45 | - $this->blender->out('The author ran_sequence was not added to the BlendMigrations class (' . |
|
| 46 | - $this->modx->getTableName('BlendMigrations') . ') successfully', true); |
|
| 45 | + $this->blender->out('The author ran_sequence was not added to the BlendMigrations class ('. |
|
| 46 | + $this->modx->getTableName('BlendMigrations').') successfully', true); |
|
| 47 | 47 | } |
| 48 | 48 | } |
| 49 | 49 | |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | $this->modx->cacheManager->refresh(); |
| 83 | 83 | |
| 84 | 84 | $previous_version = $this->modx->getOption('blend.version'); |
| 85 | - if (!$previous_version || version_compare($this->getVersion(), $previous_version, '>') ) { |
|
| 85 | + if (!$previous_version || version_compare($this->getVersion(), $previous_version, '>')) { |
|
| 86 | 86 | |
| 87 | 87 | /** @var \xPDOManager $manager */ |
| 88 | 88 | $manager = $this->modx->getManager(); |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | { |
| 104 | 104 | $columns = []; |
| 105 | 105 | |
| 106 | - $rs = $this->modx->query('SELECT * FROM ' . $this->modx->getTableName('BlendMigrations') . ' LIMIT 0'); |
|
| 106 | + $rs = $this->modx->query('SELECT * FROM '.$this->modx->getTableName('BlendMigrations').' LIMIT 0'); |
|
| 107 | 107 | for ($i = 0; $i < $rs->columnCount(); $i++) { |
| 108 | 108 | $col = $rs->getColumnMeta($i); |
| 109 | 109 | $columns[] = $col['name']; |
@@ -24,12 +24,12 @@ discard block |
||
| 24 | 24 | |
| 25 | 25 | if (!in_array('author', $columns)) { |
| 26 | 26 | if ($manager->addField('BlendMigrations', 'author', ['after' => 'status'])) { |
| 27 | - $this->blender->outSuccess('The author column was add to the BlendMigrations class (' . |
|
| 28 | - $this->modx->getTableName('BlendMigrations') . ') successfully'); |
|
| 27 | + $this->blender->outSuccess('The author column was add to the BlendMigrations class ('. |
|
| 28 | + $this->modx->getTableName('BlendMigrations').') successfully'); |
|
| 29 | 29 | |
| 30 | 30 | } else { |
| 31 | - $this->blender->out('The author column was not added to the BlendMigrations class (' . |
|
| 32 | - $this->modx->getTableName('BlendMigrations') . ') successfully', true); |
|
| 31 | + $this->blender->out('The author column was not added to the BlendMigrations class ('. |
|
| 32 | + $this->modx->getTableName('BlendMigrations').') successfully', true); |
|
| 33 | 33 | } |
| 34 | 34 | } |
| 35 | 35 | |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | $this->modx->cacheManager->refresh(); |
| 62 | 62 | |
| 63 | 63 | $previous_version = $this->modx->getOption('blend.version'); |
| 64 | - if (!$previous_version || version_compare($this->getVersion(), $previous_version, '>') ) { |
|
| 64 | + if (!$previous_version || version_compare($this->getVersion(), $previous_version, '>')) { |
|
| 65 | 65 | |
| 66 | 66 | /** @var \xPDOManager $manager */ |
| 67 | 67 | $manager = $this->modx->getManager(); |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | { |
| 83 | 83 | $columns = []; |
| 84 | 84 | |
| 85 | - $rs = $this->modx->query('SELECT * FROM ' . $this->modx->getTableName('BlendMigrations') . ' LIMIT 0'); |
|
| 85 | + $rs = $this->modx->query('SELECT * FROM '.$this->modx->getTableName('BlendMigrations').' LIMIT 0'); |
|
| 86 | 86 | for ($i = 0; $i < $rs->columnCount(); $i++) { |
| 87 | 87 | $col = $rs->getColumnMeta($i); |
| 88 | 88 | $columns[] = $col['name']; |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | // 1. Get all migrations currently in DB: |
| 138 | 138 | $blendMigrations = $this->getBlendMigrationCollection(); |
| 139 | 139 | |
| 140 | - $this->out('Searching directory for Migration classes ' . $this->blender->getMigrationPath()); |
|
| 140 | + $this->out('Searching directory for Migration classes '.$this->blender->getMigrationPath()); |
|
| 141 | 141 | |
| 142 | 142 | $loaded_migrations = []; |
| 143 | 143 | $reload = false; |
@@ -211,13 +211,13 @@ discard block |
||
| 211 | 211 | $migration->{$this->migration_method}(); |
| 212 | 212 | |
| 213 | 213 | $migrationLog->set('ran_sequence', $this->getRanSequence((int)$migrationLog->get('ran_sequence'))); |
| 214 | - $migrationLog->set('status', $this->migration_method . '_complete'); |
|
| 214 | + $migrationLog->set('status', $this->migration_method.'_complete'); |
|
| 215 | 215 | $migrationLog->set('processed_at', date('Y-m-d H:i:s')); |
| 216 | 216 | $migrationLog->save(); |
| 217 | 217 | |
| 218 | 218 | } else { |
| 219 | 219 | // error |
| 220 | - throw new MigratorException('Class: ' . $name .' is not an instance of LCI\BLend\Migrations'); |
|
| 220 | + throw new MigratorException('Class: '.$name.' is not an instance of LCI\BLend\Migrations'); |
|
| 221 | 221 | } |
| 222 | 222 | } |
| 223 | 223 | } |
@@ -244,7 +244,7 @@ discard block |
||
| 244 | 244 | /** @var \BlendMigrations $migrationLog */ |
| 245 | 245 | $migrationLog = $logged_migrations[$name]; |
| 246 | 246 | $migrationLog->set('ran_sequence', $this->getRanSequence($migrationLog->get('ran_sequence'))); |
| 247 | - $migrationLog->set('status', $this->migration_method . '_complete'); |
|
| 247 | + $migrationLog->set('status', $this->migration_method.'_complete'); |
|
| 248 | 248 | $migrationLog->set('processed_at', date('Y-m-d H:i:s')); |
| 249 | 249 | $migrationLog->save(); |
| 250 | 250 | |
@@ -256,7 +256,7 @@ discard block |
||
| 256 | 256 | 'description' => $migration->getDescription(), |
| 257 | 257 | 'type' => $migration->getType(), |
| 258 | 258 | 'version' => $migration->getVersion(), |
| 259 | - 'status' => $this->migration_method . '_complete', |
|
| 259 | + 'status' => $this->migration_method.'_complete', |
|
| 260 | 260 | 'ran_sequence' => $this->getRanSequence(), |
| 261 | 261 | 'processed_at' => date('Y-m-d H:i:s') |
| 262 | 262 | ]); |
@@ -315,7 +315,7 @@ discard block |
||
| 315 | 315 | ($this->migration_method == 'up' && $status == 'up_complete') || |
| 316 | 316 | ($this->migration_method == 'down' && $status != 'up_complete') |
| 317 | 317 | ) { |
| 318 | - $this->out('canRunMigrationVerifyLog() Failed' . __LINE__, OutputInterface::VERBOSITY_DEBUG); |
|
| 318 | + $this->out('canRunMigrationVerifyLog() Failed'.__LINE__, OutputInterface::VERBOSITY_DEBUG); |
|
| 319 | 319 | $can = false; |
| 320 | 320 | } |
| 321 | 321 | |
@@ -361,7 +361,7 @@ discard block |
||
| 361 | 361 | } |
| 362 | 362 | $query->prepare(); |
| 363 | 363 | |
| 364 | - $this->out(__METHOD__ .':: sql: ' . $query->toSQL(), OutputInterface::VERBOSITY_DEBUG); |
|
| 364 | + $this->out(__METHOD__.':: sql: '.$query->toSQL(), OutputInterface::VERBOSITY_DEBUG); |
|
| 365 | 365 | |
| 366 | 366 | $migrationCollection = $this->modx->getCollection($this->blender->getBlendClassObject(), $query); |
| 367 | 367 | |
@@ -379,7 +379,7 @@ discard block |
||
| 379 | 379 | * @param int $ran_sequence |
| 380 | 380 | * @return int|mixed |
| 381 | 381 | */ |
| 382 | - protected function getRanSequence(int $ran_sequence=0) |
|
| 382 | + protected function getRanSequence(int $ran_sequence = 0) |
|
| 383 | 383 | { |
| 384 | 384 | if ($this->migration_method == 'up') { |
| 385 | 385 | /** @var \xPDOQuery $query */ |
@@ -442,7 +442,7 @@ discard block |
||
| 442 | 442 | * @param string $message |
| 443 | 443 | * @param int $verbose |
| 444 | 444 | */ |
| 445 | - protected function out($message, $verbose=OutputInterface::VERBOSITY_NORMAL) |
|
| 445 | + protected function out($message, $verbose = OutputInterface::VERBOSITY_NORMAL) |
|
| 446 | 446 | { |
| 447 | 447 | if ($this->verbose >= $verbose) { |
| 448 | 448 | $this->blender->out($message); |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | */ |
| 97 | 97 | public function setMigrationsPath($path, $append = false) |
| 98 | 98 | { |
| 99 | - $this->migrations_path = rtrim($path, '\/\\') . DIRECTORY_SEPARATOR; |
|
| 99 | + $this->migrations_path = rtrim($path, '\/\\').DIRECTORY_SEPARATOR; |
|
| 100 | 100 | |
| 101 | 101 | if (file_exists($path) && $append) { |
| 102 | 102 | if (!file_exists($path.'database')) { |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | */ |
| 123 | 123 | public function setSeedsPath($path, $append = false) |
| 124 | 124 | { |
| 125 | - $this->seeds_path = rtrim($path, '\/\\') . DIRECTORY_SEPARATOR; |
|
| 125 | + $this->seeds_path = rtrim($path, '\/\\').DIRECTORY_SEPARATOR; |
|
| 126 | 126 | |
| 127 | 127 | if (file_exists($path) && $append) { |
| 128 | 128 | if (!file_exists($path.'database')) { |
@@ -460,7 +460,7 @@ discard block |
||
| 460 | 460 | * @param int $verbose |
| 461 | 461 | * @param bool $error |
| 462 | 462 | */ |
| 463 | - public function out($message, $verbose=Blender::VERBOSITY_NORMAL, $error = false) |
|
| 463 | + public function out($message, $verbose = Blender::VERBOSITY_NORMAL, $error = false) |
|
| 464 | 464 | { |
| 465 | 465 | if ($this->getVerbose() >= $verbose) { |
| 466 | 466 | if ($error) { |
@@ -475,7 +475,7 @@ discard block |
||
| 475 | 475 | * @param string $message |
| 476 | 476 | * @param int $verbose |
| 477 | 477 | */ |
| 478 | - public function outError($message, $verbose=Blender::VERBOSITY_NORMAL) |
|
| 478 | + public function outError($message, $verbose = Blender::VERBOSITY_NORMAL) |
|
| 479 | 479 | { |
| 480 | 480 | if ($this->getVerbose() >= $verbose) { |
| 481 | 481 | $this->userInteractionHandler->tellUser($message, userInteractionHandler::MASSAGE_ERROR); |
@@ -1,11 +1,11 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -$xpdo_meta_map['BlendMigrations']= array ( |
|
| 2 | +$xpdo_meta_map['BlendMigrations'] = array( |
|
| 3 | 3 | 'package' => 'blend', |
| 4 | 4 | 'version' => '1.1', |
| 5 | 5 | 'table' => 'blend_migrations', |
| 6 | 6 | 'extends' => 'xPDOSimpleObject', |
| 7 | 7 | 'fields' => |
| 8 | - array ( |
|
| 8 | + array( |
|
| 9 | 9 | 'project' => 'local', |
| 10 | 10 | 'name' => NULL, |
| 11 | 11 | 'version' => NULL, |
@@ -18,9 +18,9 @@ discard block |
||
| 18 | 18 | 'ran_sequence' => NULL, |
| 19 | 19 | ), |
| 20 | 20 | 'fieldMeta' => |
| 21 | - array ( |
|
| 21 | + array( |
|
| 22 | 22 | 'project' => |
| 23 | - array ( |
|
| 23 | + array( |
|
| 24 | 24 | 'dbtype' => 'varchar', |
| 25 | 25 | 'precision' => '255', |
| 26 | 26 | 'phptype' => 'string', |
@@ -28,21 +28,21 @@ discard block |
||
| 28 | 28 | 'default' => 'local', |
| 29 | 29 | ), |
| 30 | 30 | 'name' => |
| 31 | - array ( |
|
| 31 | + array( |
|
| 32 | 32 | 'dbtype' => 'varchar', |
| 33 | 33 | 'precision' => '255', |
| 34 | 34 | 'phptype' => 'string', |
| 35 | 35 | 'null' => false, |
| 36 | 36 | ), |
| 37 | 37 | 'version' => |
| 38 | - array ( |
|
| 38 | + array( |
|
| 39 | 39 | 'dbtype' => 'varchar', |
| 40 | 40 | 'precision' => '32', |
| 41 | 41 | 'phptype' => 'string', |
| 42 | 42 | 'null' => true, |
| 43 | 43 | ), |
| 44 | 44 | 'type' => |
| 45 | - array ( |
|
| 45 | + array( |
|
| 46 | 46 | 'dbtype' => 'set', |
| 47 | 47 | 'precision' => '\'master\',\'stagging\',\'dev\',\'local\'', |
| 48 | 48 | 'phptype' => 'string', |
@@ -50,13 +50,13 @@ discard block |
||
| 50 | 50 | 'default' => 'master', |
| 51 | 51 | ), |
| 52 | 52 | 'description' => |
| 53 | - array ( |
|
| 53 | + array( |
|
| 54 | 54 | 'dbtype' => 'text', |
| 55 | 55 | 'phptype' => 'string', |
| 56 | 56 | 'null' => true, |
| 57 | 57 | ), |
| 58 | 58 | 'status' => |
| 59 | - array ( |
|
| 59 | + array( |
|
| 60 | 60 | 'dbtype' => 'varchar', |
| 61 | 61 | 'precision' => '16', |
| 62 | 62 | 'phptype' => 'string', |
@@ -64,21 +64,21 @@ discard block |
||
| 64 | 64 | 'default' => 'ready', |
| 65 | 65 | ), |
| 66 | 66 | 'author' => |
| 67 | - array ( |
|
| 67 | + array( |
|
| 68 | 68 | 'dbtype' => 'varchar', |
| 69 | 69 | 'precision' => '255', |
| 70 | 70 | 'phptype' => 'string', |
| 71 | 71 | 'null' => true, |
| 72 | 72 | ), |
| 73 | 73 | 'created_at' => |
| 74 | - array ( |
|
| 74 | + array( |
|
| 75 | 75 | 'dbtype' => 'timestamp', |
| 76 | 76 | 'phptype' => 'timestamp', |
| 77 | 77 | 'null' => false, |
| 78 | 78 | 'default' => 'CURRENT_TIMESTAMP', |
| 79 | 79 | ), |
| 80 | 80 | 'processed_at' => |
| 81 | - array ( |
|
| 81 | + array( |
|
| 82 | 82 | 'dbtype' => 'timestamp', |
| 83 | 83 | 'phptype' => 'timestamp', |
| 84 | 84 | 'null' => true, |
@@ -6,13 +6,13 @@ discard block |
||
| 6 | 6 | class BlendMigrations extends \LCI\Blend\Model\xPDO\BlendMigrations |
| 7 | 7 | { |
| 8 | 8 | |
| 9 | - public static $metaMap = array ( |
|
| 9 | + public static $metaMap = array( |
|
| 10 | 10 | 'package' => 'LCI\\Blend\\Model\\xPDO', |
| 11 | 11 | 'version' => '3.0', |
| 12 | 12 | 'table' => 'blend_migrations', |
| 13 | 13 | 'extends' => 'xPDO\\Om\\xPDOSimpleObject', |
| 14 | 14 | 'fields' => |
| 15 | - array ( |
|
| 15 | + array( |
|
| 16 | 16 | 'project' => 'local', |
| 17 | 17 | 'name' => NULL, |
| 18 | 18 | 'version' => NULL, |
@@ -25,9 +25,9 @@ discard block |
||
| 25 | 25 | 'ran_sequence' => NULL, |
| 26 | 26 | ), |
| 27 | 27 | 'fieldMeta' => |
| 28 | - array ( |
|
| 28 | + array( |
|
| 29 | 29 | 'project' => |
| 30 | - array ( |
|
| 30 | + array( |
|
| 31 | 31 | 'dbtype' => 'varchar', |
| 32 | 32 | 'precision' => '255', |
| 33 | 33 | 'phptype' => 'string', |
@@ -35,21 +35,21 @@ discard block |
||
| 35 | 35 | 'default' => 'local', |
| 36 | 36 | ), |
| 37 | 37 | 'name' => |
| 38 | - array ( |
|
| 38 | + array( |
|
| 39 | 39 | 'dbtype' => 'varchar', |
| 40 | 40 | 'precision' => '255', |
| 41 | 41 | 'phptype' => 'string', |
| 42 | 42 | 'null' => false, |
| 43 | 43 | ), |
| 44 | 44 | 'version' => |
| 45 | - array ( |
|
| 45 | + array( |
|
| 46 | 46 | 'dbtype' => 'varchar', |
| 47 | 47 | 'precision' => '32', |
| 48 | 48 | 'phptype' => 'string', |
| 49 | 49 | 'null' => true, |
| 50 | 50 | ), |
| 51 | 51 | 'type' => |
| 52 | - array ( |
|
| 52 | + array( |
|
| 53 | 53 | 'dbtype' => 'set', |
| 54 | 54 | 'precision' => '\'master\',\'stagging\',\'dev\',\'local\'', |
| 55 | 55 | 'phptype' => 'string', |
@@ -57,13 +57,13 @@ discard block |
||
| 57 | 57 | 'default' => 'master', |
| 58 | 58 | ), |
| 59 | 59 | 'description' => |
| 60 | - array ( |
|
| 60 | + array( |
|
| 61 | 61 | 'dbtype' => 'text', |
| 62 | 62 | 'phptype' => 'string', |
| 63 | 63 | 'null' => true, |
| 64 | 64 | ), |
| 65 | 65 | 'status' => |
| 66 | - array ( |
|
| 66 | + array( |
|
| 67 | 67 | 'dbtype' => 'varchar', |
| 68 | 68 | 'precision' => '16', |
| 69 | 69 | 'phptype' => 'string', |
@@ -71,21 +71,21 @@ discard block |
||
| 71 | 71 | 'default' => 'ready', |
| 72 | 72 | ), |
| 73 | 73 | 'author' => |
| 74 | - array ( |
|
| 74 | + array( |
|
| 75 | 75 | 'dbtype' => 'varchar', |
| 76 | 76 | 'precision' => '255', |
| 77 | 77 | 'phptype' => 'string', |
| 78 | 78 | 'null' => true, |
| 79 | 79 | ), |
| 80 | 80 | 'created_at' => |
| 81 | - array ( |
|
| 81 | + array( |
|
| 82 | 82 | 'dbtype' => 'timestamp', |
| 83 | 83 | 'phptype' => 'timestamp', |
| 84 | 84 | 'null' => false, |
| 85 | 85 | 'default' => 'CURRENT_TIMESTAMP', |
| 86 | 86 | ), |
| 87 | 87 | 'processed_at' => |
| 88 | - array ( |
|
| 88 | + array( |
|
| 89 | 89 | 'dbtype' => 'timestamp', |
| 90 | 90 | 'phptype' => 'timestamp', |
| 91 | 91 | 'null' => true, |
@@ -143,14 +143,14 @@ discard block |
||
| 143 | 143 | // How to mark as deprecated? |
| 144 | 144 | if (method_exists($this->blendableLoader, $name)) { |
| 145 | 145 | |
| 146 | - $message = get_class($this) . '->'.$name.'() has been deprecated, please use ' . get_class($this) . '->getBlendableLoader()->' . $name; |
|
| 146 | + $message = get_class($this).'->'.$name.'() has been deprecated, please use '.get_class($this).'->getBlendableLoader()->'.$name; |
|
| 147 | 147 | trigger_error($message, E_USER_WARNING); |
| 148 | 148 | $this->modx->log(\modX::LOG_LEVEL_ERROR, $message); |
| 149 | 149 | |
| 150 | 150 | return call_user_func_array(array($this->blendableLoader, $name), $arguments); |
| 151 | 151 | |
| 152 | 152 | } else { |
| 153 | - throw new MigratorException('Call to undefined Method ' . get_class($this) . '->' . $name); |
|
| 153 | + throw new MigratorException('Call to undefined Method '.get_class($this).'->'.$name); |
|
| 154 | 154 | } |
| 155 | 155 | } |
| 156 | 156 | |
@@ -191,7 +191,7 @@ discard block |
||
| 191 | 191 | * @see https://symfony.com/doc/current/console/verbosity.html |
| 192 | 192 | * @return $this |
| 193 | 193 | */ |
| 194 | - public function setVerbose(int $verbose=self::VERBOSITY_NORMAL) |
|
| 194 | + public function setVerbose(int $verbose = self::VERBOSITY_NORMAL) |
|
| 195 | 195 | { |
| 196 | 196 | $this->config['verbose'] = $verbose; |
| 197 | 197 | return $this; |
@@ -307,7 +307,7 @@ discard block |
||
| 307 | 307 | * @param int $verbose |
| 308 | 308 | * @param bool $error |
| 309 | 309 | */ |
| 310 | - public function out($message, $verbose=Blender::VERBOSITY_NORMAL, $error = false) |
|
| 310 | + public function out($message, $verbose = Blender::VERBOSITY_NORMAL, $error = false) |
|
| 311 | 311 | { |
| 312 | 312 | if ($this->getVerbose() >= $verbose) { |
| 313 | 313 | if ($error) { |
@@ -323,7 +323,7 @@ discard block |
||
| 323 | 323 | * @param string $message |
| 324 | 324 | * @param int $verbose |
| 325 | 325 | */ |
| 326 | - public function outError($message, $verbose=Blender::VERBOSITY_NORMAL) |
|
| 326 | + public function outError($message, $verbose = Blender::VERBOSITY_NORMAL) |
|
| 327 | 327 | { |
| 328 | 328 | if ($this->getVerbose() >= $verbose) { |
| 329 | 329 | $this->userInteractionHandler->tellUser($message, userInteractionHandler::MASSAGE_ERROR); |
@@ -334,7 +334,7 @@ discard block |
||
| 334 | 334 | * @param string $message |
| 335 | 335 | * @param int $verbose |
| 336 | 336 | */ |
| 337 | - public function outSuccess($message, $verbose=Blender::VERBOSITY_NORMAL) |
|
| 337 | + public function outSuccess($message, $verbose = Blender::VERBOSITY_NORMAL) |
|
| 338 | 338 | { |
| 339 | 339 | if ($this->getVerbose() >= $verbose) { |
| 340 | 340 | $this->userInteractionHandler->tellUser($message, userInteractionHandler::MASSAGE_SUCCESS); |
@@ -453,7 +453,7 @@ discard block |
||
| 453 | 453 | $current_version = $this->modx->getOption('blend.version'); |
| 454 | 454 | // FILE version, DB Version |
| 455 | 455 | if ($this->isBlendInstalledInModx() && (!$current_version || version_compare($this->getVersion(), $current_version) === 1)) { |
| 456 | - $this->outError('MODX System Setting Version: '. $current_version.' Code version: '.$this->getVersion(), Blender::VERBOSITY_DEBUG); |
|
| 456 | + $this->outError('MODX System Setting Version: '.$current_version.' Code version: '.$this->getVersion(), Blender::VERBOSITY_DEBUG); |
|
| 457 | 457 | $upgrade = true; |
| 458 | 458 | } |
| 459 | 459 | |