| Conditions | 4 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 19 | private function getMustache($loaders = true) |
||
| 20 | { |
||
| 21 | if(!is_object($this->mustache) && $loaders == true) |
||
|
|
|||
| 22 | { |
||
| 23 | $this->mustache = new \Mustache_Engine([ |
||
| 24 | 'loader' => new mustache\MustacheLoader(), |
||
| 25 | 'partials_loader' => new mustache\MustachePartialsLoader($this) |
||
| 26 | ]); |
||
| 27 | } elseif (!is_object($this->mustache)) { |
||
| 28 | $this->mustache = new \Mustache_Engine(); |
||
| 29 | } |
||
| 30 | return $this->mustache; |
||
| 31 | } |
||
| 32 | |||
| 51 |
When comparing two booleans, it is generally considered safer to use the strict comparison operator.