Normalizer   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 0
dl 0
loc 14
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A normalizePath() 0 4 1
1
<?php
2
3
namespace Mnabialek\LaravelModular\Traits;
4
5
trait Normalizer
6
{
7
    /**
8
     * Normalize path (removes trailing directory separators)
9
     *
10
     * @param string $path
11
     *
12
     * @return string
13
     */
14
    protected function normalizePath($path)
15
    {
16
        return rtrim($path, '/\\');
17
    }
18
}
19