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 ( 804d88...9de2aa )
by t
02:26
created

Command   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 13
rs 10
wmc 1
1
<?php
2
/**
3
 * Class Command
4
 *
5
 * @link https://www.icy2003.com/
6
 * @author icy2003 <[email protected]>
7
 * @copyright Copyright (c) 2017, icy2003
8
 */
9
10
namespace icy2003\php\iexts\yii2\db;
11
12
use yii\db\Command as C;
13
14
/**
15
 * Command 扩展
16
 */
17
class Command extends C
18
{
19
    /**
20
     * 判断表是否存在
21
     *
22
     * @param string $table
23
     *
24
     * @return boolean
25
     */
26
    public function tableExists($table)
27
    {
28
        $tables = $this->db->getSchema()->getTableNames();
29
        return in_array($this->db->tablePrefix . $table, $tables);
30
    }
31
}
32