We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | { |
49 | 49 | $this->crudPanel->setModel(User::class); |
50 | 50 | $request = request()->create('/admin/users', 'GET', ['my_custom_filter' => 'foo']); |
51 | - $request->setRouteResolver(function () use ($request) { |
|
51 | + $request->setRouteResolver(function() use ($request) { |
|
52 | 52 | return (new Route('GET', 'admin/users', ['UserCrudController', 'index']))->bind($request); |
53 | 53 | }); |
54 | 54 | $this->crudPanel->setRequest($request); |
@@ -64,10 +64,10 @@ discard block |
||
64 | 64 | ->options(['test' => 'test']) |
65 | 65 | ->view('simple') |
66 | 66 | ->viewNamespace('crud::filters') |
67 | - ->ifActive(function () { |
|
67 | + ->ifActive(function() { |
|
68 | 68 | return true; |
69 | 69 | }) |
70 | - ->ifInactive(function () { |
|
70 | + ->ifInactive(function() { |
|
71 | 71 | return true; |
72 | 72 | }); |
73 | 73 | |
@@ -84,10 +84,10 @@ discard block |
||
84 | 84 | public function testWhenActiveAndWhenInactiveAliases() |
85 | 85 | { |
86 | 86 | $filter = CrudFilter::name('my_filter') |
87 | - ->whenActive(function () { |
|
87 | + ->whenActive(function() { |
|
88 | 88 | return true; |
89 | 89 | }) |
90 | - ->whenInactive(function () { |
|
90 | + ->whenInactive(function() { |
|
91 | 91 | return true; |
92 | 92 | }); |
93 | 93 | |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | |
99 | 99 | public function testWhenNotActiveAlias() |
100 | 100 | { |
101 | - $filter = CrudFilter::name('my_filter')->whenNotActive(function () { |
|
101 | + $filter = CrudFilter::name('my_filter')->whenNotActive(function() { |
|
102 | 102 | return true; |
103 | 103 | }); |
104 | 104 | $this->assertCount(1, $this->crudPanel->filters()); |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | |
108 | 108 | public function testIfNotActiveAlias() |
109 | 109 | { |
110 | - $filter = CrudFilter::name('my_filter')->ifNotActive(function () { |
|
110 | + $filter = CrudFilter::name('my_filter')->ifNotActive(function() { |
|
111 | 111 | return true; |
112 | 112 | }); |
113 | 113 | $this->assertCount(1, $this->crudPanel->filters()); |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | |
117 | 117 | public function testElseAlias() |
118 | 118 | { |
119 | - $filter = CrudFilter::name('my_filter')->else(function () { |
|
119 | + $filter = CrudFilter::name('my_filter')->else(function() { |
|
120 | 120 | return true; |
121 | 121 | }); |
122 | 122 | $this->assertCount(1, $this->crudPanel->filters()); |