GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 5-5 lines in 2 locations

src/Display/Column/NamedColumn.php 1 location

@@ 124-128 (lines=5) @@
121
122
            $cast = $casts->get($jsonParts->first(), false);
123
124
            if ($cast == 'object') {
125
                $jsonAttr = json_decode(json_encode($jsonAttr), true);
126
            } elseif ($cast != 'array') {
127
                $jsonAttr = json_decode($jsonAttr);
128
            }
129
130
            return Arr::get($jsonAttr, $jsonParts->slice(1)->implode('.'));
131
        }

src/Form/Element/NamedFormElement.php 1 location

@@ 384-388 (lines=5) @@
381
382
            $cast = $casts->get($jsonParts->first(), false);
383
384
            if ($cast == 'object') {
385
                $jsonAttr = json_decode(json_encode($jsonAttr), true);
386
            } elseif ($cast != 'array') {
387
                $jsonAttr = json_decode($jsonAttr);
388
            }
389
390
            return Arr::get($jsonAttr, $jsonParts->slice(1)->implode('.'));
391
        }