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 is obsolete. |
||
| 15 | * |
||
| 16 | * @throws \Exception |
||
| 17 | */ |
||
| 18 | public function checkForTemplatesAndUniquePagesNotDistinct() |
||
| 33 | |||
| 34 | /* |
||
| 35 | |-------------------------------------------------------------------------- |
||
| 36 | | UNIQUE PAGES |
||
| 37 | |-------------------------------------------------------------------------- |
||
| 38 | */ |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Load all defined unique pages. |
||
| 42 | * |
||
| 43 | * @return Collection |
||
| 44 | */ |
||
| 45 | private function loadUniquePages() |
||
| 52 | |||
| 53 | /** |
||
| 54 | * Get all defined unique pages. |
||
| 55 | * |
||
| 56 | * @return Collection |
||
| 57 | */ |
||
| 58 | public function getUniquePages() |
||
| 68 | |||
| 69 | /** |
||
| 70 | * Get all defined unique page names. |
||
| 71 | * |
||
| 72 | * @return Collection |
||
| 73 | */ |
||
| 74 | public function getUniquePageNames() |
||
| 78 | |||
| 79 | /** |
||
| 80 | * Get the page names keyed with slugs. |
||
| 81 | * |
||
| 82 | * @return Collection |
||
| 83 | */ |
||
| 84 | public function getUniqueSlugs() |
||
| 90 | |||
| 91 | |||
| 92 | /* |
||
| 93 | |-------------------------------------------------------------------------- |
||
| 94 | | TEMPLATES |
||
| 95 | |-------------------------------------------------------------------------- |
||
| 96 | */ |
||
| 97 | |||
| 98 | /** |
||
| 99 | * Load all defined templates. |
||
| 100 | * |
||
| 101 | * @return Collection |
||
| 102 | */ |
||
| 103 | private function loadTemplates() |
||
| 110 | |||
| 111 | /** |
||
| 112 | * Get all defined templates. |
||
| 113 | * |
||
| 114 | * @return Collection |
||
| 115 | */ |
||
| 116 | public function getTemplates($template_name = false) |
||
| 126 | |||
| 127 | /** |
||
| 128 | * Get all defined template names. |
||
| 129 | * |
||
| 130 | * @return Collection |
||
| 131 | */ |
||
| 132 | public function getTemplateNames() |
||
| 136 | } |
||
| 137 |
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.