@@ -110,6 +110,7 @@ discard block |
||
| 110 | 110 | /** |
| 111 | 111 | * Changes theme. |
| 112 | 112 | * @param string theme name |
| 113 | + * @param string $name |
|
| 113 | 114 | * @throws InvalidConfigException |
| 114 | 115 | */ |
| 115 | 116 | public function setTheme($name) |
@@ -139,7 +140,7 @@ discard block |
||
| 139 | 140 | } |
| 140 | 141 | |
| 141 | 142 | /** |
| 142 | - * @return bool |
|
| 143 | + * @return boolean|null |
|
| 143 | 144 | */ |
| 144 | 145 | public static function isHomePage() |
| 145 | 146 | { |
@@ -46,6 +46,9 @@ |
||
| 46 | 46 | return $this->source ?: $this->readFile($this->file); |
| 47 | 47 | } |
| 48 | 48 | |
| 49 | + /** |
|
| 50 | + * @param string $file |
|
| 51 | + */ |
|
| 49 | 52 | protected function readFile($file) |
| 50 | 53 | { |
| 51 | 54 | return file_get_contents($this->app->getAlias($file)); |