Completed
Push — master ( 9e3f76...51d53f )
by Hamish
10:45
created
model/DataObject.php 1 patch
Doc Comments   +5 added lines, -3 removed lines patch added patch discarded remove patch
@@ -885,6 +885,7 @@  discard block
 block discarded – undo
885 885
 	 * @param $includeRelations Boolean Merge any existing relations (optional)
886 886
 	 * @param $overwriteWithEmpty Boolean Overwrite existing left values with empty right values.
887 887
 	 *                            Only applicable with $priority='right'. (optional)
888
+	 * @param DataObject|null $rightObj
888 889
 	 * @return Boolean
889 890
 	 */
890 891
 	public function merge($rightObj, $priority = 'right', $includeRelations = true, $overwriteWithEmpty = false) {
@@ -2167,7 +2168,7 @@  discard block
 block discarded – undo
2167 2168
 	 *
2168 2169
 	 * This is experimental, and is currently only a Postgres-specific enhancement.
2169 2170
 	 *
2170
-	 * @param $class
2171
+	 * @param string $class
2171 2172
 	 * @return array or false
2172 2173
 	 */
2173 2174
 	public function database_extensions($class){
@@ -2647,6 +2648,7 @@  discard block
 block discarded – undo
2647 2648
 
2648 2649
 	/**
2649 2650
 	 * {@inheritdoc}
2651
+	 * @param string $field
2650 2652
 	 */
2651 2653
 	public function castingHelper($field) {
2652 2654
 		if ($fieldSpec = $this->db($field)) {
@@ -2988,7 +2990,7 @@  discard block
 block discarded – undo
2988 2990
 	 * Traverses to a field referenced by relationships between data objects, returning the value
2989 2991
 	 * The path to the related field is specified with dot separated syntax (eg: Parent.Child.Child.FieldName)
2990 2992
 	 *
2991
-	 * @param $fieldName string
2993
+	 * @param string $fieldName string
2992 2994
 	 * @return string | null - will return null on a missing value
2993 2995
 	 */
2994 2996
 	public function relField($fieldName) {
@@ -3058,7 +3060,7 @@  discard block
 block discarded – undo
3058 3060
 	 * @param string $callerClass The class of objects to be returned
3059 3061
 	 * @param string|array $filter A filter to be inserted into the WHERE clause.
3060 3062
 	 * Supports parameterised queries. See SQLSelect::addWhere() for syntax examples.
3061
-	 * @param string|array $sort A sort expression to be inserted into the ORDER
3063
+	 * @param string $sort A sort expression to be inserted into the ORDER
3062 3064
 	 * BY clause.  If omitted, self::$default_sort will be used.
3063 3065
 	 * @param string $join Deprecated 3.0 Join clause. Use leftJoin($table, $joinClause) instead.
3064 3066
 	 * @param string|array $limit A limit expression to be inserted into the LIMIT clause.
Please login to merge, or discard this patch.
model/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.
dev/BulkLoader.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
 	 *
212 212
 	 * @todo Mix in custom column mappings
213 213
 	 *
214
-	 * @return array
214
+	 * @return string
215 215
 	 **/
216 216
 	public function getImportSpec() {
217 217
 		$spec = array();
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
 	 * so this is mainly a customization method.
238 238
 	 *
239 239
 	 * @param mixed $val
240
-	 * @param string $field Name of the field as specified in the array-values for {@link self::$columnMap}.
240
+	 * @param string $fieldName Name of the field as specified in the array-values for {@link self::$columnMap}.
241 241
 	 * @return boolean
242 242
 	 */
243 243
 	protected function isNullValue($val, $fieldName = null) {
@@ -361,7 +361,7 @@  discard block
 block discarded – undo
361 361
 
362 362
 	/**
363 363
 	 * @param $obj DataObject
364
-	 * @param $message string
364
+	 * @param string $message string
365 365
 	 */
366 366
 	public function addCreated($obj, $message = null) {
367 367
 		$this->created[] = $this->lastChange = array(
@@ -374,7 +374,7 @@  discard block
 block discarded – undo
374 374
 
375 375
 	/**
376 376
 	 * @param $obj DataObject
377
-	 * @param $message string
377
+	 * @param string $message string
378 378
 	 */
379 379
 	public function addUpdated($obj, $message = null) {
380 380
 		$this->updated[] = $this->lastChange = array(
@@ -386,8 +386,8 @@  discard block
 block discarded – undo
386 386
 	}
387 387
 
388 388
 	/**
389
-	 * @param $obj DataObject
390
-	 * @param $message string
389
+	 * @param DataObject|null $obj DataObject
390
+	 * @param string $message string
391 391
 	 */
392 392
 	public function addDeleted($obj, $message = null) {
393 393
 		$data = $obj->toMap();
Please login to merge, or discard this patch.