Completed
Push — php7-support ( ec5817...a3ee17 )
by Sam
09:34 queued 03:20
created
control/RequestHandler.php 1 patch
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -121,6 +121,7 @@  discard block
 block discarded – undo
121 121
 
122 122
 	/**
123 123
 	 * Set the DataModel for this request.
124
+	 * @param DataModel $model
124 125
 	 */
125 126
 	public function setDataModel($model) {
126 127
 		$this->model = $model;
@@ -238,6 +239,9 @@  discard block
 block discarded – undo
238 239
 		return $this;
239 240
 	}
240 241
 
242
+	/**
243
+	 * @param SS_HTTPRequest $request
244
+	 */
241 245
 	protected function findAction($request) {
242 246
 		$handlerClass = ($this->class) ? $this->class : get_class($this);
243 247
 
@@ -271,7 +275,7 @@  discard block
 block discarded – undo
271 275
 	 *
272 276
 	 * Must not raise SS_HTTPResponse_Exceptions - instead it should return
273 277
 	 *
274
-	 * @param $request
278
+	 * @param SS_HTTPRequest $request
275 279
 	 * @param $action
276 280
 	 * @return SS_HTTPResponse
277 281
 	 */
@@ -384,6 +388,7 @@  discard block
 block discarded – undo
384 388
 
385 389
 	/**
386 390
 	 * Return the class that defines the given action, so that we know where to check allowed_actions.
391
+	 * @return string|null
387 392
 	 */
388 393
 	protected function definingClassForAction($actionOrigCasing) {
389 394
 		$action = strtolower($actionOrigCasing);
@@ -493,6 +498,7 @@  discard block
 block discarded – undo
493 498
 	 * or {@link handleRequest()}, but in some based we want to set it manually.
494 499
 	 *
495 500
 	 * @param SS_HTTPRequest
501
+	 * @param SS_HTTPRequest $request
496 502
 	 */
497 503
 	public function setRequest($request) {
498 504
 		$this->request = $request;
Please login to merge, or discard this patch.
filesystem/File.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
 	 *
249 249
 	 * @param array $args Array of input shortcode arguments
250 250
 	 * @param int $errorCode If the file is not found, or is inaccessible, this will be assigned to a HTTP error code.
251
-	 * @return File|null The File DataObject, if it can be found.
251
+	 * @return null|DataObject The File DataObject, if it can be found.
252 252
 	 */
253 253
 	public static function find_shortcode_record($args, &$errorCode = null) {
254 254
 		// Validate shortcode
@@ -617,7 +617,7 @@  discard block
 block discarded – undo
617 617
 	 *
618 618
 	 * @param string $condition The PHP condition to be evaluated.  The page will be called $item
619 619
 	 * @param array $collator An array, passed by reference, to collect all of the matching descendants.
620
-	 * @return true|null
620
+	 * @return boolean|null
621 621
 	 */
622 622
 	public function collateDescendants($condition, &$collator) {
623 623
 		if($children = $this->Children()) {
@@ -978,6 +978,7 @@  discard block
 block discarded – undo
978 978
 	 *
979 979
 	 * @param String File extension, without dot prefix. Use an asterisk ('*')
980 980
 	 * to specify a generic fallback if no mapping is found for an extension.
981
+	 * @param string $ext
981 982
 	 * @return String Classname for a subclass of {@link File}
982 983
 	 */
983 984
 	public static function get_class_for_file_extension($ext) {
@@ -1115,7 +1116,6 @@  discard block
 block discarded – undo
1115 1116
 	 * Note that the result will not have a leading slash, and should not be used
1116 1117
 	 * with local file paths.
1117 1118
 	 *
1118
-	 * @param string $part,... Parts
1119 1119
 	 * @return string
1120 1120
 	 */
1121 1121
 	public static function join_paths() {
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
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 	/**
50 50
 	 * Assign a new configuration instance or identifier
51 51
 	 *
52
-	 * @param string|HtmlEditorConfig $config
52
+	 * @param string $config
53 53
 	 * @return $this
54 54
 	 */
55 55
 	public function setEditorConfig($config) {
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 	 *
64 64
 	 * @param string $name The internal field name, passed to forms.
65 65
 	 * @param string $title The human-readable field label.
66
-	 * @param mixed $value The value of the field.
66
+	 * @param integer $value The value of the field.
67 67
 	 * @param string $config HtmlEditorConfig identifier to be used. Default to the active one.
68 68
 	 */
69 69
 	public function __construct($name, $title = null, $value = '', $config = null) {
@@ -104,6 +104,9 @@  discard block
 block discarded – undo
104 104
 		$record->{$this->name} = $htmlValue->getContent();
105 105
 	}
106 106
 
107
+	/**
108
+	 * @param string|null $value
109
+	 */
107 110
 	public function setValue($value) {
108 111
 		// Regenerate links prior to preview, so that the editor can see them.
109 112
 		$value = Image::regenerate_html_links($value);
@@ -171,6 +174,10 @@  discard block
 block discarded – undo
171 174
 
172 175
 	protected $controller, $name;
173 176
 
177
+	/**
178
+	 * @param Controller $controller
179
+	 * @param string $name
180
+	 */
174 181
 	public function __construct($controller, $name) {
175 182
 		parent::__construct();
176 183
 
@@ -189,7 +196,7 @@  discard block
 block discarded – undo
189 196
 	/**
190 197
 	 * Searches the SiteTree for display in the dropdown
191 198
 	 *
192
-	 * @return callback
199
+	 * @return DataList
193 200
 	 */
194 201
 	public function siteTreeSearchCallback($sourceObject, $labelField, $search) {
195 202
 		return DataObject::get($sourceObject)->filterAny(array(
@@ -467,7 +474,7 @@  discard block
 block discarded – undo
467 474
 	/**
468 475
 	 * Find all anchors available on the given page.
469 476
 	 *
470
-	 * @return array
477
+	 * @return string
471 478
 	 */
472 479
 	public function getanchors() {
473 480
 		$id = (int)$this->getRequest()->getVar('PageID');
@@ -1025,7 +1032,7 @@  discard block
 block discarded – undo
1025 1032
 	/**
1026 1033
 	 * Get OEmbed type
1027 1034
 	 *
1028
-	 * @return string
1035
+	 * @return boolean
1029 1036
 	 */
1030 1037
 	public function getType() {
1031 1038
 		return $this->oembed->type;
Please login to merge, or discard this patch.