| Conditions | 4 |
| Paths | 4 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 62 | public function addIncludePath(string $path, ?string $namespace = null) |
||
| 63 | { |
||
| 64 | if ($path = static::realPath($path)) { |
||
| 65 | $namespace = $namespace ?? 0; |
||
| 66 | if (array_key_exists($namespace, $this->includePath)) { |
||
| 67 | if (!in_array($path, $this->includePath[$namespace])) { |
||
| 68 | $this->includePath[$namespace][] = $path; |
||
| 69 | } |
||
| 70 | } else { |
||
| 71 | $this->includePath[$namespace][] = $path; |
||
| 72 | } |
||
| 96 |