Storage   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 9
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A sanitizePath() 0 2 1
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
}