| @@ -54,6 +54,9 @@ discard block | ||
| 54 | 54 | $this->requireFile(BASE_PATH . '/themes/' . $theme . '/templates/' . $template, $content); | 
| 55 | 55 | } | 
| 56 | 56 | |
| 57 | + /** | |
| 58 | + * @param string $filename | |
| 59 | + */ | |
| 57 | 60 | protected function requireFile($filename, $content) | 
| 58 | 61 |      { | 
| 59 | 62 | // Already exists | 
| @@ -71,6 +74,9 @@ discard block | ||
| 71 | 74 | } | 
| 72 | 75 | } | 
| 73 | 76 | |
| 77 | + /** | |
| 78 | + * @param string $dirname | |
| 79 | + */ | |
| 74 | 80 | protected function requireDir($dirname) | 
| 75 | 81 |      { | 
| 76 | 82 | // Directory doesn't exist, create it and mark it for deletion | 
| @@ -242,7 +242,7 @@ | ||
| 242 | 242 | * Can a user view this SiteConfig instance? | 
| 243 | 243 | * | 
| 244 | 244 | * @param Member $member | 
| 245 | - * @return boolean | |
| 245 | + * @return boolean|string | |
| 246 | 246 | */ | 
| 247 | 247 | public function canView($member = null) | 
| 248 | 248 |      { | 
| @@ -134,7 +134,7 @@ | ||
| 134 | 134 | * | 
| 135 | 135 | * @param array $data | 
| 136 | 136 | * @param Form $form | 
| 137 | - * @return String | |
| 137 | + * @return \SilverStripe\ORM\FieldType\DBHTMLText | |
| 138 | 138 | */ | 
| 139 | 139 | public function save_siteconfig($data, $form) | 
| 140 | 140 |      { |