Completed
Push — master ( 5cb4e7...58ace1 )
by Milan
02:15
created

Utils   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 15
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A makeRelativePath() 0 8 2
1
<?php
2
3
namespace h4kuna\Upload;
4
5
class Utils
6
{
7
	/**
8
	 * @param string|IStoreFile $relativePath
9
	 * @return string
10
	 */
11
	public static function makeRelativePath($relativePath)
12
	{
13
		if ($relativePath instanceof IStoreFile) {
14
			return $relativePath->getRelativePath();
15
		}
16
17
		return $relativePath;
18
	}
19
}