We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | * |
67 | 67 | * @param array $data |
68 | 68 | * |
69 | - * @return User |
|
69 | + * @return \Illuminate\Contracts\Auth\Authenticatable |
|
70 | 70 | */ |
71 | 71 | protected function create(array $data) |
72 | 72 | { |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | * |
103 | 103 | * @param \Illuminate\Http\Request $request |
104 | 104 | * |
105 | - * @return \Illuminate\Http\Response |
|
105 | + * @return \Illuminate\Http\RedirectResponse |
|
106 | 106 | */ |
107 | 107 | public function register(Request $request) |
108 | 108 | { |
@@ -27,7 +27,6 @@ |
||
27 | 27 | /** |
28 | 28 | * Get the path the user should be redirected to after password reset. |
29 | 29 | * |
30 | - * @param \Illuminate\Http\Request $request |
|
31 | 30 | * |
32 | 31 | * @return string |
33 | 32 | */ |
@@ -29,7 +29,7 @@ |
||
29 | 29 | /** |
30 | 30 | * Answer to unauthorized access request. |
31 | 31 | * |
32 | - * @param [type] $request [description] |
|
32 | + * @param \Illuminate\Http\Request $request [description] |
|
33 | 33 | * |
34 | 34 | * @return [type] [description] |
35 | 35 | */ |
@@ -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); |
@@ -159,7 +159,7 @@ |
||
159 | 159 | * @param \Illuminate\Database\Eloquent\Model $item The current CRUD model. |
160 | 160 | * @param array $formattedData The form data. |
161 | 161 | * |
162 | - * @return bool|null |
|
162 | + * @return false|null |
|
163 | 163 | */ |
164 | 164 | private function createRelationsForItem($item, $formattedData) |
165 | 165 | { |
@@ -81,7 +81,7 @@ |
||
81 | 81 | { |
82 | 82 | $all_relation_fields = $this->getRelationFields(); |
83 | 83 | |
84 | - return array_where($all_relation_fields, function ($value, $key) { |
|
84 | + return array_where($all_relation_fields, function($value, $key) { |
|
85 | 85 | return isset($value['pivot']) && $value['pivot']; |
86 | 86 | }); |
87 | 87 | } |
@@ -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 | * |
@@ -35,6 +35,7 @@ discard block |
||
35 | 35 | |
36 | 36 | /** |
37 | 37 | * Apply the search logic for each CRUD column. |
38 | + * @param string $searchTerm |
|
38 | 39 | */ |
39 | 40 | public function applySearchLogicForColumn($query, $column, $searchTerm) |
40 | 41 | { |
@@ -230,7 +231,7 @@ discard block |
||
230 | 231 | * |
231 | 232 | * @param string $view |
232 | 233 | * @param array $column |
233 | - * @param object $entry |
|
234 | + * @param \Illuminate\Database\Eloquent\Model $entry |
|
234 | 235 | * @param bool|int $rowNumber The number shown to the user as row number (index) |
235 | 236 | * |
236 | 237 | * @return string |
@@ -210,10 +210,10 @@ |
||
210 | 210 | // add the details_row button to the first column |
211 | 211 | if ($this->getOperationSetting('detailsRow')) { |
212 | 212 | $details_row_button = \View::make('crud::columns.details_row_button') |
213 | - ->with('crud', $this) |
|
214 | - ->with('entry', $entry) |
|
215 | - ->with('row_number', $rowNumber) |
|
216 | - ->render(); |
|
213 | + ->with('crud', $this) |
|
214 | + ->with('entry', $entry) |
|
215 | + ->with('row_number', $rowNumber) |
|
216 | + ->render(); |
|
217 | 217 | $row_items[0] = $details_row_button.$row_items[0]; |
218 | 218 | } |
219 | 219 |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | */ |
23 | 23 | public function applySearchTerm($searchTerm) |
24 | 24 | { |
25 | - return $this->query->where(function ($query) use ($searchTerm) { |
|
25 | + return $this->query->where(function($query) use ($searchTerm) { |
|
26 | 26 | foreach ($this->columns() as $column) { |
27 | 27 | if (!isset($column['type'])) { |
28 | 28 | abort(400, 'Missing column type when trying to apply search term.'); |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | |
83 | 83 | case 'select': |
84 | 84 | case 'select_multiple': |
85 | - $query->orWhereHas($column['entity'], function ($q) use ($column, $searchTerm) { |
|
85 | + $query->orWhereHas($column['entity'], function($q) use ($column, $searchTerm) { |
|
86 | 86 | $q->where($column['attribute'], 'like', '%'.$searchTerm.'%'); |
87 | 87 | }); |
88 | 88 | break; |
@@ -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 | { |
@@ -233,7 +233,7 @@ |
||
233 | 233 | if ($files_to_clear) { |
234 | 234 | foreach ($files_to_clear as $key => $filename) { |
235 | 235 | \Storage::disk($disk)->delete($filename); |
236 | - $attribute_value = array_where($attribute_value, function ($value, $key) use ($filename) { |
|
236 | + $attribute_value = array_where($attribute_value, function($value, $key) use ($filename) { |
|
237 | 237 | return $value != $filename; |
238 | 238 | }); |
239 | 239 | } |
@@ -5,7 +5,7 @@ discard block |
||
5 | 5 | * Appends the configured backpack prefix and returns |
6 | 6 | * the URL using the standard Laravel helpers. |
7 | 7 | * |
8 | - * @param $path |
|
8 | + * @param string $path |
|
9 | 9 | * |
10 | 10 | * @return string |
11 | 11 | */ |
@@ -156,6 +156,7 @@ discard block |
||
156 | 156 | * If that view doesn't exist, it will load the one from the original theme. |
157 | 157 | * |
158 | 158 | * @param string (see config/backpack/base.php) |
159 | + * @param string $view |
|
159 | 160 | * |
160 | 161 | * @return string |
161 | 162 | */ |