CategoryFormRequest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getValidatedData() 0 7 1
1
<?php namespace Arcanesoft\Blog\Http\Requests\Admin\Categories;
2
3
use Arcanesoft\Blog\Http\Requests\Admin\FormRequest;
4
5
/**
6
 * Class     CategoryFormRequest
7
 *
8
 * @package  Arcanesoft\Blog\Http\Requests\Admin\Categories
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
abstract class CategoryFormRequest extends FormRequest
12
{
13
    /* -----------------------------------------------------------------
14
     |  Other Methods
15
     | -----------------------------------------------------------------
16
     */
17
18
    /**
19
     * Get the validated inputs.
20
     *
21
     * @return array
22
     */
23
    public function getValidatedData()
24
    {
25
        return [
26
            'name' => $this->get('name'),
27
            'slug' => $this->get('slug', $this->get('name')),
28
        ];
29
    }
30
}
31