File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ class FilterService
19
19
*/
20
20
public function __construct ($ client , Builder $ builder )
21
21
{
22
- if (is_string ($ client )){
22
+ if (is_string ($ client )) {
23
23
$ client = new $ client ();
24
24
}
25
25
$ this ->client = $ client ;
@@ -50,18 +50,18 @@ protected function getClientMethods()
50
50
protected function getClientDefault (string $ key = null )
51
51
{
52
52
if (empty ($ key )) {
53
- return $ this ->getClient ()->default ?? [];
53
+ return empty ( $ this ->getClient ()->default ) ? [] : $ this -> getClient ()-> default ;
54
54
} else {
55
- return $ this ->getClientDefault ()[$ key ] ?? null ;
55
+ return empty ( $ this ->getClientDefault ()[$ key ]) ? null : $ this -> getClientDefault ()[ $ key ] ;
56
56
}
57
57
}
58
58
59
59
protected function getClientFallback (string $ key = null )
60
60
{
61
61
if ($ key === null ) {
62
- return $ this ->getClient ()->fallback ?? [];
62
+ return empty ( $ this ->getClient ()->fallback ) ? [] : $ this -> getClient ()-> fallback ;
63
63
} else {
64
- return $ this ->getClientFallback ()[$ key ] ?? null ;
64
+ return empty ( $ this ->getClientFallback ()[$ key ]) ? null : $ this -> getClientFallback ()[ $ key ] ;
65
65
}
66
66
}
67
67
@@ -80,7 +80,7 @@ protected function getParam($key = null)
80
80
if ($ key === null ) {
81
81
return $ this ->params ;
82
82
} else {
83
- return $ this ->params [$ key ] ?? null ;
83
+ return empty ( $ this ->params [$ key ]) ? null : $ this -> params [ $ key ] ;
84
84
}
85
85
}
86
86
You can’t perform that action at this time.
0 commit comments