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 = 15-16 lines in 2 locations

app/Console/Commands/UpdateEnvironment.php 2 locations

@@ 153-168 (lines=16) @@
150
            $variables['CACHE_DRIVER'] = $this->option('driver');
151
        }
152
153
        if (is_null($this->option('session-driver'))) {
154
            $options = [
155
                'database' => 'MySQL (recommended)',
156
                'redis' => 'Redis',
157
                'file' => 'File',
158
                'cookie' => 'Cookie',
159
                'apc' => 'APC',
160
                'array' => 'PHP Array',
161
            ];
162
            $default = (in_array(config('session.driver', 'database'), $options)) ? config('cache.default', 'database') : 'database';
163
164
            $this->line('If you chose redis as your cache driver backend, you *must* have a redis server configured already.');
165
            $variables['SESSION_DRIVER'] = $this->choice('Which session driver backend would you like to use?', $options, $default);
166
        } else {
167
            $variables['SESSION_DRIVER'] = $this->option('session-driver');
168
        }
169
170
        if (is_null($this->option('queue-driver'))) {
171
            $options = [
@@ 170-184 (lines=15) @@
167
            $variables['SESSION_DRIVER'] = $this->option('session-driver');
168
        }
169
170
        if (is_null($this->option('queue-driver'))) {
171
            $options = [
172
                'database' => 'Database (recommended)',
173
                'redis' => 'Redis',
174
                'sqs' => 'Amazon SQS',
175
                'sync' => 'Sync',
176
                'null' => 'None',
177
            ];
178
            $default = (in_array(config('queue.driver', 'database'), $options)) ? config('queue.driver', 'database') : 'database';
179
180
            $this->line('If you chose redis as your queue driver backend, you *must* have a redis server configured already.');
181
            $variables['QUEUE_DRIVER'] = $this->choice('Which queue driver backend would you like to use?', $options, $default);
182
        } else {
183
            $variables['QUEUE_DRIVER'] = $this->option('queue-driver');
184
        }
185
186
        $bar = $this->output->createProgressBar(count($variables));
187