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::getReleaseNotes()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
cc 1
eloc 2
c 1
b 1
f 0
nc 1
nop 0
dl 0
loc 4
rs 10
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