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.
Passed
Push — master ( 698fd2...95f32c )
by Christian
10:54 queued 08:21
created

PostgresConnection::getSchemaBuilder()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 4
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 8
ccs 5
cts 5
cp 1
crap 1
rs 10
1
<?php
2
3
namespace Omatech\Enigma\Database;
4
5
use Omatech\Enigma\Database\Query\Builder as QueryBuilder;
6
use Omatech\Enigma\Database\Schema\Blueprint;
7
8
class PostgresConnection extends \Illuminate\Database\PostgresConnection
9
{
10
    /**
11
     * Get a new query builder instance.
12
     *
13
     * @return \Illuminate\Database\Query\Builder
14
     */
15 15
    public function query()
16
    {
17 15
        return new QueryBuilder(
18 15
            $this,
19 15
            $this->getQueryGrammar(),
20 15
            $this->getPostProcessor()
21
        );
22
    }
23
24
    /**
25
     * Get a schema builder instance for the connection.
26
     *
27
     * @return \Illuminate\Database\Schema\PostgresBuilder
28
     */
29 15
    public function getSchemaBuilder(): \Illuminate\Database\Schema\PostgresBuilder
30
    {
31 15
        $builder = parent::getSchemaBuilder();
32
        $builder->blueprintResolver(static function ($table, $callback) {
33 15
            return new Blueprint($table, $callback);
34 15
        });
35
36 15
        return $builder;
37
    }
38
}
39