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