Completed
Push — master ( 98eea6...214a1e )
by Damian
15s
created
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.
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.