CustomConnectionSqlanywhereServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 13
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A register() 0 3 1
A boot() 0 6 1
1
<?php
2
3
namespace Bludata\Lumen\Providers;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class CustomConnectionSqlanywhereServiceProvider extends ServiceProvider
8
{
9
    public function register()
10
    {
11
    }
12
13
    public function boot()
14
    {
15
        app('LaravelDoctrine\ORM\Configuration\Connections\ConnectionManager')->extend('sqlanywhere', function () {
0 ignored issues
show
Coding Style introduced by
This line exceeds maximum limit of 80 characters; contains 115 characters

Overly long lines are hard to read on any screen. Most code styles therefor impose a maximum limit on the number of characters in a line.

Loading history...
16
            return config('database.connections.sqlanywhere');
17
        });
18
    }
19
}
20