Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
37 | 6 | protected function qualifyClass($name) |
|
38 | { |
||
39 | 6 | $rootNamespace = $this->rootNamespace(); |
|
40 | |||
41 | 6 | if (Str::startsWith($name, $rootNamespace)) { |
|
42 | 6 | return $name; |
|
43 | } |
||
44 | |||
45 | 6 | $name = str_replace('/', '\\', $name); |
|
46 | |||
47 | 6 | return $this->qualifyClass( |
|
48 | 6 | $this->getDefaultNamespace(trim($rootNamespace, '\\')).'\\'.$name |
|
49 | 6 | ); |
|
50 | } |
||
51 | |||
62 |