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 | 0 |
1 | <?php |
||
37 | public function getTemplates($template_name = false) |
||
38 | { |
||
39 | $templates_array = []; |
||
40 | |||
41 | $templates_trait = new \ReflectionClass('App\PageTemplates'); |
||
42 | $templates = $templates_trait->getMethods(\ReflectionMethod::IS_PRIVATE); |
||
43 | |||
44 | if (! count($templates)) { |
||
45 | abort(503, trans('backpack::pagemanager.template_not_found')); |
||
46 | } |
||
47 | |||
48 | return $templates; |
||
49 | } |
||
50 | } |
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.