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
Pull Request — integration (#2604)
by Brendan
05:28
created

migration_266   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 24
rs 10
wmc 4
lcom 0
cbo 3

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getVersion() 0 4 1
A getReleaseNotes() 0 4 1
1
<?php
2
namespace SymphonyCms\Installer\Migrations;
3
4
use SymphonyCms\Installer\Lib\Migration;
5
use Symphony;
6
7
class migration_266 extends Migration
8
{
9
    public static function getVersion()
10
    {
11
        return '2.6.6';
12
    }
13
14
    public static function getReleaseNotes()
15
    {
16
        return 'http://getsymphony.com/download/releases/version/2.6.6/';
17
    }
18
19
    public static function upgrade()
20
    {
21
        // Add the upload blacklist (see c763e6a)
22
        $blacklist = Symphony::Configuration()->get('upload_blacklist', 'admin');
23
        if (empty($blacklist)) {
24
            Symphony::Configuration()->set('upload_blacklist', '/\.(?:php[34567s]?|phtml)$/i', 'admin');
25
        }
26
27
        // Update the version information
28
        return parent::upgrade();
29
    }
30
}
31