We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -67,7 +67,7 @@ |
||
67 | 67 | /** |
68 | 68 | * Gets the relation data from the method in the model. |
69 | 69 | * |
70 | - * @param ReflectionMethod $method |
|
70 | + * @param \ReflectionMethod $method |
|
71 | 71 | * @return array |
72 | 72 | */ |
73 | 73 | public function inferFieldAttributesFromRelationship($method) |
@@ -123,7 +123,7 @@ |
||
123 | 123 | * The user has been authenticated. |
124 | 124 | * |
125 | 125 | * @param \Illuminate\Http\Request $request |
126 | - * @param mixed $user |
|
126 | + * @param \Illuminate\Contracts\Auth\Authenticatable|null $user |
|
127 | 127 | * @return mixed |
128 | 128 | */ |
129 | 129 | protected function authenticated(Request $request, $user) |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | * |
17 | 17 | * |
18 | 18 | * @param string $stack Stack where the buttons belongs. Options: top, line, bottom. |
19 | - * @param array $order Ordered name of the buttons. ['update', 'delete', 'show'] |
|
19 | + * @param string[] $order Ordered name of the buttons. ['update', 'delete', 'show'] |
|
20 | 20 | */ |
21 | 21 | public function orderButtons(string $stack, array $order) |
22 | 22 | { |
@@ -106,6 +106,9 @@ discard block |
||
106 | 106 | $this->addButton($stack, $name, 'model_function', $model_function_name, $position); |
107 | 107 | } |
108 | 108 | |
109 | + /** |
|
110 | + * @param string $view |
|
111 | + */ |
|
109 | 112 | public function addButtonFromView($stack, $name, $view, $position = false) |
110 | 113 | { |
111 | 114 | $view = 'crud::buttons.'.$view; |
@@ -163,7 +166,7 @@ discard block |
||
163 | 166 | } |
164 | 167 | |
165 | 168 | /** |
166 | - * @param array $names Button names |
|
169 | + * @param string[] $names Button names |
|
167 | 170 | * @param string|null $stack Optional stack name. |
168 | 171 | */ |
169 | 172 | public function removeButtons($names, $stack = null) |
@@ -180,6 +183,9 @@ discard block |
||
180 | 183 | $this->setOperationSetting('buttons', collect()); |
181 | 184 | } |
182 | 185 | |
186 | + /** |
|
187 | + * @param string $stack |
|
188 | + */ |
|
183 | 189 | public function removeAllButtonsFromStack($stack) |
184 | 190 | { |
185 | 191 | $this->setOperationSetting('buttons', $this->buttons()->reject(function ($button) use ($stack) { |
@@ -202,6 +208,12 @@ discard block |
||
202 | 208 | public $type = 'view'; |
203 | 209 | public $content; |
204 | 210 | |
211 | + /** |
|
212 | + * @param string $stack |
|
213 | + * @param string $name |
|
214 | + * @param string $type |
|
215 | + * @param string $content |
|
216 | + */ |
|
205 | 217 | public function __construct($stack, $name, $type, $content) |
206 | 218 | { |
207 | 219 | $this->stack = $stack; |
@@ -43,7 +43,7 @@ |
||
43 | 43 | * |
44 | 44 | * @param array $columns - the database columns that contain the JSONs |
45 | 45 | * |
46 | - * @return Model |
|
46 | + * @return HasFakeFields |
|
47 | 47 | */ |
48 | 48 | public function withFakes($columns = []) |
49 | 49 | { |
@@ -839,6 +839,10 @@ |
||
839 | 839 | } |
840 | 840 | |
841 | 841 | // allow us to run crud panel private/protected methods like `inferFieldTypeFromDbColumnType` |
842 | + |
|
843 | + /** |
|
844 | + * @param string $methodName |
|
845 | + */ |
|
842 | 846 | public function invokeMethod(&$object, $methodName, array $parameters = []) |
843 | 847 | { |
844 | 848 | $reflection = new \ReflectionClass(get_class($object)); |