File tree Expand file tree Collapse file tree 1 file changed +6
-18
lines changed
Expand file tree Collapse file tree 1 file changed +6
-18
lines changed Original file line number Diff line number Diff line change @@ -86,24 +86,12 @@ public function __construct(array $raw)
8686 public function jsonSerialize (): ?array
8787 {
8888 $ js = [];
89- if ($ this ->isAnonymous !== null ) {
90- $ js ['is_anonymous ' ] = $ this ->isAnonymous ;
91- }
92- if ($ this ->isAnonymousVpn !== null ) {
93- $ js ['is_anonymous_vpn ' ] = $ this ->isAnonymousVpn ;
94- }
95- if ($ this ->isHostingProvider !== null ) {
96- $ js ['is_hosting_provider ' ] = $ this ->isHostingProvider ;
97- }
98- if ($ this ->isPublicProxy !== null ) {
99- $ js ['is_public_proxy ' ] = $ this ->isPublicProxy ;
100- }
101- if ($ this ->isResidentialProxy !== null ) {
102- $ js ['is_residential_proxy ' ] = $ this ->isResidentialProxy ;
103- }
104- if ($ this ->isTorExitNode !== null ) {
105- $ js ['is_tor_exit_node ' ] = $ this ->isTorExitNode ;
106- }
89+ $ js ['is_anonymous ' ] = $ this ->isAnonymous ;
90+ $ js ['is_anonymous_vpn ' ] = $ this ->isAnonymousVpn ;
91+ $ js ['is_hosting_provider ' ] = $ this ->isHostingProvider ;
92+ $ js ['is_public_proxy ' ] = $ this ->isPublicProxy ;
93+ $ js ['is_residential_proxy ' ] = $ this ->isResidentialProxy ;
94+ $ js ['is_tor_exit_node ' ] = $ this ->isTorExitNode ;
10795 $ js ['ip_address ' ] = $ this ->ipAddress ;
10896 $ js ['network ' ] = $ this ->network ;
10997
You can’t perform that action at this time.
0 commit comments