Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
28 | protected function getContent() |
||
29 | { |
||
30 | if($this->isAdmin() === false) |
||
31 | { |
||
32 | $this->body = ' |
||
33 | <div class="row"> |
||
34 | <div class="col-lg-12"> |
||
35 | <h1 class="page-header">The current user does not have access rights to the '.$this->content['pageTitle'].' Admin system!</h1> |
||
36 | </div> |
||
37 | </div>'; |
||
38 | } |
||
39 | return parent::getContent(); |
||
40 | } |
||
41 | } |
||
43 |
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.