We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -83,7 +83,7 @@ |
||
83 | 83 | $field = $this->crud->fields()[request()->get('field')]; |
84 | 84 | $relatedModelInstance = new $field['model'](); |
85 | 85 | if ($field) { |
86 | - if (! isset($field['options'])) { |
|
86 | + if (!isset($field['options'])) { |
|
87 | 87 | $options = $field['model']::all()->pluck($field['attribute'], $relatedModelInstance->getKeyName()); |
88 | 88 | } else { |
89 | 89 | $options = call_user_func($field['options'], $field['model']::query()->pluck($field['attribute'], $relatedModelInstance->getKeyName())); |
@@ -58,6 +58,9 @@ |
||
58 | 58 | $this->crud->applyConfigurationFromSettings('create'); |
59 | 59 | } |
60 | 60 | |
61 | + /** |
|
62 | + * @param string $action |
|
63 | + */ |
|
61 | 64 | public function getInstantModal($entity, $action, $fields) |
62 | 65 | { |
63 | 66 | return view( |
@@ -155,7 +155,7 @@ |
||
155 | 155 | * Based on relation type returns if relation allows multiple entities. |
156 | 156 | * |
157 | 157 | * @param string $relationType |
158 | - * @return bool |
|
158 | + * @return boolean|null |
|
159 | 159 | */ |
160 | 160 | public function relationAllowsMultiple($relationType) |
161 | 161 | { |
@@ -326,8 +326,6 @@ discard block |
||
326 | 326 | * Check if the create/update form has upload fields. |
327 | 327 | * Upload fields are the ones that have "upload" => true defined on them. |
328 | 328 | * |
329 | - * @param string $form create/update/both - defaults to 'both' |
|
330 | - * @param bool|int $id id of the entity - defaults to false |
|
331 | 329 | * |
332 | 330 | * @return bool |
333 | 331 | */ |
@@ -358,7 +356,7 @@ discard block |
||
358 | 356 | /** |
359 | 357 | * Set an array of field type names as already loaded for the current operation. |
360 | 358 | * |
361 | - * @param array $fieldTypes |
|
359 | + * @param string[] $fieldTypes |
|
362 | 360 | */ |
363 | 361 | public function setLoadedFieldTypes($fieldTypes) |
364 | 362 | { |
@@ -369,7 +367,7 @@ discard block |
||
369 | 367 | * Get a namespaced version of the field type name. |
370 | 368 | * Appends the 'view_namespace' attribute of the field to the `type', using dot notation. |
371 | 369 | * |
372 | - * @param mixed $field |
|
370 | + * @param string $field |
|
373 | 371 | * @return string Namespaced version of the field type name. Ex: 'text', 'custom.view.path.text' |
374 | 372 | */ |
375 | 373 | public function getFieldTypeWithNamespace($field) |