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.

YouTube_HashesRecord::getTableName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Craft;
4
5
/**
6
 * YouTube Duplicate Record.
7
 *
8
 * @author    Bob Olde Hampsink <[email protected]>
9
 * @copyright Copyright (c) 2015, Itmundi
10
 * @license   MIT
11
 *
12
 * @link      http://github.com/boboldehampsink
13
 */
14
class YouTube_HashesRecord extends BaseRecord
15
{
16
    /**
17
     * Return table name
18
     * @return string
19
     */
20
    public function getTableName()
21
    {
22
        return 'youtube_hashes';
23
    }
24
25
    /**
26
     * Define attributes
27
     * @return array
28
     */
29
    protected function defineAttributes()
30
    {
31
        return array(
32
            'youtubeId' => array(AttributeType::String, 'required' => true),
33
            'hash' => array(AttributeType::String, 'unique' => true, 'required' => true),
34
        );
35
    }
36
}
37