We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
1 | <?php |
||
7 | trait TraitReflections |
||
8 | { |
||
9 | /** |
||
10 | * Check for equal named templates and unique pages. |
||
11 | * |
||
12 | * As the method name of a unique page will also be the template name in the database, |
||
13 | * we must ensure that there are not any equal names defined. |
||
14 | * If different Models (and so different tables in the database) are used, this condition must not hold any more. |
||
15 | * |
||
16 | * @throws \Exception |
||
17 | */ |
||
18 | public function checkForTemplatesAndUniquePagesNotDistinct() |
||
31 | |||
32 | /** |
||
33 | * Get all defined unique pages. |
||
34 | * |
||
35 | * @return Collection |
||
36 | */ |
||
37 | public function getUniquePages() |
||
44 | |||
45 | /** |
||
46 | * Get all defined unique page names. |
||
47 | * |
||
48 | * @return Collection |
||
49 | */ |
||
50 | public function getUniquePageNames() |
||
54 | |||
55 | /** |
||
56 | * Get the page names keyed with slugs. |
||
57 | * |
||
58 | * @return Collection |
||
59 | */ |
||
60 | public function getUniqueSlugs() |
||
66 | |||
67 | /** |
||
68 | * Get all defined templates. |
||
69 | * |
||
70 | * @return Collection |
||
71 | */ |
||
72 | public function getTemplates($template_name = false) |
||
85 | |||
86 | /** |
||
87 | * Get all defined template names. |
||
88 | * |
||
89 | * @return Collection |
||
90 | */ |
||
91 | public function getTemplateNames() |
||
95 | } |
||
96 |
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.