Completed
Push — master ( b112db...b25060 )
by Vladimir
10:13
created

RouteServiceProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 14
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 3

1 Method

Rating   Name   Duplication   Size   Complexity  
A map() 0 9 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace FondBot\Foundation\Providers;
6
7
use Illuminate\Support\Facades\Route;
8
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as BaseRouteServiceProvider;
9
10
class RouteServiceProvider extends BaseRouteServiceProvider
11
{
12
    protected $namespace = 'FondBot\Foundation';
13
14 83
    public function map(): void
15
    {
16 83
        Route::get('/', 'FondBot\Foundation\Controller@index');
17
18 83
        Route::group(['middleware' => 'fondbot.webhook'], function () {
19 83
            Route::get('webhook/{channel}', 'FondBot\Foundation\Controller@webhook')->name('fondbot.webhook');
20 83
            Route::post('webhook/{channel}', 'FondBot\Foundation\Controller@webhook')->name('fondbot.webhook');
21 83
        });
22
    }
23
}
24