We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -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 | { |
@@ -3,9 +3,9 @@ |
||
3 | 3 | namespace Backpack\CRUD; |
4 | 4 | |
5 | 5 | use DB; |
6 | -use Traversable; |
|
7 | -use Illuminate\Support\Facades\Config; |
|
8 | 6 | use Illuminate\Database\Eloquent\Model; |
7 | +use Illuminate\Support\Facades\Config; |
|
8 | +use Traversable; |
|
9 | 9 | |
10 | 10 | trait CrudTrait |
11 | 11 | { |
@@ -11,6 +11,9 @@ |
||
11 | 11 | return $this->autoFocusOnFirstField; |
12 | 12 | } |
13 | 13 | |
14 | + /** |
|
15 | + * @param boolean $value |
|
16 | + */ |
|
14 | 17 | public function setAutoFocusOnFirstField($value) |
15 | 18 | { |
16 | 19 | return $this->autoFocusOnFirstField = (bool) $value; |
@@ -124,7 +124,7 @@ |
||
124 | 124 | |
125 | 125 | /** |
126 | 126 | * Determine if the current CRUD action is a list operation (using standard or ajax DataTables). |
127 | - * @return bool |
|
127 | + * @return boolean|null |
|
128 | 128 | */ |
129 | 129 | public function doingListOperation() |
130 | 130 | { |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace Backpack\CRUD\ModelTraits\SpatieTranslatable; |
4 | 4 | |
5 | -use Illuminate\Database\Eloquent\Model; |
|
6 | 5 | use Illuminate\Contracts\Events\Dispatcher; |
6 | +use Illuminate\Database\Eloquent\Model; |
|
7 | 7 | |
8 | 8 | class SluggableObserver extends \Cviebrock\EloquentSluggable\SluggableObserver |
9 | 9 | { |
@@ -2,9 +2,9 @@ |
||
2 | 2 | |
3 | 3 | namespace Backpack\CRUD\ModelTraits\SpatieTranslatable; |
4 | 4 | |
5 | -use Illuminate\Database\Eloquent\Model; |
|
6 | -use Illuminate\Database\Eloquent\Builder; |
|
7 | 5 | use Cviebrock\EloquentSluggable\Sluggable as OriginalSluggable; |
6 | +use Illuminate\Database\Eloquent\Builder; |
|
7 | +use Illuminate\Database\Eloquent\Model; |
|
8 | 8 | |
9 | 9 | trait Sluggable |
10 | 10 | { |
@@ -37,7 +37,6 @@ |
||
37 | 37 | * Query scope for finding "similar" slugs, used to determine uniqueness. |
38 | 38 | * |
39 | 39 | * @param \Illuminate\Database\Eloquent\Builder $query |
40 | - * @param \Illuminate\Database\Eloquent\Model $model |
|
41 | 40 | * @param string $attribute |
42 | 41 | * @param array $config |
43 | 42 | * @param string $slug |
@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace Backpack\CRUD; |
4 | 4 | |
5 | -use Route; |
|
6 | 5 | use Illuminate\Support\ServiceProvider; |
7 | 6 | |
8 | 7 | class CrudServiceProvider extends ServiceProvider |
@@ -15,7 +15,7 @@ |
||
15 | 15 | * |
16 | 16 | * @param int $id The id of the item to be deleted. |
17 | 17 | * |
18 | - * @return bool True if the item was deleted. |
|
18 | + * @return string True if the item was deleted. |
|
19 | 19 | * |
20 | 20 | * @throws \Illuminate\Database\Eloquent\ModelNotFoundException if the model was not found. |
21 | 21 | * |
@@ -123,6 +123,7 @@ |
||
123 | 123 | * |
124 | 124 | * @param [string] Route name. |
125 | 125 | * @param [array] Parameters. |
126 | + * @param string $route |
|
126 | 127 | */ |
127 | 128 | public function setRouteName($route, $parameters = []) |
128 | 129 | { |
@@ -2,28 +2,28 @@ |
||
2 | 2 | |
3 | 3 | namespace Backpack\CRUD; |
4 | 4 | |
5 | -use Backpack\CRUD\PanelTraits\Read; |
|
6 | -use Backpack\CRUD\PanelTraits\Tabs; |
|
7 | -use Backpack\CRUD\PanelTraits\Query; |
|
8 | -use Backpack\CRUD\PanelTraits\Views; |
|
9 | 5 | use Backpack\CRUD\PanelTraits\Access; |
6 | +use Backpack\CRUD\PanelTraits\AutoFocus; |
|
7 | +use Backpack\CRUD\PanelTraits\AutoSet; |
|
8 | +use Backpack\CRUD\PanelTraits\Buttons; |
|
9 | +use Backpack\CRUD\PanelTraits\Columns; |
|
10 | 10 | use Backpack\CRUD\PanelTraits\Create; |
11 | 11 | use Backpack\CRUD\PanelTraits\Delete; |
12 | 12 | use Backpack\CRUD\PanelTraits\Errors; |
13 | +use Backpack\CRUD\PanelTraits\FakeColumns; |
|
14 | +use Backpack\CRUD\PanelTraits\FakeFields; |
|
13 | 15 | use Backpack\CRUD\PanelTraits\Fields; |
14 | -use Backpack\CRUD\PanelTraits\Search; |
|
15 | -use Backpack\CRUD\PanelTraits\Update; |
|
16 | -use Backpack\CRUD\PanelTraits\AutoSet; |
|
17 | -use Backpack\CRUD\PanelTraits\Buttons; |
|
18 | -use Backpack\CRUD\PanelTraits\Columns; |
|
19 | 16 | use Backpack\CRUD\PanelTraits\Filters; |
17 | +use Backpack\CRUD\PanelTraits\Query; |
|
18 | +use Backpack\CRUD\PanelTraits\Read; |
|
20 | 19 | use Backpack\CRUD\PanelTraits\Reorder; |
21 | -use Backpack\CRUD\PanelTraits\AutoFocus; |
|
22 | -use Backpack\CRUD\PanelTraits\FakeFields; |
|
23 | -use Backpack\CRUD\PanelTraits\FakeColumns; |
|
24 | -use Illuminate\Database\Eloquent\Collection; |
|
25 | 20 | use Backpack\CRUD\PanelTraits\RequiredFields; |
21 | +use Backpack\CRUD\PanelTraits\Search; |
|
22 | +use Backpack\CRUD\PanelTraits\Tabs; |
|
23 | +use Backpack\CRUD\PanelTraits\Update; |
|
24 | +use Backpack\CRUD\PanelTraits\Views; |
|
26 | 25 | use Backpack\CRUD\PanelTraits\ViewsAndRestoresRevisions; |
26 | +use Illuminate\Database\Eloquent\Collection; |
|
27 | 27 | |
28 | 28 | class CrudPanel |
29 | 29 | { |
@@ -12,12 +12,18 @@ |
||
12 | 12 | |-------------------------------------------------------------------------- |
13 | 13 | */ |
14 | 14 | |
15 | + /** |
|
16 | + * @param string $access |
|
17 | + */ |
|
15 | 18 | public function allowAccess($access) |
16 | 19 | { |
17 | 20 | // $this->addButtons((array)$access); |
18 | 21 | return $this->access = array_merge(array_diff((array) $access, $this->access), $this->access); |
19 | 22 | } |
20 | 23 | |
24 | + /** |
|
25 | + * @param string $access |
|
26 | + */ |
|
21 | 27 | public function denyAccess($access) |
22 | 28 | { |
23 | 29 | // $this->removeButtons((array)$access); |