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.

CreateCommand::applySql()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1.0156

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 3
cts 4
cp 0.75
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
crap 1.0156
1
<?php
2
3
namespace Bernard\Driver\Doctrine\Command;
4
5
use Doctrine\DBAL\Schema\Schema;
6
use Doctrine\DBAL\Schema\Synchronizer\SingleDatabaseSynchronizer as Synchronizer;
7
8
class CreateCommand extends AbstractCommand
9
{
10 2
    public function __construct()
11
    {
12 2
        parent::__construct('create');
13 2
    }
14
15
    /**
16
     * {@inheritdoc}
17
     */
18 1
    protected function getSql(Synchronizer $sync, Schema $schema)
19
    {
20 1
        return $sync->getCreateSchema($schema);
21
    }
22
23
    /**
24
     * {@inheritdoc}
25
     */
26 1
    protected function applySql(Synchronizer $sync, Schema $schema)
27
    {
28 1
        $sync->createSchema($schema);
29 1
    }
30
}
31