Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
24 | public function render() { |
||
25 | $label = 'root-namespace'; |
||
|
|||
26 | $this->addLine('.. _namespace-all'); |
||
27 | $this->addH1(RstBuilder::escape('Namespaces')); |
||
28 | $this->addLine(); |
||
29 | $this->addLine('.. toctree::'); |
||
30 | $this->addIndentLine(1, ':maxdepth: 1')->addLine(); |
||
31 | foreach ($this->namespaces as $namespace) { |
||
32 | $namespaceString = (string)$namespace->getFqsen(); |
||
33 | $subPath = $namespaceString; |
||
34 | $path = substr(str_replace("\\", "/", $subPath), 1) . '/index'; |
||
35 | $this->addIndentLine(1, $namespace->getFqsen() . ' <' . $path . '>'); |
||
36 | } |
||
37 | $this->addLine(); |
||
38 | $this->addLine(); |
||
39 | |||
41 | } |