CopyTailwindConfigFile   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 23
ccs 0
cts 8
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 9 1
1
<?php namespace Arcanedev\Assets\Pipes\Presets\Tailwind;
2
3
use Arcanedev\Assets\Helpers\Stub;
4
use Closure;
5
use Illuminate\Support\Facades\File;
6
7
/**
8
 * Class     CopyTailwindConfigFile
9
 *
10
 * @package  Arcanedev\Assets\Pipes\Presets\Tailwind
11
 * @author   ARCANEDEV <[email protected]>
12
 */
13
class CopyTailwindConfigFile
14
{
15
    /* -----------------------------------------------------------------
16
     |  Main Method
17
     | -----------------------------------------------------------------
18
     */
19
20
    /**
21
     * @param  array     $passable
22
     * @param  \Closure  $next
23
     *
24
     * @return mixed
25
     */
26
    public function handle(array $passable, Closure $next)
27
    {
28
        File::copy(
29
            Stub::path('presets/tailwind/tailwind.js'),
30
            base_path($passable['path'].'/tailwind.js')
31
        );
32
33
        return $next($passable);
34
    }
35
}
36