Conditions | 6 |
Paths | 6 |
Total Lines | 16 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
41 | public function PrevTemplateoverviewPage() |
||
42 | { |
||
43 | $list = $this->TemplateList(); |
||
44 | $doIt = false; |
||
45 | if ($list) { |
||
46 | foreach ($list as $page) { |
||
47 | if ($page->ClassName == $this->owner->ClassName) { |
||
48 | $doIt = true; |
||
49 | } |
||
50 | if ($doIt && isset($previousPage)) { |
||
51 | return $previousPage; |
||
52 | } |
||
53 | $previousPage = $page; |
||
54 | } |
||
55 | } |
||
56 | } |
||
57 | |||
76 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.