File tree 5 files changed +9
-21
lines changed
5 files changed +9
-21
lines changed Original file line number Diff line number Diff line change @@ -20,38 +20,28 @@ abstract class Filter
20
20
{
21
21
/**
22
22
* Is this a block or allow filter?
23
- *
24
- * @var bool
25
23
*/
26
- protected $ block_filter = null ;
24
+ protected ? bool $ block_filter = null ;
27
25
28
26
/**
29
27
* The client instance.
30
- *
31
- * @var Client
32
28
*/
33
- protected $ client ;
29
+ protected Client $ client ;
34
30
35
31
/**
36
32
* Location of the config file.
37
- *
38
- * @var string
39
33
*/
40
- protected $ config_path = 'browserfilter. ' ;
34
+ protected string $ config_path = 'browserfilter. ' ;
41
35
42
36
/**
43
37
* The path to redirect the user if client is blocked.
44
- *
45
- * @var string
46
38
*/
47
- protected $ redirect_route ;
39
+ protected ? string $ redirect_route = null ;
48
40
49
41
/**
50
42
* The array of rules
51
- *
52
- * @var array
53
43
*/
54
- protected $ rules = [];
44
+ protected array $ rules = [];
55
45
56
46
/**
57
47
* Create a new browser filter middleware instance.
Original file line number Diff line number Diff line change @@ -11,10 +11,8 @@ class FilterServiceProvider extends ServiceProvider
11
11
{
12
12
/**
13
13
* Location of the configuration file in the package
14
- *
15
- * @var string
16
14
*/
17
- protected $ config_file ;
15
+ protected string $ config_file ;
18
16
19
17
public function __construct ($ app )
20
18
{
Original file line number Diff line number Diff line change @@ -10,5 +10,5 @@ class AllowFilter extends RouteFilter
10
10
/**
11
11
* {@inheritDoc}
12
12
*/
13
- protected $ block_filter = false ;
13
+ protected ? bool $ block_filter = false ;
14
14
}
Original file line number Diff line number Diff line change @@ -10,5 +10,5 @@ class BlockFilter extends RouteFilter
10
10
/**
11
11
* {@inheritDoc}
12
12
*/
13
- protected $ block_filter = true ;
13
+ protected ? bool $ block_filter = true ;
14
14
}
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ class Filter extends CoreFilter
14
14
/**
15
15
* {@inheritDoc}
16
16
*/
17
- protected $ block_filter = true ;
17
+ protected ? bool $ block_filter = true ;
18
18
19
19
/**
20
20
* {@inheritDoc}
You can’t perform that action at this time.
0 commit comments