Completed
Push — master ( c6395c...b2af6e )
by ARCANEDEV
04:21
created

CategoriesRoutes   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 1
dl 0
loc 17
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

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 Functions
15
     | ------------------------------------------------------------------------------------------------
16
     */
17
    /**
18
     * Map routes.
19
     */
20
    public function map()
21
    {
22 6
        $this->prefix('categories')->name('categories.')->group(function () {
23 6
            $this->get('{slug}', 'CategoriesController@show')
24 6
                 ->name('show'); // public::blog.categories.show
25 6
        });
26 6
    }
27
}
28