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   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 9
c 1
b 0
f 0
dl 0
loc 29
ccs 10
cts 10
cp 1
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A query() 0 6 1
A getSchemaBuilder() 0 8 1
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