Completed
Push — master ( f728b1...ff8461 )
by Ingo
28s
created
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.
ORM/FieldType/DBDecimal.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 	 * @param string $name
22 22
 	 * @param int $wholeSize
23 23
 	 * @param int $decimalSize
24
-	 * @param float|int $defaultValue
24
+	 * @param integer $defaultValue
25 25
 	 */
26 26
 	public function __construct($name = null, $wholeSize = 9, $decimalSize = 2, $defaultValue = 0) {
27 27
 		$this->wholeSize = is_int($wholeSize) ? $wholeSize : 9;
@@ -33,14 +33,14 @@  discard block
 block discarded – undo
33 33
 	}
34 34
 
35 35
 	/**
36
-	 * @return float
36
+	 * @return string
37 37
 	 */
38 38
 	public function Nice() {
39 39
 		return number_format($this->value, $this->decimalSize);
40 40
 	}
41 41
 
42 42
 	/**
43
-	 * @return int
43
+	 * @return double
44 44
 	 */
45 45
 	public function Int() {
46 46
 		return floor($this->value);
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 	}
84 84
 
85 85
 	/**
86
-	 * @return float
86
+	 * @return integer
87 87
 	 */
88 88
 	public function nullValue() {
89 89
 		return 0;
Please login to merge, or discard this patch.