MakeBundlesFolder::handle()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 12

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
nc 2
nop 0
dl 0
loc 12
rs 9.8666
c 0
b 0
f 0
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