We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -69,7 +69,7 @@ |
||
| 69 | 69 | * |
| 70 | 70 | * @param array $columns - the database columns that contain the JSONs |
| 71 | 71 | * |
| 72 | - * @return Model |
|
| 72 | + * @return CrudTrait |
|
| 73 | 73 | */ |
| 74 | 74 | public function withFakes($columns = []) |
| 75 | 75 | { |
@@ -316,6 +316,7 @@ discard block |
||
| 316 | 316 | * Delete a row from the database. |
| 317 | 317 | * |
| 318 | 318 | * @param [int] The id of the item to be deleted. |
| 319 | + * @param integer $id |
|
| 319 | 320 | * |
| 320 | 321 | * @return [bool] Deletion confirmation. |
| 321 | 322 | * |
@@ -429,8 +430,9 @@ discard block |
||
| 429 | 430 | * Check if a permission is enabled for a Crud Panel. Fail if not. |
| 430 | 431 | * |
| 431 | 432 | * @param [string] Permission. |
| 433 | + * @param string $permission |
|
| 432 | 434 | * |
| 433 | - * @return bool |
|
| 435 | + * @return boolean|null |
|
| 434 | 436 | */ |
| 435 | 437 | public function hasAccessOrFail($permission) |
| 436 | 438 | { |
@@ -662,6 +664,9 @@ discard block |
||
| 662 | 664 | return $this->removeColumns([$column]); |
| 663 | 665 | } |
| 664 | 666 | |
| 667 | + /** |
|
| 668 | + * @param string $entity |
|
| 669 | + */ |
|
| 665 | 670 | public function remove($entity, $fields) |
| 666 | 671 | { |
| 667 | 672 | return array_values(array_filter($this->{$entity}, function ($field) use ($fields) { return ! in_array($field['name'], (array) $fields); })); |
@@ -713,8 +718,6 @@ discard block |
||
| 713 | 718 | /** |
| 714 | 719 | * Add a field to the create/update form or both. |
| 715 | 720 | * |
| 716 | - * @param [string] $name Field name (the column name in the db in most cases) |
|
| 717 | - * @param [array] $options Field-type-specific information. |
|
| 718 | 721 | * @param string $form The form to add the field to (create/update/both) |
| 719 | 722 | */ |
| 720 | 723 | public function addField($field, $form = 'both') |
@@ -1265,6 +1268,9 @@ discard block |
||
| 1265 | 1268 | $this->setSort('fields', (array) $order); |
| 1266 | 1269 | } |
| 1267 | 1270 | |
| 1271 | + /** |
|
| 1272 | + * @param string $type |
|
| 1273 | + */ |
|
| 1268 | 1274 | public function sync($type, $fields, $attributes) |
| 1269 | 1275 | { |
| 1270 | 1276 | if (! empty($this->{$type})) { |
@@ -1278,11 +1284,17 @@ discard block |
||
| 1278 | 1284 | } |
| 1279 | 1285 | } |
| 1280 | 1286 | |
| 1287 | + /** |
|
| 1288 | + * @param string $items |
|
| 1289 | + */ |
|
| 1281 | 1290 | public function setSort($items, $order) |
| 1282 | 1291 | { |
| 1283 | 1292 | $this->sort[$items] = $order; |
| 1284 | 1293 | } |
| 1285 | 1294 | |
| 1295 | + /** |
|
| 1296 | + * @param string $items |
|
| 1297 | + */ |
|
| 1286 | 1298 | public function sort($items) |
| 1287 | 1299 | { |
| 1288 | 1300 | if (array_key_exists($items, $this->sort)) { |