Storage::sanitizePath()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: nicolas
5
 * Date: 03/01/18
6
 * Time: 15:24
7
 */
8
9
namespace Devgiants\Model;
10
11
12
abstract class Storage implements StorageInterface {
13
14
	/**
15
	 * @param string $path
16
	 *
17
	 * @return string
18
	 */
19
	public function sanitizePath( $path ) {
20
		return preg_replace( '#/+#', '/', $path );
21
	}
22
}