ControllerRestActionsCommand   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 6 1
1
<?php namespace Wn\Generators\Commands;
2
3
4
class ControllerRestActionsCommand extends BaseCommand {
5
6
	protected $signature = 'wn:controller:rest-actions
7
		{--force= : override the existing files}';
8
9
	protected $description = 'Generates REST actions trait to use into controllers';
10
11
    public function handle()
12
    {
13
        $content = $this->getTemplate('controller/rest-actions')->get();
14
15
        $this->save($content, "./app/Traits/RESTActions.php", "REST actions trait");
16
    }
17
18
}
19