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 | /** |
||
11 | * Check for equal named templates and unique pages |
||
12 | * |
||
13 | * As the method name of a unique page will also be the template name in the database, |
||
14 | * we must ensure that there are not any equal names defined. |
||
15 | * If different Models (and so different tables in the database) are used, this condition must not hold any more. |
||
16 | * |
||
17 | * @throws \Exception |
||
18 | */ |
||
19 | public function checkForTemplatesAndUniquePagesNotDistinct() |
||
32 | |||
33 | /** |
||
34 | * Get all defined unique pages. |
||
35 | * |
||
36 | * @return Collection |
||
37 | */ |
||
38 | public function getUniquePages() |
||
45 | |||
46 | /** |
||
47 | * Get all defined unique page names. |
||
48 | * |
||
49 | * @return Collection |
||
50 | */ |
||
51 | public function getUniquePageNames() |
||
55 | |||
56 | /** |
||
57 | * Get the page names keyed with slugs. |
||
58 | * |
||
59 | * @return Collection |
||
60 | */ |
||
61 | public function getUniqueSlugs() |
||
67 | |||
68 | /** |
||
69 | * Get all defined templates. |
||
70 | * |
||
71 | * @return Collection |
||
72 | */ |
||
73 | public function getTemplates($template_name = false) |
||
86 | |||
87 | /** |
||
88 | * Get all defined template names |
||
89 | * |
||
90 | * @return Collection |
||
91 | */ |
||
92 | public function getTemplateNames() |
||
96 | } |
||
97 |
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.