@@ -5,57 +5,57 @@ |
||
| 5 | 5 | $widgets = array(); |
| 6 | 6 | $widgets[1]= $xpdo->newObject('modDashboardWidget'); |
| 7 | 7 | $widgets[1]->fromArray(array ( |
| 8 | - 'name' => 'w_newsfeed', |
|
| 9 | - 'description' => 'w_newsfeed_desc', |
|
| 10 | - 'type' => 'file', |
|
| 11 | - 'size' => 'half', |
|
| 12 | - 'content' => '[[++manager_path]]controllers/default/dashboard/widget.modx-news.php', |
|
| 13 | - 'namespace' => 'core', |
|
| 14 | - 'lexicon' => 'core:dashboards', |
|
| 8 | + 'name' => 'w_newsfeed', |
|
| 9 | + 'description' => 'w_newsfeed_desc', |
|
| 10 | + 'type' => 'file', |
|
| 11 | + 'size' => 'half', |
|
| 12 | + 'content' => '[[++manager_path]]controllers/default/dashboard/widget.modx-news.php', |
|
| 13 | + 'namespace' => 'core', |
|
| 14 | + 'lexicon' => 'core:dashboards', |
|
| 15 | 15 | ), '', true, true); |
| 16 | 16 | |
| 17 | 17 | $widgets[2]= $xpdo->newObject('modDashboardWidget'); |
| 18 | 18 | $widgets[2]->fromArray(array ( |
| 19 | - 'name' => 'w_securityfeed', |
|
| 20 | - 'description' => 'w_securityfeed_desc', |
|
| 21 | - 'type' => 'file', |
|
| 22 | - 'size' => 'half', |
|
| 23 | - 'content' => '[[++manager_path]]controllers/default/dashboard/widget.modx-security.php', |
|
| 24 | - 'namespace' => 'core', |
|
| 25 | - 'lexicon' => 'core:dashboards', |
|
| 19 | + 'name' => 'w_securityfeed', |
|
| 20 | + 'description' => 'w_securityfeed_desc', |
|
| 21 | + 'type' => 'file', |
|
| 22 | + 'size' => 'half', |
|
| 23 | + 'content' => '[[++manager_path]]controllers/default/dashboard/widget.modx-security.php', |
|
| 24 | + 'namespace' => 'core', |
|
| 25 | + 'lexicon' => 'core:dashboards', |
|
| 26 | 26 | ), '', true, true); |
| 27 | 27 | |
| 28 | 28 | $widgets[3]= $xpdo->newObject('modDashboardWidget'); |
| 29 | 29 | $widgets[3]->fromArray(array ( |
| 30 | - 'name' => 'w_whosonline', |
|
| 31 | - 'description' => 'w_whosonline_desc', |
|
| 32 | - 'type' => 'file', |
|
| 33 | - 'size' => 'half', |
|
| 34 | - 'content' => '[[++manager_path]]controllers/default/dashboard/widget.grid-online.php', |
|
| 35 | - 'namespace' => 'core', |
|
| 36 | - 'lexicon' => 'core:dashboards', |
|
| 30 | + 'name' => 'w_whosonline', |
|
| 31 | + 'description' => 'w_whosonline_desc', |
|
| 32 | + 'type' => 'file', |
|
| 33 | + 'size' => 'half', |
|
| 34 | + 'content' => '[[++manager_path]]controllers/default/dashboard/widget.grid-online.php', |
|
| 35 | + 'namespace' => 'core', |
|
| 36 | + 'lexicon' => 'core:dashboards', |
|
| 37 | 37 | ), '', true, true); |
| 38 | 38 | |
| 39 | 39 | $widgets[4]= $xpdo->newObject('modDashboardWidget'); |
| 40 | 40 | $widgets[4]->fromArray(array ( |
| 41 | - 'name' => 'w_recentlyeditedresources', |
|
| 42 | - 'description' => 'w_recentlyeditedresources_desc', |
|
| 43 | - 'type' => 'file', |
|
| 44 | - 'size' => 'half', |
|
| 45 | - 'content' => '[[++manager_path]]controllers/default/dashboard/widget.grid-rer.php', |
|
| 46 | - 'namespace' => 'core', |
|
| 47 | - 'lexicon' => 'core:dashboards', |
|
| 41 | + 'name' => 'w_recentlyeditedresources', |
|
| 42 | + 'description' => 'w_recentlyeditedresources_desc', |
|
| 43 | + 'type' => 'file', |
|
| 44 | + 'size' => 'half', |
|
| 45 | + 'content' => '[[++manager_path]]controllers/default/dashboard/widget.grid-rer.php', |
|
| 46 | + 'namespace' => 'core', |
|
| 47 | + 'lexicon' => 'core:dashboards', |
|
| 48 | 48 | ), '', true, true); |
| 49 | 49 | |
| 50 | 50 | $widgets[5]= $xpdo->newObject('modDashboardWidget'); |
| 51 | 51 | $widgets[5]->fromArray(array ( |
| 52 | - 'name' => 'w_configcheck', |
|
| 53 | - 'description' => 'w_configcheck_desc', |
|
| 54 | - 'type' => 'file', |
|
| 55 | - 'size' => 'full', |
|
| 56 | - 'content' => '[[++manager_path]]controllers/default/dashboard/widget.configcheck.php', |
|
| 57 | - 'namespace' => 'core', |
|
| 58 | - 'lexicon' => 'core:dashboards', |
|
| 52 | + 'name' => 'w_configcheck', |
|
| 53 | + 'description' => 'w_configcheck_desc', |
|
| 54 | + 'type' => 'file', |
|
| 55 | + 'size' => 'full', |
|
| 56 | + 'content' => '[[++manager_path]]controllers/default/dashboard/widget.configcheck.php', |
|
| 57 | + 'namespace' => 'core', |
|
| 58 | + 'lexicon' => 'core:dashboards', |
|
| 59 | 59 | ), '', true, true); |
| 60 | 60 | |
| 61 | 61 | return $widgets; |
@@ -3,8 +3,8 @@ discard block |
||
| 3 | 3 | * Default Dashboard Widgets |
| 4 | 4 | */ |
| 5 | 5 | $widgets = array(); |
| 6 | -$widgets[1]= $xpdo->newObject('modDashboardWidget'); |
|
| 7 | -$widgets[1]->fromArray(array ( |
|
| 6 | +$widgets[1] = $xpdo->newObject('modDashboardWidget'); |
|
| 7 | +$widgets[1]->fromArray(array( |
|
| 8 | 8 | 'name' => 'w_newsfeed', |
| 9 | 9 | 'description' => 'w_newsfeed_desc', |
| 10 | 10 | 'type' => 'file', |
@@ -14,8 +14,8 @@ discard block |
||
| 14 | 14 | 'lexicon' => 'core:dashboards', |
| 15 | 15 | ), '', true, true); |
| 16 | 16 | |
| 17 | -$widgets[2]= $xpdo->newObject('modDashboardWidget'); |
|
| 18 | -$widgets[2]->fromArray(array ( |
|
| 17 | +$widgets[2] = $xpdo->newObject('modDashboardWidget'); |
|
| 18 | +$widgets[2]->fromArray(array( |
|
| 19 | 19 | 'name' => 'w_securityfeed', |
| 20 | 20 | 'description' => 'w_securityfeed_desc', |
| 21 | 21 | 'type' => 'file', |
@@ -25,8 +25,8 @@ discard block |
||
| 25 | 25 | 'lexicon' => 'core:dashboards', |
| 26 | 26 | ), '', true, true); |
| 27 | 27 | |
| 28 | -$widgets[3]= $xpdo->newObject('modDashboardWidget'); |
|
| 29 | -$widgets[3]->fromArray(array ( |
|
| 28 | +$widgets[3] = $xpdo->newObject('modDashboardWidget'); |
|
| 29 | +$widgets[3]->fromArray(array( |
|
| 30 | 30 | 'name' => 'w_whosonline', |
| 31 | 31 | 'description' => 'w_whosonline_desc', |
| 32 | 32 | 'type' => 'file', |
@@ -36,8 +36,8 @@ discard block |
||
| 36 | 36 | 'lexicon' => 'core:dashboards', |
| 37 | 37 | ), '', true, true); |
| 38 | 38 | |
| 39 | -$widgets[4]= $xpdo->newObject('modDashboardWidget'); |
|
| 40 | -$widgets[4]->fromArray(array ( |
|
| 39 | +$widgets[4] = $xpdo->newObject('modDashboardWidget'); |
|
| 40 | +$widgets[4]->fromArray(array( |
|
| 41 | 41 | 'name' => 'w_recentlyeditedresources', |
| 42 | 42 | 'description' => 'w_recentlyeditedresources_desc', |
| 43 | 43 | 'type' => 'file', |
@@ -47,8 +47,8 @@ discard block |
||
| 47 | 47 | 'lexicon' => 'core:dashboards', |
| 48 | 48 | ), '', true, true); |
| 49 | 49 | |
| 50 | -$widgets[5]= $xpdo->newObject('modDashboardWidget'); |
|
| 51 | -$widgets[5]->fromArray(array ( |
|
| 50 | +$widgets[5] = $xpdo->newObject('modDashboardWidget'); |
|
| 51 | +$widgets[5]->fromArray(array( |
|
| 52 | 52 | 'name' => 'w_configcheck', |
| 53 | 53 | 'description' => 'w_configcheck_desc', |
| 54 | 54 | 'type' => 'file', |
@@ -10,9 +10,9 @@ discard block |
||
| 10 | 10 | $dbase = 'modx3'; |
| 11 | 11 | $table_prefix = 'modx_'; |
| 12 | 12 | $database_dsn = 'mysql:host=localhost;dbname=modx3;charset=utf8'; |
| 13 | -$config_options = array ( |
|
| 13 | +$config_options = array( |
|
| 14 | 14 | ); |
| 15 | -$driver_options = array ( |
|
| 15 | +$driver_options = array( |
|
| 16 | 16 | ); |
| 17 | 17 | |
| 18 | 18 | $lastInstallTime = 1519931536; |
@@ -23,60 +23,60 @@ discard block |
||
| 23 | 23 | $uuid = 'c5e00d1a-eb2d-4c19-8688-df80e17009ad'; |
| 24 | 24 | |
| 25 | 25 | if (!defined('MODX_CORE_PATH')) {
|
| 26 | - $modx_core_path= '/var/www/public/test/core/'; |
|
| 26 | + $modx_core_path = '/var/www/public/test/core/'; |
|
| 27 | 27 | define('MODX_CORE_PATH', $modx_core_path);
|
| 28 | 28 | } |
| 29 | 29 | if (!defined('MODX_PROCESSORS_PATH')) {
|
| 30 | - $modx_processors_path= '/var/www/public/test/core/model/modx/processors/'; |
|
| 30 | + $modx_processors_path = '/var/www/public/test/core/model/modx/processors/'; |
|
| 31 | 31 | define('MODX_PROCESSORS_PATH', $modx_processors_path);
|
| 32 | 32 | } |
| 33 | 33 | if (!defined('MODX_CONNECTORS_PATH')) {
|
| 34 | - $modx_connectors_path= '/var/www/public/test/connectors/'; |
|
| 35 | - $modx_connectors_url= '/test/connectors/'; |
|
| 34 | + $modx_connectors_path = '/var/www/public/test/connectors/'; |
|
| 35 | + $modx_connectors_url = '/test/connectors/'; |
|
| 36 | 36 | define('MODX_CONNECTORS_PATH', $modx_connectors_path);
|
| 37 | 37 | define('MODX_CONNECTORS_URL', $modx_connectors_url);
|
| 38 | 38 | } |
| 39 | 39 | if (!defined('MODX_MANAGER_PATH')) {
|
| 40 | - $modx_manager_path= '/var/www/public/test/manager/'; |
|
| 41 | - $modx_manager_url= '/test/manager/'; |
|
| 40 | + $modx_manager_path = '/var/www/public/test/manager/'; |
|
| 41 | + $modx_manager_url = '/test/manager/'; |
|
| 42 | 42 | define('MODX_MANAGER_PATH', $modx_manager_path);
|
| 43 | 43 | define('MODX_MANAGER_URL', $modx_manager_url);
|
| 44 | 44 | } |
| 45 | 45 | if (!defined('MODX_BASE_PATH')) {
|
| 46 | - $modx_base_path= '/var/www/public/test/'; |
|
| 47 | - $modx_base_url= '/test/'; |
|
| 46 | + $modx_base_path = '/var/www/public/test/'; |
|
| 47 | + $modx_base_url = '/test/'; |
|
| 48 | 48 | define('MODX_BASE_PATH', $modx_base_path);
|
| 49 | 49 | define('MODX_BASE_URL', $modx_base_url);
|
| 50 | 50 | } |
| 51 | -if(defined('PHP_SAPI') && (PHP_SAPI == "cli" || PHP_SAPI == "embed")) {
|
|
| 51 | +if (defined('PHP_SAPI') && (PHP_SAPI == "cli" || PHP_SAPI == "embed")) {
|
|
| 52 | 52 | $isSecureRequest = false; |
| 53 | 53 | } else {
|
| 54 | 54 | $isSecureRequest = ((isset ($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on') || $_SERVER['SERVER_PORT'] == $https_port); |
| 55 | 55 | } |
| 56 | 56 | if (!defined('MODX_URL_SCHEME')) {
|
| 57 | - $url_scheme= $isSecureRequest ? 'https://' : 'http://'; |
|
| 57 | + $url_scheme = $isSecureRequest ? 'https://' : 'http://'; |
|
| 58 | 58 | define('MODX_URL_SCHEME', $url_scheme);
|
| 59 | 59 | } |
| 60 | 60 | if (!defined('MODX_HTTP_HOST')) {
|
| 61 | - if(defined('PHP_SAPI') && (PHP_SAPI == "cli" || PHP_SAPI == "embed")) {
|
|
| 62 | - $http_host='192.168.33.10'; |
|
| 61 | + if (defined('PHP_SAPI') && (PHP_SAPI == "cli" || PHP_SAPI == "embed")) {
|
|
| 62 | + $http_host = '192.168.33.10'; |
|
| 63 | 63 | define('MODX_HTTP_HOST', $http_host);
|
| 64 | 64 | } else {
|
| 65 | - $http_host= array_key_exists('HTTP_HOST', $_SERVER) ? htmlspecialchars($_SERVER['HTTP_HOST'], ENT_QUOTES) : '192.168.33.10';
|
|
| 65 | + $http_host = array_key_exists('HTTP_HOST', $_SERVER) ? htmlspecialchars($_SERVER['HTTP_HOST'], ENT_QUOTES) : '192.168.33.10';
|
|
| 66 | 66 | if ($_SERVER['SERVER_PORT'] != 80) {
|
| 67 | - $http_host= str_replace(':' . $_SERVER['SERVER_PORT'], '', $http_host); // remove port from HTTP_HOST
|
|
| 67 | + $http_host = str_replace(':'.$_SERVER['SERVER_PORT'], '', $http_host); // remove port from HTTP_HOST
|
|
| 68 | 68 | } |
| 69 | - $http_host .= ($_SERVER['SERVER_PORT'] == 80 || $isSecureRequest) ? '' : ':' . $_SERVER['SERVER_PORT']; |
|
| 69 | + $http_host .= ($_SERVER['SERVER_PORT'] == 80 || $isSecureRequest) ? '' : ':'.$_SERVER['SERVER_PORT']; |
|
| 70 | 70 | define('MODX_HTTP_HOST', $http_host);
|
| 71 | 71 | } |
| 72 | 72 | } |
| 73 | 73 | if (!defined('MODX_SITE_URL')) {
|
| 74 | - $site_url= $url_scheme . $http_host . MODX_BASE_URL; |
|
| 74 | + $site_url = $url_scheme.$http_host.MODX_BASE_URL; |
|
| 75 | 75 | define('MODX_SITE_URL', $site_url);
|
| 76 | 76 | } |
| 77 | 77 | if (!defined('MODX_ASSETS_PATH')) {
|
| 78 | - $modx_assets_path= '/var/www/public/test/assets/'; |
|
| 79 | - $modx_assets_url= '/test/assets/'; |
|
| 78 | + $modx_assets_path = '/var/www/public/test/assets/'; |
|
| 79 | + $modx_assets_url = '/test/assets/'; |
|
| 80 | 80 | define('MODX_ASSETS_PATH', $modx_assets_path);
|
| 81 | 81 | define('MODX_ASSETS_URL', $modx_assets_url);
|
| 82 | 82 | } |
@@ -88,6 +88,6 @@ discard block |
||
| 88 | 88 | define('MODX_LOG_LEVEL_DEBUG', 4);
|
| 89 | 89 | } |
| 90 | 90 | if (!defined('MODX_CACHE_DISABLED')) {
|
| 91 | - $modx_cache_disabled= false; |
|
| 91 | + $modx_cache_disabled = false; |
|
| 92 | 92 | define('MODX_CACHE_DISABLED', $modx_cache_disabled);
|
| 93 | 93 | } |
@@ -1,17 +1,17 @@ discard block |
||
| 1 | 1 | <?php return array ( |
| 2 | - 'type' => 'document', |
|
| 3 | - 'contentType' => 'text/html', |
|
| 4 | - 'pagetitle' => 'Home', |
|
| 5 | - 'longtitle' => 'Congratulations!', |
|
| 6 | - 'description' => '', |
|
| 7 | - 'alias' => 'index', |
|
| 8 | - 'link_attributes' => '', |
|
| 9 | - 'published' => false, |
|
| 10 | - 'pub_date' => 0, |
|
| 11 | - 'parent' => 0, |
|
| 12 | - 'isfolder' => false, |
|
| 13 | - 'introtext' => NULL, |
|
| 14 | - 'content' => '<p>You have successfully installed MODX Revolution [[++settings_version]]!</p> |
|
| 2 | + 'type' => 'document', |
|
| 3 | + 'contentType' => 'text/html', |
|
| 4 | + 'pagetitle' => 'Home', |
|
| 5 | + 'longtitle' => 'Congratulations!', |
|
| 6 | + 'description' => '', |
|
| 7 | + 'alias' => 'index', |
|
| 8 | + 'link_attributes' => '', |
|
| 9 | + 'published' => false, |
|
| 10 | + 'pub_date' => 0, |
|
| 11 | + 'parent' => 0, |
|
| 12 | + 'isfolder' => false, |
|
| 13 | + 'introtext' => NULL, |
|
| 14 | + 'content' => '<p>You have successfully installed MODX Revolution [[++settings_version]]!</p> |
|
| 15 | 15 | <p>Now that MODX is installed you can login to the manager to create your templates, manage content and install third party extras to add functionality to your website. </p> |
| 16 | 16 | |
| 17 | 17 | <h2>New to MODX?</h2> |
@@ -28,21 +28,21 @@ discard block |
||
| 28 | 28 | |
| 29 | 29 | <p>To learn more about MODX, be sure to check out the <a href="https://rtfm.modx.com/revolution/2.x/getting-started">Getting Started</a> section in the official documentation.</p> |
| 30 | 30 | ', |
| 31 | - 'richtext' => true, |
|
| 32 | - 'template' => 'base', |
|
| 33 | - 'menuindex' => 0, |
|
| 34 | - 'searchable' => true, |
|
| 35 | - 'cacheable' => true, |
|
| 36 | - 'createdby' => 1, |
|
| 37 | - 'hidemenu' => false, |
|
| 38 | - 'class_key' => 'modDocument', |
|
| 39 | - 'context_key' => 'web', |
|
| 40 | - 'content_type' => 1, |
|
| 41 | - 'properties' => NULL, |
|
| 42 | - 'tv' => |
|
| 43 | - array ( |
|
| 44 | - ), |
|
| 45 | - 'extras' => |
|
| 46 | - array ( |
|
| 47 | - ), |
|
| 31 | + 'richtext' => true, |
|
| 32 | + 'template' => 'base', |
|
| 33 | + 'menuindex' => 0, |
|
| 34 | + 'searchable' => true, |
|
| 35 | + 'cacheable' => true, |
|
| 36 | + 'createdby' => 1, |
|
| 37 | + 'hidemenu' => false, |
|
| 38 | + 'class_key' => 'modDocument', |
|
| 39 | + 'context_key' => 'web', |
|
| 40 | + 'content_type' => 1, |
|
| 41 | + 'properties' => NULL, |
|
| 42 | + 'tv' => |
|
| 43 | + array ( |
|
| 44 | + ), |
|
| 45 | + 'extras' => |
|
| 46 | + array ( |
|
| 47 | + ), |
|
| 48 | 48 | ); |
@@ -1,4 +1,4 @@ discard block |
||
| 1 | -<?php return array ( |
|
| 1 | +<?php return array( |
|
| 2 | 2 | 'type' => 'document', |
| 3 | 3 | 'contentType' => 'text/html', |
| 4 | 4 | 'pagetitle' => 'Home', |
@@ -40,9 +40,9 @@ discard block |
||
| 40 | 40 | 'content_type' => 1, |
| 41 | 41 | 'properties' => NULL, |
| 42 | 42 | 'tv' => |
| 43 | - array ( |
|
| 43 | + array( |
|
| 44 | 44 | ), |
| 45 | 45 | 'extras' => |
| 46 | - array ( |
|
| 46 | + array( |
|
| 47 | 47 | ), |
| 48 | 48 | ); |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | $this->results[] = $message; |
| 119 | 119 | // now cache it: |
| 120 | 120 | |
| 121 | - $simpleCache = new SimpleCache(BLEND_CACHE_DIR . 'modx/'); |
|
| 121 | + $simpleCache = new SimpleCache(BLEND_CACHE_DIR.'modx/'); |
|
| 122 | 122 | $simpleCache->set($this->getSeedsDir().'-'.$this->method, $this->results); |
| 123 | 123 | } |
| 124 | 124 | |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | { |
| 130 | 130 | $key = 'install-config-v'.str_replace(['.', '-'], '_', $this->version).'_install'; |
| 131 | 131 | |
| 132 | - $simpleCache = new SimpleCache(BLEND_CACHE_DIR . 'modx/'); |
|
| 132 | + $simpleCache = new SimpleCache(BLEND_CACHE_DIR.'modx/'); |
|
| 133 | 133 | $this->install_config = $simpleCache->get($key); |
| 134 | 134 | } |
| 135 | 135 | |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | * @param mixed |
| 139 | 139 | * @return bool|mixed |
| 140 | 140 | */ |
| 141 | - protected function getUserInstallConfigValue($key, $default=false) |
|
| 141 | + protected function getUserInstallConfigValue($key, $default = false) |
|
| 142 | 142 | { |
| 143 | 143 | if (isset($this->install_config[$key])) { |
| 144 | 144 | return $this->install_config[$key]; |
@@ -152,6 +152,6 @@ discard block |
||
| 152 | 152 | */ |
| 153 | 153 | protected function loadCurrentVersionInfo() |
| 154 | 154 | { |
| 155 | - $this->current_version = include MODX_CORE_PATH . 'docs/version.inc.php'; |
|
| 155 | + $this->current_version = include MODX_CORE_PATH.'docs/version.inc.php'; |
|
| 156 | 156 | } |
| 157 | 157 | } |
| 158 | 158 | \ No newline at end of file |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | $this->modx->cacheManager->refresh(); |
| 58 | 58 | |
| 59 | 59 | $previous_version = $this->modx->getOption('blend.version'); |
| 60 | - if (!$previous_version || version_compare($this->getVersion(), $previous_version, '>') ) { |
|
| 60 | + if (!$previous_version || version_compare($this->getVersion(), $previous_version, '>')) { |
|
| 61 | 61 | |
| 62 | 62 | /** @var \xPDOManager $manager */ |
| 63 | 63 | $manager = $this->modx->getManager(); |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | $event = $this->modx->newObject('modEvent'); |
| 138 | 138 | $event->set('name', $event_name); |
| 139 | 139 | $event->set('service', 1); |
| 140 | - $event->set('groupname', 'Resources');// ?? |
|
| 140 | + $event->set('groupname', 'Resources'); // ?? |
|
| 141 | 141 | |
| 142 | 142 | if ($event->save()) { |
| 143 | 143 | $this->blender->out($event_name.' event has been installed'); |
@@ -156,12 +156,12 @@ discard block |
||
| 156 | 156 | $event = $this->modx->getObject('modEvent', ['name' => $event_name]); |
| 157 | 157 | if (is_object($event)) { |
| 158 | 158 | if ($event->remove()) { |
| 159 | - $this->blender->out($event_name . ' event was removed', true); |
|
| 159 | + $this->blender->out($event_name.' event was removed', true); |
|
| 160 | 160 | } else { |
| 161 | - $this->blender->out($event_name . ' event was not removed', true); |
|
| 161 | + $this->blender->out($event_name.' event was not removed', true); |
|
| 162 | 162 | } |
| 163 | 163 | } else { |
| 164 | - $this->blender->out($event_name . ' event has already been removed', true); |
|
| 164 | + $this->blender->out($event_name.' event has already been removed', true); |
|
| 165 | 165 | } |
| 166 | 166 | } |
| 167 | 167 | |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | */ |
| 29 | 29 | public function getHelp() |
| 30 | 30 | { |
| 31 | - return file_get_contents(__DIR__.'/'.static::$logo). parent::getHelp(); |
|
| 31 | + return file_get_contents(__DIR__.'/'.static::$logo).parent::getHelp(); |
|
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | /** |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | require_once(MODX_CONFIG_PATH); |
| 51 | - require_once(MODX_CORE_PATH . 'model/modx/modx.class.php'); |
|
| 51 | + require_once(MODX_CORE_PATH.'model/modx/modx.class.php'); |
|
| 52 | 52 | |
| 53 | 53 | /** @var \modX $modx */ |
| 54 | 54 | $modx = new \modX(); |
@@ -66,11 +66,11 @@ discard block |
||
| 66 | 66 | */ |
| 67 | 67 | public static function isModxInstalled() |
| 68 | 68 | { |
| 69 | - if (file_exists(MODX_CONFIG_PATH) ) { |
|
| 70 | - if (defined('M_CORE_PATH') && file_exists(M_CORE_PATH . 'model/modx/modx.class.php')) { |
|
| 69 | + if (file_exists(MODX_CONFIG_PATH)) { |
|
| 70 | + if (defined('M_CORE_PATH') && file_exists(M_CORE_PATH.'model/modx/modx.class.php')) { |
|
| 71 | 71 | return true; |
| 72 | 72 | } |
| 73 | - if (defined('MODX_CORE_PATH') && file_exists(MODX_CORE_PATH . 'model/modx/modx.class.php')) { |
|
| 73 | + if (defined('MODX_CORE_PATH') && file_exists(MODX_CORE_PATH.'model/modx/modx.class.php')) { |
|
| 74 | 74 | return true; |
| 75 | 75 | } |
| 76 | 76 | } |
@@ -106,9 +106,9 @@ discard block |
||
| 106 | 106 | return new InputDefinition(array( |
| 107 | 107 | new InputArgument('command', InputArgument::REQUIRED, 'The command to execute'), |
| 108 | 108 | |
| 109 | - new InputOption('--help', '-h', InputOption::VALUE_NONE, 'Display this help message.'), |
|
| 109 | + new InputOption('--help', '-h', InputOption::VALUE_NONE, 'Display this help message.'), |
|
| 110 | 110 | //new InputOption('--verbose', '-v|vv|vvv', InputOption::VALUE_NONE, 'Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug.'), |
| 111 | - new InputOption('--version', '-V', InputOption::VALUE_NONE, 'Display the Blend version.'), |
|
| 111 | + new InputOption('--version', '-V', InputOption::VALUE_NONE, 'Display the Blend version.'), |
|
| 112 | 112 | )); |
| 113 | 113 | } |
| 114 | 114 | } |
| 115 | 115 | \ No newline at end of file |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | * |
| 50 | 50 | * @return $this |
| 51 | 51 | */ |
| 52 | - public function mergePropertiesFromArray(array $data=[]) |
|
| 52 | + public function mergePropertiesFromArray(array $data = []) |
|
| 53 | 53 | { |
| 54 | 54 | if ($this->verifyArray($data)) { |
| 55 | 55 | $this->data = array_merge($data, $this->data); |