@@ -95,6 +95,8 @@ discard block |
||
| 95 | 95 | |
| 96 | 96 | /** |
| 97 | 97 | * Override the function that constructs the result arrays to also prepare a 'php' item in the array |
| 98 | + * @param string $matchrule |
|
| 99 | + * @param string $name |
|
| 98 | 100 | */ |
| 99 | 101 | function construct($matchrule, $name, $arguments = null) |
| 100 | 102 | { |
@@ -163,9 +165,9 @@ discard block |
||
| 163 | 165 | |
| 164 | 166 | /** |
| 165 | 167 | * Ensures that the arguments to addOpenBlock and addClosedBlock are valid |
| 166 | - * @param $name |
|
| 167 | - * @param $callable |
|
| 168 | - * @param $type |
|
| 168 | + * @param string $name |
|
| 169 | + * @param callable $callable |
|
| 170 | + * @param string $type |
|
| 169 | 171 | * @throws InvalidArgumentException |
| 170 | 172 | */ |
| 171 | 173 | protected function validateExtensionBlock($name, $callable, $type) |
@@ -924,6 +926,7 @@ discard block |
||
| 924 | 926 | * The basic generated PHP of LookupStep and LastLookupStep is the same, except that LookupStep calls 'obj' to |
| 925 | 927 | * get the next ViewableData in the sequence, and LastLookupStep calls different methods (XML_val, hasValue, obj) |
| 926 | 928 | * depending on the context the lookup is used in. |
| 929 | + * @param string $method |
|
| 927 | 930 | */ |
| 928 | 931 | function Lookup_AddLookupStep(&$res, $sub, $method) |
| 929 | 932 | { |
@@ -6477,6 +6480,7 @@ discard block |
||
| 6477 | 6480 | |
| 6478 | 6481 | /** |
| 6479 | 6482 | * @param string $code |
| 6483 | + * @param string $templateName |
|
| 6480 | 6484 | * @return string $code |
| 6481 | 6485 | */ |
| 6482 | 6486 | protected function includeDebuggingComments($code, $templateName) |
@@ -116,6 +116,8 @@ discard block |
||
| 116 | 116 | |
| 117 | 117 | /** |
| 118 | 118 | * Override the function that constructs the result arrays to also prepare a 'php' item in the array |
| 119 | + * @param string $matchrule |
|
| 120 | + * @param string $name |
|
| 119 | 121 | */ |
| 120 | 122 | public function construct($matchrule, $name, $arguments = null) |
| 121 | 123 | { |
@@ -184,9 +186,9 @@ discard block |
||
| 184 | 186 | |
| 185 | 187 | /** |
| 186 | 188 | * Ensures that the arguments to addOpenBlock and addClosedBlock are valid |
| 187 | - * @param $name |
|
| 188 | - * @param $callable |
|
| 189 | - * @param $type |
|
| 189 | + * @param string $name |
|
| 190 | + * @param callable $callable |
|
| 191 | + * @param string $type |
|
| 190 | 192 | * @throws InvalidArgumentException |
| 191 | 193 | */ |
| 192 | 194 | protected function validateExtensionBlock($name, $callable, $type) |
@@ -277,6 +279,7 @@ discard block |
||
| 277 | 279 | * The basic generated PHP of LookupStep and LastLookupStep is the same, except that LookupStep calls 'obj' to |
| 278 | 280 | * get the next ViewableData in the sequence, and LastLookupStep calls different methods (XML_val, hasValue, obj) |
| 279 | 281 | * depending on the context the lookup is used in. |
| 282 | + * @param string $method |
|
| 280 | 283 | */ |
| 281 | 284 | public function Lookup_AddLookupStep(&$res, $sub, $method) |
| 282 | 285 | { |
@@ -1279,6 +1282,7 @@ discard block |
||
| 1279 | 1282 | |
| 1280 | 1283 | /** |
| 1281 | 1284 | * @param string $code |
| 1285 | + * @param string $templateName |
|
| 1282 | 1286 | * @return string $code |
| 1283 | 1287 | */ |
| 1284 | 1288 | protected function includeDebuggingComments($code, $templateName) |
@@ -648,7 +648,7 @@ discard block |
||
| 648 | 648 | * @param mixed $data Data context |
| 649 | 649 | * @param array $arguments Additional arguments |
| 650 | 650 | * @param Object $scope |
| 651 | - * @return string Evaluated result |
|
| 651 | + * @return DBHTMLText Evaluated result |
|
| 652 | 652 | */ |
| 653 | 653 | public static function execute_template($template, $data, $arguments = null, $scope = null) |
| 654 | 654 | { |
@@ -676,6 +676,9 @@ discard block |
||
| 676 | 676 | return $v->process($data, $arguments); |
| 677 | 677 | } |
| 678 | 678 | |
| 679 | + /** |
|
| 680 | + * @param string $content |
|
| 681 | + */ |
|
| 679 | 682 | public function parseTemplateContent($content, $template = "") |
| 680 | 683 | { |
| 681 | 684 | return $this->getParser()->compileString( |
@@ -33,6 +33,10 @@ discard block |
||
| 33 | 33 | */ |
| 34 | 34 | protected $underlay; |
| 35 | 35 | |
| 36 | + /** |
|
| 37 | + * @param ViewableData $item |
|
| 38 | + * @param ViewableData $inheritedScope |
|
| 39 | + */ |
|
| 36 | 40 | public function __construct($item, $overlay = null, $underlay = null, $inheritedScope = null) |
| 37 | 41 | { |
| 38 | 42 | parent::__construct($item, $inheritedScope); |
@@ -65,6 +69,10 @@ discard block |
||
| 65 | 69 | $this->underlay = $underlay ? $underlay : array(); |
| 66 | 70 | } |
| 67 | 71 | |
| 72 | + /** |
|
| 73 | + * @param string $interfaceToQuery |
|
| 74 | + * @param string $variableMethod |
|
| 75 | + */ |
|
| 68 | 76 | protected function createCallableArray(&$extraArray, $interfaceToQuery, $variableMethod, $createObject = false) |
| 69 | 77 | { |
| 70 | 78 | $implementers = ClassInfo::implementorsOf($interfaceToQuery); |
@@ -30,6 +30,9 @@ |
||
| 30 | 30 | */ |
| 31 | 31 | protected $cacheTemplate; |
| 32 | 32 | |
| 33 | + /** |
|
| 34 | + * @param string $content |
|
| 35 | + */ |
|
| 33 | 36 | public function __construct($content, TemplateParser $parser = null) |
| 34 | 37 | { |
| 35 | 38 | if ($parser) { |
@@ -634,6 +634,9 @@ discard block |
||
| 634 | 634 | } |
| 635 | 635 | |
| 636 | 636 | |
| 637 | + /** |
|
| 638 | + * @param string $fileID |
|
| 639 | + */ |
|
| 637 | 640 | public function getOriginalFilename($fileID) { |
| 638 | 641 | return parent::getOriginalFilename($fileID); |
| 639 | 642 | } |
@@ -642,6 +645,9 @@ discard block |
||
| 642 | 645 | return parent::removeVariant($fileID); |
| 643 | 646 | } |
| 644 | 647 | |
| 648 | + /** |
|
| 649 | + * @param null|string $variant |
|
| 650 | + */ |
|
| 645 | 651 | public function getDefaultConflictResolution($variant) { |
| 646 | 652 | return parent::getDefaultConflictResolution($variant); |
| 647 | 653 | } |
@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | |
| 11 | 11 | /** |
| 12 | 12 | * This is a helper method for getting a new manifest |
| 13 | - * @param $name |
|
| 13 | + * @param string $name |
|
| 14 | 14 | * @return any |
| 15 | 15 | */ |
| 16 | 16 | protected function getConfigFixtureValue($name) { |
@@ -20,6 +20,7 @@ discard block |
||
| 20 | 20 | |
| 21 | 21 | /** |
| 22 | 22 | * This is a helper method for displaying a relevant message about a parsing failure |
| 23 | + * @param string $path |
|
| 23 | 24 | */ |
| 24 | 25 | protected function getParsedAsMessage($path) { |
| 25 | 26 | return sprintf('Reference path "%s" failed to parse correctly', $path); |
@@ -41,7 +42,7 @@ discard block |
||
| 41 | 42 | |
| 42 | 43 | /** |
| 43 | 44 | * A helper method to return a mock of the manifest in order to test expectations and reduce dependency |
| 44 | - * @param $methods |
|
| 45 | + * @param string[] $methods |
|
| 45 | 46 | * @return SS_ConfigManifest |
| 46 | 47 | */ |
| 47 | 48 | protected function getManifestMock($methods) { |
@@ -608,6 +608,11 @@ |
||
| 608 | 608 | 'ObjectTest_Extending_Extension' |
| 609 | 609 | ); |
| 610 | 610 | |
| 611 | + /** |
|
| 612 | + * @param integer $first |
|
| 613 | + * @param integer $second |
|
| 614 | + * @param integer $third |
|
| 615 | + */ |
|
| 611 | 616 | public function getResults(&$first, &$second, &$third) { |
| 612 | 617 | // Before extending should be invoked second |
| 613 | 618 | $this->beforeExtending('updateResult', function(&$first, &$second, &$third) { |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | /** |
| 25 | 25 | * Modify method visibility to public for testing |
| 26 | 26 | * |
| 27 | - * @param mixed $errors |
|
| 27 | + * @param string $errors |
|
| 28 | 28 | */ |
| 29 | 29 | public function setDisplayErrors($errors) |
| 30 | 30 | { |
@@ -33,6 +33,10 @@ discard block |
||
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | // Change function visibility to be testable directly |
| 36 | + |
|
| 37 | + /** |
|
| 38 | + * @param string $memstring |
|
| 39 | + */ |
|
| 36 | 40 | public function translateMemstring($memstring) { |
| 37 | 41 | return parent::translateMemstring($memstring); |
| 38 | 42 | } |