@@ -8,18 +8,18 @@ discard block |
||
8 | 8 | { |
9 | 9 | |
10 | 10 | /** |
11 | - * An associative array where the key is a namespace prefix and the value |
|
12 | - * is an array of base directories for classes in that namespace. |
|
13 | - * |
|
14 | - * @var array |
|
15 | - */ |
|
11 | + * An associative array where the key is a namespace prefix and the value |
|
12 | + * is an array of base directories for classes in that namespace. |
|
13 | + * |
|
14 | + * @var array |
|
15 | + */ |
|
16 | 16 | protected $prefixes = []; |
17 | 17 | |
18 | 18 | /** |
19 | - * Register loader with SPL autoloader stack. |
|
20 | - * |
|
21 | - * @return void |
|
22 | - */ |
|
19 | + * Register loader with SPL autoloader stack. |
|
20 | + * |
|
21 | + * @return void |
|
22 | + */ |
|
23 | 23 | |
24 | 24 | public function register() |
25 | 25 | { |
@@ -27,16 +27,16 @@ discard block |
||
27 | 27 | } |
28 | 28 | |
29 | 29 | /** |
30 | - * Adds a base directory for a namespace prefix. |
|
31 | - * |
|
32 | - * @param string $prefix The namespace prefix. |
|
33 | - * @param string $base_dir A base directory for class files in the |
|
34 | - * namespace. |
|
35 | - * @param bool $prepend If true, prepend the base directory to the stack |
|
36 | - * instead of appending it; this causes it to be searched first rather |
|
37 | - * than last. |
|
38 | - * @return void |
|
39 | - */ |
|
30 | + * Adds a base directory for a namespace prefix. |
|
31 | + * |
|
32 | + * @param string $prefix The namespace prefix. |
|
33 | + * @param string $base_dir A base directory for class files in the |
|
34 | + * namespace. |
|
35 | + * @param bool $prepend If true, prepend the base directory to the stack |
|
36 | + * instead of appending it; this causes it to be searched first rather |
|
37 | + * than last. |
|
38 | + * @return void |
|
39 | + */ |
|
40 | 40 | public function addNamespaceTree($base_dir, $prepend = false) |
41 | 41 | { |
42 | 42 | $dir_content = FileSystem::preg_scandir($base_dir, '/^[A-Z]{1}[A-Za-z]+(?!\.class.\.php)$/'); |
@@ -72,12 +72,12 @@ discard block |
||
72 | 72 | } |
73 | 73 | |
74 | 74 | /** |
75 | - * Loads the class file for a given class name. |
|
76 | - * |
|
77 | - * @param string $class The fully-qualified class name. |
|
78 | - * @return mixed The mapped file name on success, or boolean false on |
|
79 | - * failure. |
|
80 | - */ |
|
75 | + * Loads the class file for a given class name. |
|
76 | + * |
|
77 | + * @param string $class The fully-qualified class name. |
|
78 | + * @return mixed The mapped file name on success, or boolean false on |
|
79 | + * failure. |
|
80 | + */ |
|
81 | 81 | public function loadClass($class) |
82 | 82 | { |
83 | 83 | // var_dump(__FUNCTION__."($class)"); |
@@ -108,13 +108,13 @@ discard block |
||
108 | 108 | } |
109 | 109 | |
110 | 110 | /** |
111 | - * Load the mapped file for a namespace prefix and relative class. |
|
112 | - * |
|
113 | - * @param string $prefix The namespace prefix. |
|
114 | - * @param string $relative_class The relative class name. |
|
115 | - * @return mixed Boolean false if no mapped file can be loaded, or the |
|
116 | - * name of the mapped file that was loaded. |
|
117 | - */ |
|
111 | + * Load the mapped file for a namespace prefix and relative class. |
|
112 | + * |
|
113 | + * @param string $prefix The namespace prefix. |
|
114 | + * @param string $relative_class The relative class name. |
|
115 | + * @return mixed Boolean false if no mapped file can be loaded, or the |
|
116 | + * name of the mapped file that was loaded. |
|
117 | + */ |
|
118 | 118 | protected function loadMappedFile($prefix, $relative_class) |
119 | 119 | { |
120 | 120 | // are there any base directories for this namespace prefix? |
@@ -143,11 +143,11 @@ discard block |
||
143 | 143 | } |
144 | 144 | |
145 | 145 | /** |
146 | - * If a file exists, require it from the file system. |
|
147 | - * |
|
148 | - * @param string $file The file to require. |
|
149 | - * @return bool True if the file exists, false if not. |
|
150 | - */ |
|
146 | + * If a file exists, require it from the file system. |
|
147 | + * |
|
148 | + * @param string $file The file to require. |
|
149 | + * @return bool True if the file exists, false if not. |
|
150 | + */ |
|
151 | 151 | protected function requireFile($file) |
152 | 152 | { |
153 | 153 | // var_dump(__FUNCTION__."($file)"); |
@@ -5,7 +5,7 @@ |
||
5 | 5 | interface DisplayControllerInterface extends BaseControllerInterface |
6 | 6 | { |
7 | 7 | |
8 | - /* |
|
8 | + /* |
|
9 | 9 | The viewport is an associative array of values to be exported as variables in the view |
10 | 10 | the assoc keys will be the variable names |
11 | 11 |