Completed
Pull Request — master (#3)
by ARCANEDEV
16:54
created

AbstractRouteRegistrar   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A moduleGroup() 0 6 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Arcanesoft\Backups\Http\Routes;
6
7
use Arcanesoft\Foundation\Support\Http\AdminRouteRegistrar;
8
use Closure;
9
10
/**
11
 * Class     AbstractRouteRegistrar
12
 *
13
 * @package  Arcanesoft\Backups\Http\Routes
14
 * @author   ARCANEDEV <[email protected]>
15
 */
16
abstract class AbstractRouteRegistrar extends AdminRouteRegistrar
17
{
18
    /* -----------------------------------------------------------------
19
     |  Main Methods
20
     | -----------------------------------------------------------------
21
     */
22
23
    /**
24
     * Group routes under a module stack.
25
     *
26
     * @param  \Closure  $callback
27
     */
28
    protected function moduleGroup(Closure $callback): void
29
    {
30
        $this->prefix('backups')
0 ignored issues
show
Bug introduced by
The method prefix() does not exist on Arcanesoft\Backups\Http\...\AbstractRouteRegistrar. Did you maybe mean getAdminPrefix()?

This check marks calls to methods that do not seem to exist on an object.

This is most likely the result of a method being renamed without all references to it being renamed likewise.

Loading history...
31
             ->name('backups.')
32
             ->group($callback);
33
    }
34
}
35