@@ -3,9 +3,9 @@ discard block |
||
3 | 3 | interface CoreInterface |
4 | 4 | { |
5 | 5 | /** |
6 | - * @param $type |
|
7 | - * @param $scanPath |
|
8 | - * @param array $ext |
|
6 | + * @param string $type |
|
7 | + * @param string $scanPath |
|
8 | + * @param string[] $ext |
|
9 | 9 | * |
10 | 10 | * @return array |
11 | 11 | * |
@@ -18,6 +18,7 @@ discard block |
||
18 | 18 | * @param string $phpCode |
19 | 19 | * @param string $namespace |
20 | 20 | * @param array defaultParams |
21 | + * @return void |
|
21 | 22 | */ |
22 | 23 | public function addSnippet($name, $phpCode, $namespace = '#', array $defaultParams = array()); |
23 | 24 | |
@@ -25,6 +26,7 @@ discard block |
||
25 | 26 | * @param string $name |
26 | 27 | * @param string $text |
27 | 28 | * @param string $namespace |
29 | + * @return void |
|
28 | 30 | */ |
29 | 31 | public function addChunk($name, $text, $namespace = '#'); |
30 | 32 | } |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | { |
38 | 38 | $found = $this->core->findElements( |
39 | 39 | 'chunk', |
40 | - MODX_MANAGER_PATH . 'media/style/' . $this->theme . '/snippets/', |
|
40 | + MODX_MANAGER_PATH.'media/style/'.$this->theme.'/snippets/', |
|
41 | 41 | array('php') |
42 | 42 | ); |
43 | 43 | foreach ($found as $name => $code) { |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | { |
50 | 50 | $found = $this->core->findElements( |
51 | 51 | 'chunk', |
52 | - MODX_MANAGER_PATH . 'media/style/' . $this->theme . '/chunks/', |
|
52 | + MODX_MANAGER_PATH.'media/style/'.$this->theme.'/chunks/', |
|
53 | 53 | array('tpl', 'html') |
54 | 54 | ); |
55 | 55 | foreach ($found as $name => $code) { |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | $this->core->addSnippet( |
63 | 63 | $name, |
64 | 64 | $code, |
65 | - $this->templateNamespace . '#', |
|
65 | + $this->templateNamespace.'#', |
|
66 | 66 | array( |
67 | 67 | 'managerTheme' => $this |
68 | 68 | ) |
@@ -71,6 +71,6 @@ discard block |
||
71 | 71 | |
72 | 72 | public function addChunk($name, $code) |
73 | 73 | { |
74 | - $this->core->addChunk($name, $code, $this->templateNamespace . '#'); |
|
74 | + $this->core->addChunk($name, $code, $this->templateNamespace.'#'); |
|
75 | 75 | } |
76 | 76 | } |
@@ -3,13 +3,13 @@ discard block |
||
3 | 3 | * EVO Installer |
4 | 4 | */ |
5 | 5 | error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED); |
6 | -$base_path = dirname(__DIR__) . '/'; |
|
6 | +$base_path = dirname(__DIR__).'/'; |
|
7 | 7 | |
8 | -if (is_file($base_path . 'assets/cache/siteManager.php')) { |
|
9 | - include_once $base_path . 'assets/cache/siteManager.php'; |
|
8 | +if (is_file($base_path.'assets/cache/siteManager.php')) { |
|
9 | + include_once $base_path.'assets/cache/siteManager.php'; |
|
10 | 10 | } |
11 | -if (! defined('MGR_DIR')) { |
|
12 | - if (is_dir($base_path . 'manager')) { |
|
11 | +if (!defined('MGR_DIR')) { |
|
12 | + if (is_dir($base_path.'manager')) { |
|
13 | 13 | define('MGR_DIR', 'manager'); |
14 | 14 | } else { |
15 | 15 | die('MGR_DIR is not defined'); |
@@ -19,12 +19,12 @@ discard block |
||
19 | 19 | require_once 'src/functions.php'; |
20 | 20 | |
21 | 21 | if (empty($_GET['self'])) { |
22 | - $autoloader = realpath(__DIR__ . '/../vendor/autoload.php'); |
|
22 | + $autoloader = realpath(__DIR__.'/../vendor/autoload.php'); |
|
23 | 23 | if (file_exists($autoloader) && is_readable($autoloader)) { |
24 | 24 | include_once $autoloader; |
25 | 25 | } |
26 | 26 | |
27 | - require_once '../' . MGR_DIR . '/includes/version.inc.php'; |
|
27 | + require_once '../'.MGR_DIR.'/includes/version.inc.php'; |
|
28 | 28 | include_once '../'.MGR_DIR.'/includes/preload.functions.inc.php'; |
29 | 29 | include_once '../'.MGR_DIR.'/includes/bootstrap.php'; |
30 | 30 | |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | install_sessionCheck(); |
35 | 35 | |
36 | 36 | $moduleName = 'EVO'; |
37 | - $moduleVersion = $modx_branch . ' ' . $modx_version; |
|
37 | + $moduleVersion = $modx_branch.' '.$modx_version; |
|
38 | 38 | $moduleRelease = $modx_release_date; |
39 | 39 | $moduleSQLBaseFile = 'src/stubs/sql/setup.sql'; |
40 | 40 | $moduleSQLDataFile = 'src/stubs/sql/setup.data.sql'; |
@@ -75,8 +75,8 @@ discard block |
||
75 | 75 | $action = isset($_GET['action']) ? trim(strip_tags($_GET['action'])) : 'language'; |
76 | 76 | str_replace('.', '', $action); |
77 | 77 | |
78 | - $controller = 'src/controllers/' . $action . '.php'; |
|
79 | - if (! file_exists($controller)) { |
|
78 | + $controller = 'src/controllers/'.$action.'.php'; |
|
79 | + if (!file_exists($controller)) { |
|
80 | 80 | die("Invalid install action attempted. [action={$action}]"); |
81 | 81 | } |
82 | 82 | require $controller; |
@@ -88,8 +88,8 @@ discard block |
||
88 | 88 | } else { |
89 | 89 | $action = isset($_GET['action']) && is_scalar($_GET['action']) ? trim($_GET['action']) : 'language'; |
90 | 90 | str_replace('.', '', $action); |
91 | - $controller = 'src/controllers/' . $action . '.php'; |
|
92 | - if (! file_exists($controller)) { |
|
91 | + $controller = 'src/controllers/'.$action.'.php'; |
|
92 | + if (!file_exists($controller)) { |
|
93 | 93 | die("Invalid install action attempted. [action={$action}]"); |
94 | 94 | } |
95 | 95 | require $controller; |