Completed
Push — master ( 9e3f76...51d53f )
by Hamish
10:45
created
view/Requirements.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,6 +65,7 @@  discard block
 block discarded – undo
65 65
 	 * while automatically busting this cache every time the file is changed.
66 66
 	 *
67 67
 	 * @param bool
68
+	 * @param boolean $var
68 69
 	 */
69 70
 	public static function set_suffix_requirements($var) {
70 71
 		self::backend()->setSuffixRequirements($var);
@@ -336,7 +337,7 @@  discard block
 block discarded – undo
336 337
 	 * </code>
337 338
 	 *
338 339
 	 * @param string $combinedFileName Filename of the combined file relative to docroot
339
-	 * @param array  $files            Array of filenames relative to docroot
340
+	 * @param string[]  $files            Array of filenames relative to docroot
340 341
 	 * @param string $media
341 342
 	 *
342 343
 	 * @return bool|void
@@ -761,6 +762,7 @@  discard block
 block discarded – undo
761 762
 	 * Forces the JavaScript requirements to the end of the body, right before the closing tag
762 763
 	 *
763 764
 	 * @param bool
765
+	 * @param boolean $var
764 766
 	 * @return $this
765 767
 	 */
766 768
 	public function setForceJSToBottom($var) {
Please login to merge, or discard this patch.
forms/gridfield/GridField.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
 	 *
200 200
 	 * @todo refactor this into GridFieldComponent
201 201
 	 *
202
-	 * @param mixed $value
202
+	 * @param string $value
203 203
 	 * @param string|array $castingDefinition
204 204
 	 *
205 205
 	 * @return mixed
@@ -286,7 +286,7 @@  discard block
 block discarded – undo
286 286
 	 *
287 287
 	 * @param array $properties
288 288
 	 *
289
-	 * @return HTMLText
289
+	 * @return DBField
290 290
 	 */
291 291
 	public function FieldHolder($properties = array()) {
292 292
 		Requirements::css(THIRDPARTY_DIR . '/jquery-ui-themes/smoothness/jquery-ui.css');
@@ -600,7 +600,7 @@  discard block
 block discarded – undo
600 600
 	/**
601 601
 	 * @param array $properties
602 602
 	 *
603
-	 * @return HTMLText
603
+	 * @return DBField
604 604
 	 */
605 605
 	public function Field($properties = array()) {
606 606
 		$this->extend('onBeforeRender', $this);
Please login to merge, or discard this patch.
model/ArrayList.php 1 patch
Doc Comments   +5 added lines, -6 removed lines patch added patch discarded remove patch
@@ -379,7 +379,7 @@  discard block
 block discarded – undo
379 379
 	 *
380 380
 	 * Note that columns may be double quoted as per ANSI sql standard
381 381
 	 *
382
-	 * @return DataList
382
+	 * @return ArrayList
383 383
 	 * @see SS_List::sort()
384 384
 	 * @example $list->sort('Name'); // default ASC sorting
385 385
 	 * @example $list->sort('Name DESC'); // DESC sorting
@@ -515,7 +515,7 @@  discard block
 block discarded – undo
515 515
 	 *          $list = $list->filterAny(array('Name'=>array('bob','phil'), 'Age'=>array(21, 43)));
516 516
 	 *
517 517
 	 * @param string|array See {@link filter()}
518
-	 * @return DataList
518
+	 * @return ArrayList
519 519
 	 */
520 520
 	public function filterAny() {
521 521
 		$keepUs = call_user_func_array(array($this, 'normaliseFilterArgs'), func_get_args());
@@ -582,6 +582,9 @@  discard block
 block discarded – undo
582 582
 		return $this->filter('ID', $ids);
583 583
 	}
584 584
 
585
+	/**
586
+	 * @param integer $id
587
+	 */
585 588
 	public function byID($id) {
586 589
 		$firstElement = $this->filter("ID", $id)->first();
587 590
 
@@ -666,7 +669,6 @@  discard block
 block discarded – undo
666 669
 	/**
667 670
 	 * Returns whether an item with $key exists
668 671
 	 *
669
-	 * @param mixed $key
670 672
 	 * @return bool
671 673
 	 */
672 674
 	public function offsetExists($offset) {
@@ -676,7 +678,6 @@  discard block
 block discarded – undo
676 678
 	/**
677 679
 	 * Returns item stored in list with index $key
678 680
 	 *
679
-	 * @param mixed $key
680 681
 	 * @return DataObject
681 682
 	 */
682 683
 	public function offsetGet($offset) {
@@ -686,7 +687,6 @@  discard block
 block discarded – undo
686 687
 	/**
687 688
 	 * Set an item with the key in $key
688 689
 	 *
689
-	 * @param mixed $key
690 690
 	 * @param mixed $value
691 691
 	 */
692 692
 	public function offsetSet($offset, $value) {
@@ -700,7 +700,6 @@  discard block
 block discarded – undo
700 700
 	/**
701 701
 	 * Unset an item with the key in $key
702 702
 	 *
703
-	 * @param mixed $key
704 703
 	 */
705 704
 	public function offsetUnset($offset) {
706 705
 		unset($this->items[$offset]);
Please login to merge, or discard this patch.
admin/code/LeftAndMain.php 1 patch
Doc Comments   +7 added lines, -3 removed lines patch added patch discarded remove patch
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
 	/**
187 187
 	 * Gets the combined configuration of all LeafAndMain subclasses required by the client app.
188 188
 	 *
189
-	 * @return array
189
+	 * @return string
190 190
 	 *
191 191
 	 * WARNING: Experimental API
192 192
 	 */
@@ -876,6 +876,7 @@  discard block
 block discarded – undo
876 876
 	 * Return a list of appropriate templates for this class, with the given suffix using
877 877
 	 * {@link SSViewer::get_templates_by_class()}
878 878
 	 *
879
+	 * @param string $suffix
879 880
 	 * @return array
880 881
 	 */
881 882
 	public function getTemplatesWithSuffix($suffix) {
@@ -1745,7 +1746,7 @@  discard block
 block discarded – undo
1745 1746
 	 * The controller might not have any previewable content, in which case
1746 1747
 	 * this method returns FALSE.
1747 1748
 	 *
1748
-	 * @return String|boolean
1749
+	 * @return boolean
1749 1750
 	 */
1750 1751
 	public function LinkPreview() {
1751 1752
 		return false;
@@ -1932,7 +1933,7 @@  discard block
 block discarded – undo
1932 1933
 	}
1933 1934
 
1934 1935
 	/**
1935
-	 * @return String
1936
+	 * @return DBField
1936 1937
 	 */
1937 1938
 	public function Locale() {
1938 1939
 		return DBField::create_field('Locale', i18n::get_locale());
@@ -2098,6 +2099,9 @@  discard block
 block discarded – undo
2098 2099
 		return (parent::isFinished() || $this->isFinished);
2099 2100
 	}
2100 2101
 
2102
+	/**
2103
+	 * @param boolean $bool
2104
+	 */
2101 2105
 	public function setIsFinished($bool) {
2102 2106
 		$this->isFinished = $bool;
2103 2107
 	}
Please login to merge, or discard this patch.
model/UnsavedRelationList.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@
 block discarded – undo
146 146
 	 * Add a number of items to the relation.
147 147
 	 *
148 148
 	 * @param array $items Items to add, as either DataObjects or IDs.
149
-	 * @return DataList
149
+	 * @return UnsavedRelationList
150 150
 	 */
151 151
 	public function addMany($items) {
152 152
 		foreach($items as $item) {
Please login to merge, or discard this patch.
forms/htmleditor/HTMLEditorConfig.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@
 block discarded – undo
138 138
 	 * Get the current value of an option
139 139
      *
140 140
 	 * @param string $key The key of the option to get
141
-	 * @return mixed The value of the specified option
141
+	 * @return string The value of the specified option
142 142
 	 */
143 143
 	abstract public function getOption($key);
144 144
 
Please login to merge, or discard this patch.
forms/HTMLEditorSanitiser.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 	/**
40 40
 	 * Given a TinyMCE pattern (close to unix glob style), create a regex that does the match
41 41
 	 *
42
-	 * @param $str - The TinyMCE pattern
42
+	 * @param string|null $str - The TinyMCE pattern
43 43
 	 * @return string - The equivalent regex
44 44
 	 */
45 45
 	protected function patternToRegex($str) {
@@ -180,6 +180,7 @@  discard block
 block discarded – undo
180 180
 	/**
181 181
 	 * Given an attribute name, return the rule structure for that attribute
182 182
 	 * @param string $name - The attribute name
183
+	 * @param stdClass $elementRule
183 184
 	 * @return stdClass - The attribute rule
184 185
 	 */
185 186
 	protected function getRuleForAttribute($elementRule, $name) {
Please login to merge, or discard this patch.
view/SSTemplateParser.php.inc 1 patch
Doc Comments   +9 added lines, -5 removed lines patch added patch discarded remove patch
@@ -111,6 +111,8 @@  discard block
 block discarded – undo
111 111
 
112 112
 	/**
113 113
 	 * Override the function that constructs the result arrays to also prepare a 'php' item in the array
114
+	 * @param string $matchrule
115
+	 * @param string $name
114 116
 	 */
115 117
 	function construct($matchrule, $name, $arguments = null) {
116 118
 		$res = parent::construct($matchrule, $name, $arguments);
@@ -172,9 +174,9 @@  discard block
 block discarded – undo
172 174
 
173 175
 	/**
174 176
 	 * Ensures that the arguments to addOpenBlock and addClosedBlock are valid
175
-	 * @param $name
176
-	 * @param $callable
177
-	 * @param $type
177
+	 * @param string $name
178
+	 * @param callable $callable
179
+	 * @param string $type
178 180
 	 * @throws InvalidArgumentException
179 181
 	 */
180 182
 	protected function validateExtensionBlock($name, $callable, $type) {
@@ -737,6 +739,7 @@  discard block
 block discarded – undo
737 739
 	 * The basic generated PHP of LookupStep and LastLookupStep is the same, except that LookupStep calls 'obj' to
738 740
 	 * get the next ViewableData in the sequence, and LastLookupStep calls different methods (XML_val, hasValue, obj)
739 741
 	 * depending on the context the lookup is used in.
742
+	 * @param string $method
740 743
 	 */
741 744
 	function Lookup_AddLookupStep(&$res, $sub, $method) {
742 745
 		$res['LookupSteps'][] = $sub;
@@ -4691,8 +4694,8 @@  discard block
 block discarded – undo
4691 4694
 	 * Compiles some passed template source code into the php code that will execute as per the template source.
4692 4695
 	 *
4693 4696
 	 * @throws SSTemplateParseException
4694
-	 * @param  $string The source of the template
4695
-	 * @param string $templateName The name of the template, normally the filename the template source was loaded from
4697
+	 * @param  string $string The source of the template
4698
+	 * @param string string The name of the template, normally the filename the template source was loaded from
4696 4699
 	 * @param bool $includeDebuggingComments True is debugging comments should be included in the output
4697 4700
 	 * @param bool $topTemplate True if this is a top template, false if it's just a template
4698 4701
 	 * @return mixed|string The php that, when executed (via include or exec) will behave as per the template source
@@ -4732,6 +4735,7 @@  discard block
 block discarded – undo
4732 4735
 
4733 4736
 	/**
4734 4737
 	 * @param string $code
4738
+	 * @param string $templateName
4735 4739
 	 * @return string $code
4736 4740
 	 */
4737 4741
 	protected function includeDebuggingComments($code, $templateName) {
Please login to merge, or discard this patch.
forms/htmleditor/HTMLEditorField.php 1 patch
Doc Comments   +12 added lines, -5 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 	/**
61 61
 	 * Assign a new configuration instance or identifier
62 62
 	 *
63
-	 * @param string|HTMLEditorConfig $config
63
+	 * @param string $config
64 64
 	 * @return $this
65 65
 	 */
66 66
 	public function setEditorConfig($config) {
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 	 *
75 75
 	 * @param string $name The internal field name, passed to forms.
76 76
 	 * @param string $title The human-readable field label.
77
-	 * @param mixed $value The value of the field.
77
+	 * @param integer $value The value of the field.
78 78
 	 * @param string $config HTMLEditorConfig identifier to be used. Default to the active one.
79 79
 	 */
80 80
 	public function __construct($name, $title = null, $value = '', $config = null) {
@@ -115,6 +115,9 @@  discard block
 block discarded – undo
115 115
 		$record->{$this->name} = $htmlValue->getContent();
116 116
 	}
117 117
 
118
+	/**
119
+	 * @param string|null $value
120
+	 */
118 121
 	public function setValue($value) {
119 122
 		// Regenerate links prior to preview, so that the editor can see them.
120 123
 		$value = Image::regenerate_html_links($value);
@@ -182,6 +185,10 @@  discard block
 block discarded – undo
182 185
 
183 186
 	protected $controller, $name;
184 187
 
188
+	/**
189
+	 * @param Controller|null $controller
190
+	 * @param string $name
191
+	 */
185 192
 	public function __construct($controller, $name) {
186 193
 		parent::__construct();
187 194
 
@@ -200,7 +207,7 @@  discard block
 block discarded – undo
200 207
 	/**
201 208
 	 * Searches the SiteTree for display in the dropdown
202 209
 	 *
203
-	 * @return callback
210
+	 * @return DataList
204 211
 	 */
205 212
 	public function siteTreeSearchCallback($sourceObject, $labelField, $search) {
206 213
 		return DataObject::get($sourceObject)->filterAny(array(
@@ -580,7 +587,7 @@  discard block
 block discarded – undo
580 587
 	/**
581 588
 	 * Find all anchors available on the given page.
582 589
 	 *
583
-	 * @return array
590
+	 * @return string
584 591
 	 * @throws SS_HTTPResponse_Exception
585 592
 	 */
586 593
 	public function getanchors() {
@@ -1156,7 +1163,7 @@  discard block
 block discarded – undo
1156 1163
 	}
1157 1164
 
1158 1165
 	/**
1159
-	 * @return AdapterInterface
1166
+	 * @return Embed
1160 1167
 	 */
1161 1168
 	public function getEmbed() {
1162 1169
 		return $this->embed;
Please login to merge, or discard this patch.