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.

m140924_111621_export_CreateExportMap   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A safeUp() 0 10 1
1
<?php
2
3
namespace Craft;
4
5
/**
6
 * The class name is the UTC timestamp in the format of mYYMMDD_HHMMSS_pluginHandle_migrationName.
7
 *
8
 * @author    Bob Olde Hampsink <[email protected]>
9
 * @copyright Copyright (c) 2015, Bob Olde Hampsink
10
 * @license   MIT
11
 *
12
 * @link http://github.com/boboldehampsink
13
 */
14
class m140924_111621_export_CreateExportMap extends BaseMigration
15
{
16
    /**
17
     * Any migration code in here is wrapped inside of a transaction.
18
     *
19
     * @return bool
20
     */
21
    public function safeUp()
22
    {
23
        // Create the craft_export_map table
24
        craft()->db->createCommand()->createTable('export_map', array(
25
            'settings' => array('column' => 'text'),
26
            'map' => array('column' => 'text'),
27
        ), null, true);
28
29
        return true;
30
    }
31
}
32