Completed
Pull Request — 3.4 (#6522)
by Chris
09:33
created
model/URLSegmentFilter.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -89,6 +89,7 @@
 block discarded – undo
89 89
 	 * Determines if the field should render open or closed by default.
90 90
 	 * 
91 91
 	 * @param boolean
92
+	 * @param boolean $bool
92 93
 	 */
93 94
 	public function startClosed($bool) {
94 95
 		($bool) ? $this->addExtraClass('startClosed') : $this->removeExtraClass('startClosed');
Please login to merge, or discard this patch.
oembed/Oembed.php 1 patch
Doc Comments   +6 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,6 +46,7 @@  discard block
 block discarded – undo
46 46
 	 *
47 47
 	 * @param $url Human-readable URL.
48 48
 	 * @returns string/bool URL of an endpoint, or false if no matching provider exists.
49
+	 * @return string
49 50
 	 */
50 51
 	protected static function find_endpoint($url) {
51 52
 		foreach(self::get_providers() as $scheme=>$endpoint) {
@@ -117,7 +118,7 @@  discard block
 block discarded – undo
117 118
 	 * Given a response body, determine if there is an autodiscover url
118 119
 	 *
119 120
 	 * @param string $body
120
-	 * @return bool|string
121
+	 * @return string|false
121 122
 	 */
122 123
 	public static function autodiscover_from_body($body) {
123 124
 		// Look within the body for an oembed link.
@@ -259,6 +260,9 @@  discard block
 block discarded – undo
259 260
 		parent::__construct();
260 261
 	}
261 262
 
263
+	/**
264
+	 * @return string
265
+	 */
262 266
 	public function getOembedURL() {
263 267
 		return $this->url;
264 268
 	}
@@ -343,6 +347,7 @@  discard block
 block discarded – undo
343 347
 
344 348
 	/**
345 349
 	 * Wrap the check for looking into Oembed JSON within $this->data.
350
+	 * @param string $field
346 351
 	 */
347 352
 	public function hasField($field) {
348 353
 		$this->loadData();
Please login to merge, or discard this patch.
security/Security.php 1 patch
Doc Comments   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -466,7 +466,7 @@  discard block
 block discarded – undo
466 466
 	 * Combine the given forms into a formset with a tabbed interface
467 467
 	 *
468 468
 	 * @param array $forms List of LoginForm instances
469
-	 * @return string
469
+	 * @return HTMLText
470 470
 	 */
471 471
 	protected function generateLoginFormSet($forms) {
472 472
 		$viewData = new ArrayData(array(
@@ -646,7 +646,6 @@  discard block
 block discarded – undo
646 646
 	 * - t: plaintext token
647 647
 	 *
648 648
 	 * @param Member $member Member object associated with this link.
649
-	 * @param string $autoLoginHash The auto login token.
650 649
 	 */
651 650
 	public static function getPasswordResetLink($member, $autologinToken) {
652 651
 		$autologinToken = urldecode($autologinToken);
@@ -737,7 +736,7 @@  discard block
 block discarded – undo
737 736
 	/**
738 737
 	 * Factory method for the lost password form
739 738
 	 *
740
-	 * @return Form Returns the lost password form
739
+	 * @return Security Returns the lost password form
741 740
 	 */
742 741
 	public function ChangePasswordForm() {
743 742
 		return Object::create('ChangePasswordForm', $this, 'ChangePasswordForm');
@@ -921,7 +920,7 @@  discard block
 block discarded – undo
921 920
 	 * @deprecated 4.0 Use the "Security.password_encryption_algorithm" config setting instead
922 921
 	 * @param string $algorithm One of the available password encryption
923 922
 	 *  algorithms determined by {@link Security::get_encryption_algorithms()}
924
-	 * @return bool Returns TRUE if the passed algorithm was valid, otherwise FALSE.
923
+	 * @return boolean|null Returns TRUE if the passed algorithm was valid, otherwise FALSE.
925 924
 	 */
926 925
 	public static function set_password_encryption_algorithm($algorithm) {
927 926
 		Deprecation::notice('4.0', 'Use the "Security.password_encryption_algorithm" config setting instead');
@@ -1076,7 +1075,7 @@  discard block
 block discarded – undo
1076 1075
 	/**
1077 1076
 	 * Set to true to ignore access to disallowed actions, rather than returning permission failure
1078 1077
 	 * Note that this is just a flag that other code needs to check with Security::ignore_disallowed_actions()
1079
-	 * @param $flag True or false
1078
+	 * @param boolean $flag True or false
1080 1079
 	 */
1081 1080
 	public static function set_ignore_disallowed_actions($flag) {
1082 1081
 		self::$ignore_disallowed_actions = $flag;
Please login to merge, or discard this patch.
model/Versioned.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -764,7 +764,7 @@  discard block
 block discarded – undo
764 764
 	 * Extend permissions to include additional security for objects that are not published to live.
765 765
 	 *
766 766
 	 * @param Member $member
767
-	 * @return bool|null
767
+	 * @return false|null
768 768
 	 */
769 769
 	public function canView($member = null) {
770 770
 		// Invoke default version-gnostic canView
@@ -838,7 +838,7 @@  discard block
 block discarded – undo
838 838
 	 *
839 839
 	 * @param string $stage
840 840
 	 * @param Member $member
841
-	 * @return bool
841
+	 * @return boolean|string
842 842
 	 */
843 843
 	public function canViewStage($stage = 'Live', $member = null) {
844 844
 		$oldMode = Versioned::get_reading_mode();
@@ -904,7 +904,7 @@  discard block
 block discarded – undo
904 904
 	/**
905 905
 	 * Get the latest published version of this object.
906 906
 	 *
907
-	 * @return DataObject
907
+	 * @return string
908 908
 	 */
909 909
 	public function latestPublished() {
910 910
 		// Get the root data object class - this will have the version field
@@ -1028,7 +1028,7 @@  discard block
 block discarded – undo
1028 1028
 	 * @param string $limit
1029 1029
 	 * @param string $join Deprecated, use leftJoin($table, $joinClause) instead
1030 1030
 	 * @param string $having
1031
-	 * @return DataList
1031
+	 * @return ArrayList
1032 1032
 	 */
1033 1033
 	public function Versions($filter = "", $sort = "", $limit = "", $join = "", $having = "") {
1034 1034
 		return $this->allVersions($filter, $sort, $limit, $join, $having);
@@ -1042,7 +1042,7 @@  discard block
 block discarded – undo
1042 1042
 	 * @param  string $limit
1043 1043
 	 * @param  string $join Deprecated, use leftJoin($table, $joinClause) instead
1044 1044
 	 * @param  string $having
1045
-	 * @return DataList
1045
+	 * @return ArrayList
1046 1046
 	 */
1047 1047
 	public function allVersions($filter = "", $sort = "", $limit = "", $join = "", $having = "") {
1048 1048
 		// Make sure the table names are not postfixed (e.g. _Live)
@@ -1360,7 +1360,7 @@  discard block
 block discarded – undo
1360 1360
 	 * @param string     $filter         A filter to be inserted into the WHERE clause.
1361 1361
 	 * @param string     $sort           A sort expression to be inserted into the ORDER BY clause.
1362 1362
 	 * @param string     $join           Deprecated, use leftJoin($table, $joinClause) instead
1363
-	 * @param string|int $limit          A limit on the number of records returned from the database.
1363
+	 * @param integer $limit          A limit on the number of records returned from the database.
1364 1364
 	 * @param string     $containerClass The container class for the result set (default is DataList)
1365 1365
 	 *
1366 1366
 	 * @return DataList A modified DataList designated to the specified stage
Please login to merge, or discard this patch.
email/Email.php 1 patch
Doc Comments   +10 added lines, -2 removed lines patch added patch discarded remove patch
@@ -197,6 +197,10 @@  discard block
 block discarded – undo
197 197
 		Deprecation::notice('4.0', 'Use "emailbouncehandler" module');
198 198
 	}
199 199
 
200
+	/**
201
+	 * @param string $filename
202
+	 * @param string $mimetype
203
+	 */
200 204
 	public function attachFile($filename, $attachedFilename = null, $mimetype = null) {
201 205
 		if(!$attachedFilename) $attachedFilename = basename($filename);
202 206
 		$absoluteFileName = Director::getAbsFile($filename);
@@ -372,6 +376,9 @@  discard block
 block discarded – undo
372 376
 		return $this->ss_template;
373 377
 	}
374 378
 
379
+	/**
380
+	 * @return ViewableData
381
+	 */
375 382
 	protected function templateData() {
376 383
 		if($this->template_data) {
377 384
 			return $this->template_data->customise(array(
@@ -454,6 +461,7 @@  discard block
 block discarded – undo
454 461
 
455 462
 	/**
456 463
 	 * Validates the email address. Returns true of false
464
+	 * @param string $address
457 465
 	 * @return mixed
458 466
 	 */
459 467
 	public static function validEmailAddress($address) {
@@ -676,8 +684,8 @@  discard block
 block discarded – undo
676 684
 	/**
677 685
 	 * Checks for RFC822-valid email format.
678 686
 	 *
679
-	 * @param string $str
680
-	 * @return boolean
687
+	 * @param string $email
688
+	 * @return integer
681 689
 	 *
682 690
 	 * @copyright Cal Henderson <[email protected]>
683 691
 	 * 	This code is licensed under a Creative Commons Attribution-ShareAlike 2.5 License
Please login to merge, or discard this patch.