MakeBundlesFolder   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 12 2
1
<?php
2
3
namespace LaravelLangBundler\Commands;
4
5
class MakeBundlesFolder extends LaravelLangBundlerCommand
6
{
7
    /**
8
     * The name and signature of the console command.
9
     *
10
     * @var string
11
     */
12
    protected $signature = 'langb:start';
13
14
    /**
15
     * The console command description.
16
     *
17
     * @var string
18
     */
19
    protected $description = 'Get started by making a bundles directory.';
20
21
    /**
22
     * Execute the console command.
23
     */
24
    public function handle()
25
    {
26
        $this->setUp();
27
28
        $directory = resource_path('lang'.DIRECTORY_SEPARATOR.'bundles');
29
30
        if (!$this->filesystem->exists($directory)) {
31
            $this->filesystem->makeDirectory($directory);
32
        }
33
34
        $this->info('Bundles folder successfully created!');
35
    }
36
}
37