@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | /** |
| 35 | 35 | * Set all pages from within the functions.php->setControllers() |
| 36 | 36 | * |
| 37 | - * @param $pages |
|
| 37 | + * @param string[] $pages |
|
| 38 | 38 | */ |
| 39 | 39 | public function setPages($pages) |
| 40 | 40 | { |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | /** |
| 106 | 106 | * Return name of the body class |
| 107 | 107 | * |
| 108 | - * @return bool|string |
|
| 108 | + * @return string|false |
|
| 109 | 109 | */ |
| 110 | 110 | public function getClass() |
| 111 | 111 | { |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | /** |
| 72 | 72 | * See if controller excists else fall back to default |
| 73 | 73 | */ |
| 74 | - $file = get_template_directory() . '/controllers/' . $page . '.php'; |
|
| 74 | + $file = get_template_directory().'/controllers/'.$page.'.php'; |
|
| 75 | 75 | if (file_exists($file)) { |
| 76 | 76 | $this->found = $page; |
| 77 | 77 | |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | { |
| 100 | 100 | $this->setContext(); |
| 101 | 101 | $context = $this->context; |
| 102 | - Timber::render(['page-' . $this->context['post']->post_name . '.twig', 'page.twig'], $this->context, Cache::getTimerTime()); |
|
| 102 | + Timber::render(['page-'.$this->context['post']->post_name.'.twig', 'page.twig'], $this->context, Cache::getTimerTime()); |
|
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | /** |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | public function getClass() |
| 111 | 111 | { |
| 112 | 112 | if ($this->found) { |
| 113 | - return 'page-' . $this->found; |
|
| 113 | + return 'page-'.$this->found; |
|
| 114 | 114 | } else { |
| 115 | 115 | return false; |
| 116 | 116 | } |
@@ -6,15 +6,15 @@ |
||
| 6 | 6 | * Add or remove files to the array as needed. Supports child theme overrides. |
| 7 | 7 | */ |
| 8 | 8 | $stash_includes = [ |
| 9 | - 'lib/cache.php', // Cache |
|
| 9 | + 'lib/cache.php', // Cache |
|
| 10 | 10 | 'lib/controller.php', // Controller setup |
| 11 | - 'lib/timber.php', // Twig magic |
|
| 12 | - 'lib/assets.php', // Scripts and stylesheets |
|
| 13 | - 'lib/extras.php', // Custom functions |
|
| 14 | - 'lib/setup.php', // Theme setup |
|
| 15 | - 'lib/images.php', // Helper for retrieving Images |
|
| 16 | - 'lib/custom.php', // Load custom post types and taxonomies |
|
| 17 | - 'lib/acf.php', // Functions related to ACF |
|
| 11 | + 'lib/timber.php', // Twig magic |
|
| 12 | + 'lib/assets.php', // Scripts and stylesheets |
|
| 13 | + 'lib/extras.php', // Custom functions |
|
| 14 | + 'lib/setup.php', // Theme setup |
|
| 15 | + 'lib/images.php', // Helper for retrieving Images |
|
| 16 | + 'lib/custom.php', // Load custom post types and taxonomies |
|
| 17 | + 'lib/acf.php', // Functions related to ACF |
|
| 18 | 18 | 'lib/transients.php', // Clear all transients on database changes |
| 19 | 19 | ]; |
| 20 | 20 | |
@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | ]); |
| 14 | 14 | } |
| 15 | 15 | |
| 16 | -add_action('init', __NAMESPACE__ . '\\setControllers'); |
|
| 16 | +add_action('init', __NAMESPACE__.'\\setControllers'); |
|
| 17 | 17 | |
| 18 | 18 | function setup() |
| 19 | 19 | { |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | |
| 28 | 28 | // Make theme available for translation |
| 29 | 29 | // Community translations can be found at https://github.com/roots/sage-translations |
| 30 | - load_theme_textdomain('stash', get_template_directory() . '/lang'); |
|
| 30 | + load_theme_textdomain('stash', get_template_directory().'/lang'); |
|
| 31 | 31 | |
| 32 | 32 | // Enable plugins to manage the document title |
| 33 | 33 | // http://codex.wordpress.org/Function_Reference/add_theme_support#Title_Tag |
@@ -56,4 +56,4 @@ discard block |
||
| 56 | 56 | add_theme_support('menus'); |
| 57 | 57 | } |
| 58 | 58 | |
| 59 | -add_action('after_setup_theme', __NAMESPACE__ . '\\setup'); |
|
| 59 | +add_action('after_setup_theme', __NAMESPACE__.'\\setup'); |
|