We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | /** |
142 | 142 | * Move the most recently added column after the given target column. |
143 | 143 | * |
144 | - * @param string|array $targetColumn The target column name or array. |
|
144 | + * @param string $targetColumn The target column name or array. |
|
145 | 145 | */ |
146 | 146 | public function afterColumn($targetColumn) |
147 | 147 | { |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | /** |
162 | 162 | * Move this column to be first in the columns list. |
163 | 163 | * |
164 | - * @return bool|null |
|
164 | + * @return false|null |
|
165 | 165 | */ |
166 | 166 | public function makeFirstColumn() |
167 | 167 | { |
@@ -239,7 +239,7 @@ discard block |
||
239 | 239 | /** |
240 | 240 | * Remove a column from the CRUD panel by name. |
241 | 241 | * |
242 | - * @param string $column The column key. |
|
242 | + * @param string $columnKey The column key. |
|
243 | 243 | */ |
244 | 244 | public function removeColumn($columnKey) |
245 | 245 | { |
@@ -19,7 +19,7 @@ |
||
19 | 19 | * |
20 | 20 | * TODO: should this delete items with relations to it too? |
21 | 21 | * |
22 | - * @return bool True if the item was deleted. |
|
22 | + * @return string True if the item was deleted. |
|
23 | 23 | */ |
24 | 24 | public function delete($id) |
25 | 25 | { |
@@ -65,7 +65,7 @@ |
||
65 | 65 | * Order results of the query in a custom way. |
66 | 66 | * |
67 | 67 | * @param array $column Column array with all attributes |
68 | - * @param string $column_direction ASC or DESC |
|
68 | + * @param string $columnDirection ASC or DESC |
|
69 | 69 | * |
70 | 70 | * @return \Illuminate\Database\Eloquent\Builder |
71 | 71 | */ |
@@ -113,7 +113,7 @@ |
||
113 | 113 | * |
114 | 114 | * @param string $key Has no operation prepended. (ex: exportButtons) |
115 | 115 | * |
116 | - * @return mixed [description] |
|
116 | + * @return boolean [description] |
|
117 | 117 | */ |
118 | 118 | public function hasOperationSetting(string $key, $operation = null) |
119 | 119 | { |
@@ -107,7 +107,6 @@ |
||
107 | 107 | * for the given operation. |
108 | 108 | * |
109 | 109 | * @param string $inputKey Field or input name. |
110 | - * @param string $operation create / update |
|
111 | 110 | * |
112 | 111 | * @return bool |
113 | 112 | */ |
@@ -38,7 +38,6 @@ |
||
38 | 38 | * Query scope for finding "similar" slugs, used to determine uniqueness. |
39 | 39 | * |
40 | 40 | * @param \Illuminate\Database\Eloquent\Builder $query |
41 | - * @param \Illuminate\Database\Eloquent\Model $model |
|
42 | 41 | * @param string $attribute |
43 | 42 | * @param array $config |
44 | 43 | * @param string $slug |
@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | * Check if the application is running in normal conditions |
9 | 9 | * (production env, not in console, not in unit tests). |
10 | 10 | * |
11 | - * @return void |
|
11 | + * @return boolean |
|
12 | 12 | */ |
13 | 13 | private function runningInProduction() |
14 | 14 | { |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | * @param string $url URL to point the request at. |
86 | 86 | * @param array $payload The data you want sent to the URL. |
87 | 87 | * |
88 | - * @return void |
|
88 | + * @return boolean |
|
89 | 89 | */ |
90 | 90 | private function makeCurlRequest($method, $url, $payload) |
91 | 91 | { |
@@ -9,7 +9,6 @@ |
||
9 | 9 | /** |
10 | 10 | * Define which routes are needed for this operation. |
11 | 11 | * |
12 | - * @param string $name Name of the current entity (singular). Used as first URL segment. |
|
13 | 12 | * @param string $routeName Prefix of the route name. |
14 | 13 | * @param string $controller Name of the current CrudController. |
15 | 14 | */ |
@@ -22,7 +22,6 @@ discard block |
||
22 | 22 | * Add a field to the create/update form or both. |
23 | 23 | * |
24 | 24 | * @param string|array $field The new field. |
25 | - * @param string $form The CRUD form. Can be 'create', 'update' or 'both'. Default is 'both'. |
|
26 | 25 | * |
27 | 26 | * @return self |
28 | 27 | */ |
@@ -70,7 +69,6 @@ discard block |
||
70 | 69 | * Add multiple fields to the create/update form or both. |
71 | 70 | * |
72 | 71 | * @param array $fields The new fields. |
73 | - * @param string $form The CRUD form. Can be 'create', 'update' or 'both'. Default is 'both'. |
|
74 | 72 | */ |
75 | 73 | public function addFields($fields) |
76 | 74 | { |
@@ -85,7 +83,6 @@ discard block |
||
85 | 83 | * Move the most recently added field after the given target field. |
86 | 84 | * |
87 | 85 | * @param string $targetFieldName The target field name. |
88 | - * @param string $form The CRUD form. Can be 'create', 'update' or 'both'. Default is 'both'. |
|
89 | 86 | */ |
90 | 87 | public function afterField($targetFieldName) |
91 | 88 | { |
@@ -98,7 +95,6 @@ discard block |
||
98 | 95 | * Move the most recently added field before the given target field. |
99 | 96 | * |
100 | 97 | * @param string $targetFieldName The target field name. |
101 | - * @param string $form The CRUD form. Can be 'create', 'update' or 'both'. Default is 'both'. |
|
102 | 98 | */ |
103 | 99 | public function beforeField($targetFieldName) |
104 | 100 | { |
@@ -141,7 +137,6 @@ discard block |
||
141 | 137 | * Remove a certain field from the create/update/both forms by its name. |
142 | 138 | * |
143 | 139 | * @param string $name Field name (as defined with the addField() procedure) |
144 | - * @param string $form update/create/both |
|
145 | 140 | */ |
146 | 141 | public function removeField($name) |
147 | 142 | { |
@@ -330,8 +325,6 @@ discard block |
||
330 | 325 | * Check if the create/update form has upload fields. |
331 | 326 | * Upload fields are the ones that have "upload" => true defined on them. |
332 | 327 | * |
333 | - * @param string $form create/update/both - defaults to 'both' |
|
334 | - * @param bool|int $id id of the entity - defaults to false |
|
335 | 328 | * |
336 | 329 | * @return bool |
337 | 330 | */ |
@@ -362,7 +355,7 @@ discard block |
||
362 | 355 | /** |
363 | 356 | * Set an array of field type names as already loaded for the current operation. |
364 | 357 | * |
365 | - * @param array $fieldTypes |
|
358 | + * @param string[] $fieldTypes |
|
366 | 359 | */ |
367 | 360 | public function setLoadedFieldTypes($fieldTypes) |
368 | 361 | { |
@@ -373,7 +366,7 @@ discard block |
||
373 | 366 | * Get a namespaced version of the field type name. |
374 | 367 | * Appends the 'view_namespace' attribute of the field to the `type', using dot notation. |
375 | 368 | * |
376 | - * @param array $field Field array |
|
369 | + * @param string $field Field array |
|
377 | 370 | * @return string Namespaced version of the field type name. Ex: 'text', 'custom.view.path.text' |
378 | 371 | */ |
379 | 372 | public function getFieldTypeWithNamespace($field) |