@@ -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'); |
@@ -4,7 +4,7 @@ discard block |
||
4 | 4 | $root_dir = dirname(__DIR__); |
5 | 5 | |
6 | 6 | /** @var string Document Root */ |
7 | -$webroot_dir = $root_dir . '/web'; |
|
7 | +$webroot_dir = $root_dir.'/web'; |
|
8 | 8 | |
9 | 9 | /** |
10 | 10 | * Expose global env() function from oscarotero/env |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | * Use Dotenv to set required environment variables and load .env file in root |
16 | 16 | */ |
17 | 17 | $dotenv = new Dotenv\Dotenv($root_dir); |
18 | -if (file_exists($root_dir . '/.env')) { |
|
18 | +if (file_exists($root_dir.'/.env')) { |
|
19 | 19 | $dotenv->load(); |
20 | 20 | $dotenv->required(['DB_NAME', 'DB_USER', 'DB_PASSWORD', 'ENV_DEVELOPMENT']); |
21 | 21 | } |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | */ |
27 | 27 | define('WP_ENV', env('WP_ENV') ?: 'development'); |
28 | 28 | |
29 | -$env_config = __DIR__ . '/environments/' . WP_ENV . '.php'; |
|
29 | +$env_config = __DIR__.'/environments/'.WP_ENV.'.php'; |
|
30 | 30 | |
31 | 31 | if (file_exists($env_config)) { |
32 | 32 | require_once $env_config; |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | $WP_HOME = $envs['development']; |
57 | 57 | } |
58 | 58 | |
59 | -$WP_SITEURL = $WP_HOME . '/wp'; |
|
59 | +$WP_SITEURL = $WP_HOME.'/wp'; |
|
60 | 60 | |
61 | 61 | define('WP_HOME', $WP_HOME); |
62 | 62 | define('WP_SITEURL', $WP_SITEURL); |
@@ -65,8 +65,8 @@ discard block |
||
65 | 65 | * Custom Content Directory |
66 | 66 | */ |
67 | 67 | define('CONTENT_DIR', '/app'); |
68 | -define('WP_CONTENT_DIR', $webroot_dir . CONTENT_DIR); |
|
69 | -define('WP_CONTENT_URL', WP_HOME . CONTENT_DIR); |
|
68 | +define('WP_CONTENT_DIR', $webroot_dir.CONTENT_DIR); |
|
69 | +define('WP_CONTENT_URL', WP_HOME.CONTENT_DIR); |
|
70 | 70 | |
71 | 71 | /** |
72 | 72 | * DB settings |
@@ -102,5 +102,5 @@ discard block |
||
102 | 102 | * Bootstrap WordPress |
103 | 103 | */ |
104 | 104 | if (!defined('ABSPATH')) { |
105 | - define('ABSPATH', $webroot_dir . '/wp/'); |
|
105 | + define('ABSPATH', $webroot_dir.'/wp/'); |
|
106 | 106 | } |
107 | 107 | \ No newline at end of file |