Completed
Push — master ( 6d2699...9e8ac2 )
by Olivier
29:15
created
lib/Hooks.php 3 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 	 *
62 62
 	 * The criteria include the criteria of the parent models.
63 63
 	 *
64
-	 * @param Model|PrototypedBindings $model
64
+	 * @param Model $model
65 65
 	 *
66 66
 	 * @return array
67 67
 	 */
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 	/**
96 96
 	 * Returns the {@link CriterionList} instance associated with the specified model.
97 97
 	 *
98
-	 * @param Model|ModelBindings $model
98
+	 * @param Model $model
99 99
 	 *
100 100
 	 * @return CriterionList
101 101
 	 */
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 	 *
147 147
 	 * The model's {@link fetch_records} prototype method is used to retrieve the record.
148 148
 	 *
149
-	 * @param Model|ModelBindings $model
149
+	 * @param Model $model
150 150
 	 * @param array $conditions
151 151
 	 * @param Fetcher $fetcher If the parameter `fetcher` is present, the {@link Fetcher}
152 152
 	 * instance used to fetch the record is stored inside.
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
14 14
 use ICanBoogie\ActiveRecord;
15 15
 use ICanBoogie\ActiveRecord\Model;
16 16
 use ICanBoogie\Binding\PrototypedBindings;
17
-use ICanBoogie\Core;
18 17
 use ICanBoogie\Facets\CriterionList;
19 18
 use ICanBoogie\Facets\Fetcher;
20 19
 use ICanBoogie\Facets\Fetcher\BasicFetcher;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -155,7 +155,7 @@
 block discarded – undo
155 155
 	 */
156 156
 	static public function fetch_record(Model $model, array $conditions, &$fetcher = null)
157 157
 	{
158
-		$records = $model->fetch_records($conditions + [ 'limit' => 1 ]);
158
+		$records = $model->fetch_records($conditions + ['limit' => 1]);
159 159
 
160 160
 		if (!$records)
161 161
 		{
Please login to merge, or discard this patch.