Code Duplication    Length = 5-5 lines in 2 locations

src/Helpers/helpers.php 2 locations

@@ 52-56 (lines=5) @@
49
            $state_array = null;
50
51
            // Decode The State
52
            if(request('state')){
53
                $state_base64 = request('state');
54
                $state_decoded = urlsafe_b64decode($state_base64);
55
                $state_array = json_decode($state_decoded,true);
56
            }
57
58
            // Append the state cache key/value pairs to the new cache...
59
            if(isset($state_array['cache'])){
@@ 102-106 (lines=5) @@
99
        $state_array = null;
100
101
        // Decode the State
102
        if(request('state')){
103
            $state_base64 = request('state');
104
            $state_decoded = urlsafe_b64decode($state_base64);
105
            $state_array = json_decode($state_decoded,true);
106
        }
107
108
        $cursor = null;
109