We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 35 | public function getTemplates($template_name = false) |
||
| 36 | { |
||
| 37 | $templates_array = []; |
||
| 38 | |||
| 39 | $templates_trait = new \ReflectionClass('App\PageTemplates'); |
||
| 40 | $templates = $templates_trait->getMethods(\ReflectionMethod::IS_PRIVATE); |
||
| 41 | |||
| 42 | if (! count($templates)) { |
||
| 43 | abort(503, trans('backpack::pagemanager.template_not_found')); |
||
| 44 | } |
||
| 45 | |||
| 46 | return $templates; |
||
| 47 | } |
||
| 48 | } |
||
| 49 |
Overly long lines are hard to read on any screen. Most code styles therefor impose a maximum limit on the number of characters in a line.