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.
Completed
Push — master ( 245398...6d40cc )
by Renato
28s
created

UpCommand::fire()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 4
Bugs 0 Features 0
Metric Value
c 4
b 0
f 0
dl 0
loc 8
rs 9.4285
cc 2
eloc 5
nc 2
nop 0
1
<?php
2
3
namespace Rdehnhardt\MaintenanceMode\Console\Commands;
4
5
class UpCommand extends Command
6
{
7
    /**
8
     * @var string
9
     */
10
    protected $name = 'up';
11
12
    /**
13
     * @var string
14
     */
15
    protected $description = 'Bring the application out of maintenance mode.';
16
17
    /**
18
     * Bring the application out of maintenance mode.
19
     */
20
    public function handle()
21
    {
22
        if ($this->maintenance->isDownMode()) {
23
            $this->setUpMode();
24
        } else {
25
            $this->info('The application was already alive.');
26
        }
27
    }
28
}
29