Completed
Pull Request — master (#5771)
by Florian
12:04
created
parsers/URLSegmentFilter.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 	protected $transliterator;
107 107
 
108 108
 	/**
109
-	 * @return SS_Transliterator|NULL
109
+	 * @return SS_Transliterator
110 110
 	 */
111 111
 	public function getTransliterator() {
112 112
 		if($this->transliterator === null && $this->config()->default_use_transliterator) {
@@ -129,6 +129,7 @@  discard block
 block discarded – undo
129 129
 
130 130
 	/**
131 131
 	 * @param boolean
132
+	 * @param boolean $bool
132 133
 	 */
133 134
 	public function setAllowMultibyte($bool) {
134 135
 		$this->allowMultibyte = $bool;
Please login to merge, or discard this patch.
search/SearchContext.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -179,7 +179,7 @@
 block discarded – undo
179 179
 	 * @param array $searchParams
180 180
 	 * @param array|bool|string $sort
181 181
 	 * @param array|bool|string $limit
182
-	 * @return SS_List
182
+	 * @return DataList
183 183
 	 * @throws Exception
184 184
 	 */
185 185
 	public function getResults($searchParams, $sort = false, $limit = false) {
Please login to merge, or discard this patch.
security/Member.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -826,7 +826,7 @@  discard block
 block discarded – undo
826 826
 	/**
827 827
 	 * Returns the current logged in user
828 828
 	 *
829
-	 * @return Member|null
829
+	 * @return DataObject|null
830 830
 	 */
831 831
 	public static function currentUser() {
832 832
 		$id = Member::currentUserID();
@@ -1270,7 +1270,7 @@  discard block
 block discarded – undo
1270 1270
 	 * If no $groups is passed, all members will be returned
1271 1271
 	 *
1272 1272
 	 * @param mixed $groups - takes a SS_List, an array or a single Group.ID
1273
-	 * @return SS_Map Returns an SS_Map that returns all Member data.
1273
+	 * @return SilverStripe\ORM\SS_Map Returns an SS_Map that returns all Member data.
1274 1274
 	 */
1275 1275
 	public static function map_in_groups($groups = null) {
1276 1276
 		$groupIDList = array();
@@ -1308,7 +1308,7 @@  discard block
 block discarded – undo
1308 1308
 	 *
1309 1309
 	 * @param array $groups Groups to consider or NULL to use all groups with
1310 1310
 	 *                      CMS permissions.
1311
-	 * @return SS_Map Returns a map of all members in the groups given that
1311
+	 * @return SilverStripe\ORM\SS_Map Returns a map of all members in the groups given that
1312 1312
 	 *                have CMS permissions.
1313 1313
 	 */
1314 1314
 	public static function mapInCMSGroups($groups = null) {
Please login to merge, or discard this patch.
tests/i18n/i18nTextCollectorTest.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -843,6 +843,10 @@  discard block
 block discarded – undo
843 843
  * Assist with testing of specific protected methods
844 844
  */
845 845
 class i18nTextCollectorTest_Collector extends i18nTextCollector implements TestOnly {
846
+
847
+	/**
848
+	 * @param string $directory
849
+	 */
846 850
 	public function getModules_Test($directory) {
847 851
 		return $this->getModules($directory);
848 852
 	}
@@ -851,6 +855,9 @@  discard block
 block discarded – undo
851 855
 		return $this->resolveDuplicateConflicts($entitiesByModule);
852 856
 	}
853 857
 
858
+	/**
859
+	 * @param string $module
860
+	 */
854 861
 	public function getFileListForModule_Test($module) {
855 862
 		return $this->getFileListForModule($module);
856 863
 	}
@@ -859,6 +866,9 @@  discard block
 block discarded – undo
859 866
 		return $this->getConflicts($entitiesByModule);
860 867
 	}
861 868
 
869
+	/**
870
+	 * @param string $class
871
+	 */
862 872
 	public function findModuleForClass_Test($class) {
863 873
 		return $this->findModuleForClass($class);
864 874
 	}
Please login to merge, or discard this patch.
tests/model/VersionedOwnershipTest.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -730,7 +730,7 @@  discard block
 block discarded – undo
730 730
 	/**
731 731
 	 * All custom objects with the same number. E.g. 'Page 1' owns 'Custom 1'
732 732
 	 *
733
-	 * @return DataList
733
+	 * @return SilverStripe\ORM\DataList
734 734
 	 */
735 735
 	public function Custom() {
736 736
 		$title = str_replace('Page', 'Custom', $this->Title);
@@ -784,7 +784,7 @@  discard block
 block discarded – undo
784 784
 	/**
785 785
 	 * All pages with the same number. E.g. 'Page 1' owns 'Custom 1'
786 786
 	 *
787
-	 * @return DataList
787
+	 * @return SilverStripe\ORM\DataList
788 788
 	 */
789 789
 	public function Pages() {
790 790
 		$title = str_replace('Custom', 'Page', $this->Title);
Please login to merge, or discard this patch.
core/Extensible.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -369,8 +369,8 @@
 block discarded – undo
369 369
 	 *
370 370
 	 * @param string $method the method name to call
371 371
 	 * @param mixed $a1
372
-	 * @param mixed $a2
373
-	 * @param mixed $a3
372
+	 * @param string $a2
373
+	 * @param boolean $a3
374 374
 	 * @param mixed $a4
375 375
 	 * @param mixed $a5
376 376
 	 * @param mixed $a6
Please login to merge, or discard this patch.
ORM/Connect/DBSchemaManager.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -112,6 +112,7 @@  discard block
 block discarded – undo
112 112
 	 *
113 113
 	 * @var callable $callback
114 114
 	 * @throws Exception
115
+	 * @param \Closure $callback
115 116
 	 */
116 117
 	public function schemaUpdate($callback) {
117 118
 		// Begin schema update
@@ -484,7 +485,7 @@  discard block
 block discarded – undo
484 485
 	/**
485 486
 	 * Given an index spec determines the index type
486 487
 	 *
487
-	 * @param array|string $spec
488
+	 * @param string $spec
488 489
 	 * @return string
489 490
 	 */
490 491
 	protected function determineIndexType($spec) {
Please login to merge, or discard this patch.
ORM/DB.php 1 patch
Doc Comments   +6 added lines, -7 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
 	 *
129 129
 	 * @param string $name An optional name given to a connection in the DB::setConn() call.  If omitted,
130 130
 	 * the default connection is returned.
131
-	 * @return DBConnector
131
+	 * @return Connect\DBConnector|null
132 132
 	 */
133 133
 	public static function get_connector($name = 'default') {
134 134
 		$connection = self::get_conn($name);
@@ -231,9 +231,8 @@  discard block
 block discarded – undo
231 231
 	 * Given the database configuration, this method will create the correct
232 232
 	 * subclass of {@link SS_Database}.
233 233
 	 *
234
-	 * @param array $database A map of options. The 'type' is the name of the subclass of SS_Database to use. For the
234
+	 * @param array $databaseConfig A map of options. The 'type' is the name of the subclass of SS_Database to use. For the
235 235
 	 *                        rest of the options, see the specific class.
236
-	 * @param string $name identifier for the connection
237 236
 	 *
238 237
 	 * @return SS_Database
239 238
 	 */
@@ -282,7 +281,7 @@  discard block
 block discarded – undo
282 281
 	 * Execute the given SQL query.
283 282
 	 * @param string $sql The SQL query to execute
284 283
 	 * @param int $errorLevel The level of error reporting to enable for the query
285
-	 * @return SS_Query
284
+	 * @return Connect\SS_Query
286 285
 	 */
287 286
 	public static function query($sql, $errorLevel = E_USER_ERROR) {
288 287
 		self::$lastQuery = $sql;
@@ -317,7 +316,7 @@  discard block
 block discarded – undo
317 316
 	 * @param string $sql The SQL query to execute. The ? character will denote parameters.
318 317
 	 * @param array $parameters An ordered list of arguments.
319 318
 	 * @param int $errorLevel The level of error reporting to enable for the query
320
-	 * @return SS_Query
319
+	 * @return Connect\SS_Query
321 320
 	 */
322 321
 	public static function prepared_query($sql, $parameters, $errorLevel = E_USER_ERROR) {
323 322
 		self::$lastQuery = $sql;
@@ -427,7 +426,7 @@  discard block
 block discarded – undo
427 426
 
428 427
 	/**
429 428
 	 * Create a new table.
430
-	 * @param string $tableName The name of the table
429
+	 * @param string $table The name of the table
431 430
 	 * @param array$fields A map of field names to field types
432 431
 	 * @param array $indexes A map of indexes
433 432
 	 * @param array $options An map of additional options.  The available keys are as follows:
@@ -577,7 +576,7 @@  discard block
 block discarded – undo
577 576
 	/**
578 577
 	 * Checks a table's integrity and repairs it if necessary.
579 578
 	 *
580
-	 * @param string $tableName The name of the table.
579
+	 * @param string $table The name of the table.
581 580
 	 * @return boolean Return true if the table has integrity after the method is complete.
582 581
 	 */
583 582
 	public static function check_and_repair_table($table) {
Please login to merge, or discard this patch.
ORM/FieldType/DBDate.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,6 +38,9 @@  discard block
 block discarded – undo
38 38
 	 */
39 39
 	private static $nice_format = 'd/m/Y';
40 40
 
41
+	/**
42
+	 * @param string|null $value
43
+	 */
41 44
 	public function setValue($value, $record = null, $markChanged = true) {
42 45
 		if($value === false || $value === null || (is_string($value) && !strlen($value))) {
43 46
 			// don't try to evaluate empty values with strtotime() below, as it returns "1970-01-01" when it should be
@@ -194,7 +197,7 @@  discard block
 block discarded – undo
194 197
 	 * Return a date formatted as per a CMS user's settings.
195 198
 	 *
196 199
 	 * @param Member $member
197
-	 * @return boolean | string A date formatted as per user-defined settings.
200
+	 * @return false|string | string A date formatted as per user-defined settings.
198 201
 	 */
199 202
 	public function FormatFromSettings($member = null) {
200 203
 		require_once 'Zend/Date.php';
Please login to merge, or discard this patch.