CategoriesRoutes   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 2
dl 0
loc 18
ccs 0
cts 7
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A map() 0 7 1
1
<?php namespace Arcanesoft\Blog\Http\Routes\Front;
2
3
use Arcanedev\Support\Routing\RouteRegistrar;
4
5
/**
6
 * Class     CategoriesRoutes
7
 *
8
 * @package  Arcanesoft\Blog\Http\Routes\Front
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
class CategoriesRoutes extends RouteRegistrar
12
{
13
    /* -----------------------------------------------------------------
14
     |  Main Methods
15
     | -----------------------------------------------------------------
16
     */
17
18
    /**
19
     * Map routes.
20
     */
21
    public function map()
22
    {
23
        $this->prefix('categories')->name('categories.')->group(function () {
24
            $this->get('{slug}', 'CategoriesController@show')
25
                 ->name('show'); // public::blog.categories.show
26
        });
27
    }
28
}
29