@@ -61,7 +61,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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. |
@@ -155,7 +155,7 @@ |
||
| 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 | { |
@@ -4,13 +4,13 @@ |
||
| 4 | 4 | |
| 5 | 5 | use ICanBoogie\ActiveRecord\Model; |
| 6 | 6 | |
| 7 | -$hooks = Hooks::class . '::'; |
|
| 7 | +$hooks = Hooks::class.'::'; |
|
| 8 | 8 | |
| 9 | 9 | return [ |
| 10 | 10 | |
| 11 | - Model::class . '::get_criteria' => $hooks . 'criteria_from', |
|
| 12 | - Model::class . '::get_criterion_list' => $hooks . 'criterion_list_from', |
|
| 13 | - Model::class . '::fetch_records' => $hooks . 'fetch_records', |
|
| 14 | - Model::class . '::fetch_record' => $hooks . 'fetch_record' |
|
| 11 | + Model::class.'::get_criteria' => $hooks.'criteria_from', |
|
| 12 | + Model::class.'::get_criterion_list' => $hooks.'criterion_list_from', |
|
| 13 | + Model::class.'::fetch_records' => $hooks.'fetch_records', |
|
| 14 | + Model::class.'::fetch_record' => $hooks.'fetch_record' |
|
| 15 | 15 | |
| 16 | 16 | ]; |