We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -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 | */ |
@@ -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 | */ |
@@ -301,6 +301,9 @@ discard block |
||
301 | 301 | return $this->getShowView(); |
302 | 302 | } |
303 | 303 | |
304 | + /** |
|
305 | + * @param string $view |
|
306 | + */ |
|
304 | 307 | public function setPreviewView($view) |
305 | 308 | { |
306 | 309 | return $this->setShowView($view); |
@@ -311,6 +314,9 @@ discard block |
||
311 | 314 | return $this->getEditView(); |
312 | 315 | } |
313 | 316 | |
317 | + /** |
|
318 | + * @param string $view |
|
319 | + */ |
|
314 | 320 | public function setUpdateView($view) |
315 | 321 | { |
316 | 322 | return $this->setEditView($view); |
@@ -175,6 +175,7 @@ |
||
175 | 175 | |
176 | 176 | /** |
177 | 177 | * Set the number of rows that should be show on the list view. |
178 | + * @param integer $value |
|
178 | 179 | */ |
179 | 180 | public function setDefaultPageLength($value) |
180 | 181 | { |
@@ -12,6 +12,9 @@ |
||
12 | 12 | return $this->getOperationSetting('autoFocusOnFirstField'); |
13 | 13 | } |
14 | 14 | |
15 | + /** |
|
16 | + * @param boolean $value |
|
17 | + */ |
|
15 | 18 | public function setAutoFocusOnFirstField($value) |
16 | 19 | { |
17 | 20 | return $this->setOperationSetting('autoFocusOnFirstField', (bool) $value); |
@@ -62,6 +62,9 @@ discard block |
||
62 | 62 | $this->addButton($stack, $name, 'model_function', $model_function_name, $position); |
63 | 63 | } |
64 | 64 | |
65 | + /** |
|
66 | + * @param string $view |
|
67 | + */ |
|
65 | 68 | public function addButtonFromView($stack, $name, $view, $position = false) |
66 | 69 | { |
67 | 70 | $view = 'crud::buttons.'.$view; |
@@ -119,7 +122,7 @@ discard block |
||
119 | 122 | } |
120 | 123 | |
121 | 124 | /** |
122 | - * @param array $names Button names |
|
125 | + * @param string[] $names Button names |
|
123 | 126 | * @param string|null $stack Optional stack name. |
124 | 127 | */ |
125 | 128 | public function removeButtons($names, $stack = null) |
@@ -136,6 +139,9 @@ discard block |
||
136 | 139 | $this->setOperationSetting('buttons', collect()); |
137 | 140 | } |
138 | 141 | |
142 | + /** |
|
143 | + * @param string $stack |
|
144 | + */ |
|
139 | 145 | public function removeAllButtonsFromStack($stack) |
140 | 146 | { |
141 | 147 | $this->setOperationSetting('buttons', $this->buttons()->reject(function ($button) use ($stack) { |
@@ -158,6 +164,12 @@ discard block |
||
158 | 164 | public $type = 'view'; |
159 | 165 | public $content; |
160 | 166 | |
167 | + /** |
|
168 | + * @param string $stack |
|
169 | + * @param string $name |
|
170 | + * @param string $type |
|
171 | + * @param string $content |
|
172 | + */ |
|
161 | 173 | public function __construct($stack, $name, $type, $content) |
162 | 174 | { |
163 | 175 | $this->stack = $stack; |
@@ -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 | { |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | |
161 | 161 | /** |
162 | 162 | * Move this column to be first in the columns list. |
163 | - * @return bool|null |
|
163 | + * @return false|null |
|
164 | 164 | */ |
165 | 165 | public function makeFirstColumn() |
166 | 166 | { |
@@ -237,7 +237,7 @@ discard block |
||
237 | 237 | /** |
238 | 238 | * Remove a column from the CRUD panel by name. |
239 | 239 | * |
240 | - * @param string $column The column key. |
|
240 | + * @param string $columnKey The column key. |
|
241 | 241 | */ |
242 | 242 | public function removeColumn($columnKey) |
243 | 243 | { |
@@ -10,8 +10,6 @@ |
||
10 | 10 | * plus the '_token' and 'redirect_after_save' variables. |
11 | 11 | * |
12 | 12 | * @param array $requestInput The request input. |
13 | - * @param string $form The CRUD form. Can be 'create' or 'update' . Default is 'create'. |
|
14 | - * @param int|bool $id The CRUD entry id in the case of the 'update' form. |
|
15 | 13 | * |
16 | 14 | * @see \Illuminate\Http\Request::all() For an example on how to get the request input. |
17 | 15 | * |
@@ -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 | */ |