Directory   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A createIfNotExists() 0 7 2
1
<?php
2
3
namespace Scaffolder\Support;
4
5
use Illuminate\Support\Facades\File;
6
7
class Directory
8
{
9
	public static function createIfNotExists($path, $mode = 0755, $recursive = false, $force = false)
10
	{
11
		if (!File::isDirectory($path))
12
		{
13
			File::makeDirectory($path, $mode, $recursive , $force );
14
		}
15
	}
16
17
18
}
19
20