@@ -211,7 +211,7 @@ discard block |
||
| 211 | 211 | * |
| 212 | 212 | * @todo Mix in custom column mappings |
| 213 | 213 | * |
| 214 | - * @return array |
|
| 214 | + * @return string |
|
| 215 | 215 | **/ |
| 216 | 216 | public function getImportSpec() { |
| 217 | 217 | $spec = array(); |
@@ -237,7 +237,7 @@ discard block |
||
| 237 | 237 | * so this is mainly a customization method. |
| 238 | 238 | * |
| 239 | 239 | * @param mixed $val |
| 240 | - * @param string $field Name of the field as specified in the array-values for {@link self::$columnMap}. |
|
| 240 | + * @param string $fieldName Name of the field as specified in the array-values for {@link self::$columnMap}. |
|
| 241 | 241 | * @return boolean |
| 242 | 242 | */ |
| 243 | 243 | protected function isNullValue($val, $fieldName = null) { |
@@ -361,7 +361,7 @@ discard block |
||
| 361 | 361 | |
| 362 | 362 | /** |
| 363 | 363 | * @param $obj DataObject |
| 364 | - * @param $message string |
|
| 364 | + * @param string $message string |
|
| 365 | 365 | */ |
| 366 | 366 | public function addCreated($obj, $message = null) { |
| 367 | 367 | $this->created[] = $this->lastChange = array( |
@@ -374,7 +374,7 @@ discard block |
||
| 374 | 374 | |
| 375 | 375 | /** |
| 376 | 376 | * @param $obj DataObject |
| 377 | - * @param $message string |
|
| 377 | + * @param string $message string |
|
| 378 | 378 | */ |
| 379 | 379 | public function addUpdated($obj, $message = null) { |
| 380 | 380 | $this->updated[] = $this->lastChange = array( |
@@ -386,8 +386,8 @@ discard block |
||
| 386 | 386 | } |
| 387 | 387 | |
| 388 | 388 | /** |
| 389 | - * @param $obj DataObject |
|
| 390 | - * @param $message string |
|
| 389 | + * @param DataObject|null $obj DataObject |
|
| 390 | + * @param string $message string |
|
| 391 | 391 | */ |
| 392 | 392 | public function addDeleted($obj, $message = null) { |
| 393 | 393 | $data = $obj->toMap(); |
@@ -63,6 +63,7 @@ discard block |
||
| 63 | 63 | * while automatically busting this cache every time the file is changed. |
| 64 | 64 | * |
| 65 | 65 | * @param bool |
| 66 | + * @param boolean $var |
|
| 66 | 67 | */ |
| 67 | 68 | public static function set_suffix_requirements($var) { |
| 68 | 69 | self::backend()->set_suffix_requirements($var); |
@@ -123,7 +124,7 @@ discard block |
||
| 123 | 124 | /** |
| 124 | 125 | * Return all registered custom scripts |
| 125 | 126 | * |
| 126 | - * @return array |
|
| 127 | + * @return string |
|
| 127 | 128 | */ |
| 128 | 129 | public static function get_custom_scripts() { |
| 129 | 130 | return self::backend()->get_custom_scripts(); |
@@ -531,7 +532,7 @@ discard block |
||
| 531 | 532 | /** |
| 532 | 533 | * Enable or disable the combination of CSS and JavaScript files |
| 533 | 534 | * |
| 534 | - * @param $enable |
|
| 535 | + * @param boolean $enable |
|
| 535 | 536 | */ |
| 536 | 537 | public function set_combined_files_enabled($enable) { |
| 537 | 538 | $this->combined_files_enabled = (bool) $enable; |
@@ -599,6 +600,7 @@ discard block |
||
| 599 | 600 | * Forces the JavaScript requirements to the end of the body, right before the closing tag |
| 600 | 601 | * |
| 601 | 602 | * @param bool |
| 603 | + * @param boolean $var |
|
| 602 | 604 | */ |
| 603 | 605 | public function set_force_js_to_bottom($var) { |
| 604 | 606 | $this->force_js_to_bottom = $var; |
@@ -638,7 +640,7 @@ discard block |
||
| 638 | 640 | /** |
| 639 | 641 | * Return all registered custom scripts |
| 640 | 642 | * |
| 641 | - * @return array |
|
| 643 | + * @return string |
|
| 642 | 644 | */ |
| 643 | 645 | public function get_custom_scripts() { |
| 644 | 646 | $requirements = ""; |
@@ -1005,6 +1007,9 @@ discard block |
||
| 1005 | 1007 | } |
| 1006 | 1008 | } |
| 1007 | 1009 | |
| 1010 | + /** |
|
| 1011 | + * @param string $filePath |
|
| 1012 | + */ |
|
| 1008 | 1013 | protected function generateNonce($filePath) { |
| 1009 | 1014 | if(!file_exists($filePath)) return 'notfound'; |
| 1010 | 1015 | |
@@ -1061,7 +1066,7 @@ discard block |
||
| 1061 | 1066 | * @param array $files Array of filenames relative to docroot |
| 1062 | 1067 | * @param string $media |
| 1063 | 1068 | * |
| 1064 | - * @return bool|void |
|
| 1069 | + * @return false|null |
|
| 1065 | 1070 | */ |
| 1066 | 1071 | public function combine_files($combinedFileName, $files, $media = null) { |
| 1067 | 1072 | // duplicate check |