Completed
Pull Request — master (#5942)
by Ingo
13:34
created
ORM/DataQuery.php 1 patch
Doc Comments   +8 added lines, -2 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
 	/**
91 91
 	 * Remove a filter from the query
92 92
 	 *
93
-	 * @param string|array $fieldExpression The predicate of the condition to remove
93
+	 * @param string|null $fieldExpression The predicate of the condition to remove
94 94
 	 * (ignoring parameters). The expression will be considered a match if it's
95 95
 	 * contained within any other predicate.
96 96
 	 * @return DataQuery Self reference
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
 	/**
170 170
 	 * Ensure that the query is ready to execute.
171 171
 	 *
172
-	 * @param array|null $queriedColumns Any columns to filter the query by
172
+	 * @param string[] $queriedColumns Any columns to filter the query by
173 173
 	 * @return SQLSelect The finalised sql query
174 174
 	 */
175 175
 	public function getFinalisedQuery($queriedColumns = null) {
@@ -1033,6 +1033,9 @@  discard block
 block discarded – undo
1033 1033
 	 */
1034 1034
 	protected $whereQuery;
1035 1035
 
1036
+	/**
1037
+	 * @param string $connective
1038
+	 */
1036 1039
 	public function __construct(DataQuery $base, $connective) {
1037 1040
 		parent::__construct($base->dataClass);
1038 1041
 		$this->query = $base->query;
@@ -1042,6 +1045,9 @@  discard block
 block discarded – undo
1042 1045
 		$base->where($this);
1043 1046
 	}
1044 1047
 
1048
+	/**
1049
+	 * @param string $filter
1050
+	 */
1045 1051
 	public function where($filter) {
1046 1052
 		if($filter) {
1047 1053
 			$this->whereQuery->addWhere($filter);
Please login to merge, or discard this patch.
admin/code/MemberImportForm.php 1 patch
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,6 +27,10 @@  discard block
 block discarded – undo
27 27
 	 */
28 28
 	protected $group;
29 29
 
30
+	/**
31
+	 * @param SecurityAdmin $controller
32
+	 * @param string $name
33
+	 */
30 34
 	public function __construct($controller, $name, $fields = null, $actions = null, $validator = null) {
31 35
 		if(!$fields) {
32 36
 			$helpHtml = _t(
@@ -113,7 +117,7 @@  discard block
 block discarded – undo
113 117
 	}
114 118
 
115 119
 	/**
116
-	 * @param $group Group
120
+	 * @param \SilverStripe\ORM\DataObject $group Group
117 121
 	 */
118 122
 	public function setGroup($group) {
119 123
 		$this->group = $group;
Please login to merge, or discard this patch.
admin/code/ModelAdmin.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -141,6 +141,9 @@  discard block
 block discarded – undo
141 141
 		Requirements::javascript(FRAMEWORK_ADMIN_DIR . '/client/dist/js/ModelAdmin.js');
142 142
 	}
143 143
 
144
+	/**
145
+	 * @param string $action
146
+	 */
144 147
 	public function Link($action = null) {
145 148
 		if(!$action) $action = $this->sanitiseClassName($this->modelClass);
146 149
 		return parent::Link($action);
@@ -194,7 +197,7 @@  discard block
 block discarded – undo
194 197
 	}
195 198
 
196 199
 	/**
197
-	 * @return SearchContext
200
+	 * @return Controller
198 201
 	 */
199 202
 	public function getSearchContext() {
200 203
 		$context = singleton($this->modelClass)->getDefaultSearchContext();
Please login to merge, or discard this patch.
admin/code/SecurityAdmin.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 	 * Shortcut action for setting the correct active tab.
67 67
 	 *
68 68
 	 * @param SS_HTTPRequest $request
69
-	 * @return SS_HTTPResponse
69
+	 * @return \SS_HTTPResponse
70 70
 	 */
71 71
 	public function users($request) {
72 72
 		return $this->index($request);
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 	 * Shortcut action for setting the correct active tab.
77 77
 	 *
78 78
 	 * @param SS_HTTPRequest $request
79
-	 * @return SS_HTTPResponse
79
+	 * @return \SS_HTTPResponse
80 80
 	 */
81 81
 	public function groups($request) {
82 82
 		return $this->index($request);
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 	 * Shortcut action for setting the correct active tab.
87 87
 	 *
88 88
 	 * @param SS_HTTPRequest $request
89
-	 * @return SS_HTTPResponse
89
+	 * @return \SS_HTTPResponse
90 90
 	 */
91 91
 	public function roles($request) {
92 92
 		return $this->index($request);
Please login to merge, or discard this patch.
core/manifest/ConfigManifest.php 1 patch
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 
111 111
 	/**
112 112
 	 * Provides a hook for mock unit tests despite no DI
113
-	 * @return Zend_Cache_Frontend
113
+	 * @return Zend_Cache_Core
114 114
 	 */
115 115
 	protected function getCache()
116 116
 	{
@@ -244,6 +244,9 @@  discard block
 block discarded – undo
244 244
 	 * splt/complete before and after matchers)
245 245
 	 *
246 246
 	 * Public so that ManifestFileFinder can call it. Not for general use.
247
+	 * @param string $basename
248
+	 * @param string $pathname
249
+	 * @param boolean $depth
247 250
 	 */
248 251
 	public function addYAMLConfigFile($basename, $pathname, $depth) {
249 252
 		if (!preg_match('{/([^/]+)/_config/}', $pathname, $match)) return;
@@ -467,7 +470,7 @@  discard block
 block discarded – undo
467 470
 	 * Returns false if the prefilterable parts of the rule aren't met, and true if they are
468 471
 	 *
469 472
 	 * @param  $rules array - A hash of rules as allowed in the only or except portion of a config fragment header
470
-	 * @return bool - True if the rules are met, false if not. (Note that depending on whether we were passed an
473
+	 * @return boolean|string - True if the rules are met, false if not. (Note that depending on whether we were passed an
471 474
 	 *                only or an except rule,
472 475
 	 * which values means accept or reject a fragment
473 476
 	 */
Please login to merge, or discard this patch.
forms/gridfield/GridFieldDetailForm.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -307,6 +307,9 @@  discard block
 block discarded – undo
307 307
 		parent::__construct();
308 308
 	}
309 309
 
310
+	/**
311
+	 * @param string $action
312
+	 */
310 313
 	public function Link($action = null) {
311 314
 		return Controller::join_links($this->gridField->Link('item'),
312 315
 			$this->record->ID ? $this->record->ID : 'new', $action);
@@ -335,6 +338,9 @@  discard block
 block discarded – undo
335 338
 		}
336 339
 	}
337 340
 
341
+	/**
342
+	 * @param SS_HTTPRequest $request
343
+	 */
338 344
 	public function edit($request) {
339 345
 		$controller = $this->getToplevelController();
340 346
 		$form = $this->ItemEditForm($this->gridField, $request);
@@ -536,6 +542,9 @@  discard block
 block discarded – undo
536 542
 		return $c;
537 543
 	}
538 544
 
545
+	/**
546
+	 * @return string
547
+	 */
539 548
 	protected function getBackLink(){
540 549
 		// TODO Coupling with CMS
541 550
 		$backlink = '';
@@ -637,6 +646,9 @@  discard block
 block discarded – undo
637 646
 		}
638 647
 	}
639 648
 
649
+	/**
650
+	 * @param integer $errorCode
651
+	 */
640 652
 	public function httpError($errorCode, $errorMessage = null) {
641 653
 		$controller = $this->getToplevelController();
642 654
 		return $controller->httpError($errorCode, $errorMessage);
Please login to merge, or discard this patch.
ORM/Hierarchy/Hierarchy.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -379,7 +379,7 @@  discard block
 block discarded – undo
379 379
 	/**
380 380
 	 * Return the IDs of all the marked nodes.
381 381
 	 *
382
-	 * @return array
382
+	 * @return integer[]
383 383
 	 */
384 384
 	public function markedNodeIDs() {
385 385
 		return array_keys($this->markedNodes);
@@ -756,7 +756,7 @@  discard block
 block discarded – undo
756 756
 	 * Get the next node in the tree of the type. If there is no instance of the className descended from this node,
757 757
 	 * then search the parents.
758 758
 	 * @param string     $className Class name of the node to find.
759
-	 * @param string|int $root      ID/ClassName of the node to limit the search to
759
+	 * @param integer $root      ID/ClassName of the node to limit the search to
760 760
 	 * @param DataObject $afterNode Used for recursive calls to this function
761 761
 	 * @return DataObject
762 762
 	 */
Please login to merge, or discard this patch.
Security/CMSSecurity.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -52,6 +52,9 @@  discard block
 block discarded – undo
52 52
 		);
53 53
 	}
54 54
 
55
+	/**
56
+	 * @param string $action
57
+	 */
55 58
 	public function Link($action = null) {
56 59
 		/** @skipUpgrade */
57 60
 		return Controller::join_links(Director::baseURL(), "CMSSecurity", $action);
@@ -68,6 +71,9 @@  discard block
 block discarded – undo
68 71
 		}
69 72
 	}
70 73
 
74
+	/**
75
+	 * @param string $title
76
+	 */
71 77
 	public function getResponseController($title) {
72 78
 		// Use $this to prevent use of Page to render underlying templates
73 79
 		return $this;
Please login to merge, or discard this patch.
Security/Security.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -508,7 +508,7 @@  discard block
 block discarded – undo
508 508
 	 * Combine the given forms into a formset with a tabbed interface
509 509
 	 *
510 510
 	 * @param array $forms List of LoginForm instances
511
-	 * @return string
511
+	 * @return \SilverStripe\ORM\FieldType\DBHTMLText
512 512
 	 */
513 513
 	protected function generateLoginFormSet($forms) {
514 514
 		$viewData = new ArrayData(array(
@@ -893,7 +893,7 @@  discard block
 block discarded – undo
893 893
 	 *
894 894
 	 * @param string $username The user name
895 895
 	 * @param string $password The password (in cleartext)
896
-	 * @return bool
896
+	 * @return false|null
897 897
 	 */
898 898
 	public static function setDefaultAdmin($username, $password) {
899 899
 		// don't overwrite if already set
@@ -980,7 +980,7 @@  discard block
 block discarded – undo
980 980
 	 * @deprecated 4.0 Use the "Security.password_encryption_algorithm" config setting instead
981 981
 	 * @param string $algorithm One of the available password encryption
982 982
 	 *  algorithms determined by {@link Security::get_encryption_algorithms()}
983
-	 * @return bool Returns TRUE if the passed algorithm was valid, otherwise FALSE.
983
+	 * @return boolean|null Returns TRUE if the passed algorithm was valid, otherwise FALSE.
984 984
 	 */
985 985
 	public static function set_password_encryption_algorithm($algorithm) {
986 986
 		Deprecation::notice('4.0', 'Use the "Security.password_encryption_algorithm" config setting instead');
@@ -1148,7 +1148,7 @@  discard block
 block discarded – undo
1148 1148
 	/**
1149 1149
 	 * Set to true to ignore access to disallowed actions, rather than returning permission failure
1150 1150
 	 * Note that this is just a flag that other code needs to check with Security::ignore_disallowed_actions()
1151
-	 * @param $flag True or false
1151
+	 * @param boolean $flag True or false
1152 1152
 	 */
1153 1153
 	public static function set_ignore_disallowed_actions($flag) {
1154 1154
 		self::$ignore_disallowed_actions = $flag;
Please login to merge, or discard this patch.