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.

MySqlConnection   A
last analyzed

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 MySqlConnection extends \Illuminate\Database\MySqlConnection
9
{
10
    /**
11
     * Get a new query builder instance.
12
     *
13
     * @return \Illuminate\Database\Query\Builder
14
     */
15 18
    public function query()
16
    {
17 18
        return new QueryBuilder(
18 18
            $this,
19 18
            $this->getQueryGrammar(),
20 18
            $this->getPostProcessor()
21
        );
22
    }
23
24
    /**
25
     * Get a schema builder instance for the connection.
26
     *
27
     * @return \Illuminate\Database\Schema\MySqlBuilder
28
     */
29 18
    public function getSchemaBuilder(): \Illuminate\Database\Schema\MySqlBuilder
30
    {
31 18
        $builder = parent::getSchemaBuilder();
32
        $builder->blueprintResolver(static function ($table, $callback) {
33 18
            return new Blueprint($table, $callback);
34 18
        });
35
36 18
        return $builder;
37
    }
38
}
39