@@ -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 | } |