| @@ -9,8 +9,8 @@ | ||
| 9 | 9 | $context = Timber::get_context(); | 
| 10 | 10 | $post = new Post(); | 
| 11 | 11 | $context['form'] = [ | 
| 12 | -      'url' => site_url('/wp-login.php?action=postpass', 'login_post'), | |
| 13 | - 'inputId' => empty($post->id) ? mt_rand() : $post->id | |
| 12 | +        'url' => site_url('/wp-login.php?action=postpass', 'login_post'), | |
| 13 | + 'inputId' => empty($post->id) ? mt_rand() : $post->id | |
| 14 | 14 | ]; | 
| 15 | 15 | |
| 16 | 16 |      return Timber::fetch('index.twig', $context); | 
| @@ -28,7 +28,7 @@ discard block | ||
| 28 | 28 | * clone | 
| 29 | 29 | * | 
| 30 | 30 | * Prevent cloning with 'protected' keyword | 
| 31 | - **/ | |
| 31 | + **/ | |
| 32 | 32 | protected function __clone() | 
| 33 | 33 |      { | 
| 34 | 34 | } | 
| @@ -37,7 +37,7 @@ discard block | ||
| 37 | 37 | * constructor | 
| 38 | 38 | * | 
| 39 | 39 | * Prevent instantiation with 'protected' keyword | 
| 40 | - **/ | |
| 40 | + **/ | |
| 41 | 41 | protected function __construct() | 
| 42 | 42 |      { | 
| 43 | 43 | } | 
| @@ -2,7 +2,6 @@ | ||
| 2 | 2 | |
| 3 | 3 | namespace Flynt\Features\TinyMce; | 
| 4 | 4 | |
| 5 | -use Flynt\Utils\Feature; | |
| 6 | 5 | use Flynt\Utils\Asset; | 
| 7 | 6 | |
| 8 | 7 | // Load TinyMCE Settings from config file | 
| @@ -2,9 +2,6 @@ | ||
| 2 | 2 | |
| 3 | 3 | namespace Flynt\Features\BaseStyle; | 
| 4 | 4 | |
| 5 | -use Timber\Timber; | |
| 6 | -use Flynt\ComponentManager; | |
| 7 | - | |
| 8 | 5 |  if (current_user_can('editor') || (WP_ENV !== 'production')) { | 
| 9 | 6 |      add_filter('init', 'Flynt\Features\BaseStyle\registerRewriteRule'); | 
| 10 | 7 |      add_filter('template_include', 'Flynt\Features\BaseStyle\templateInclude'); | 
| @@ -2,8 +2,6 @@ | ||
| 2 | 2 | |
| 3 | 3 | namespace Flynt\Features\YoutubeNoCookieEmbed; | 
| 4 | 4 | |
| 5 | -use Flynt\Utils\Oembed; | |
| 6 | - | |
| 7 | 5 |  add_action('oembed_result', 'Flynt\Features\YoutubeNoCookieEmbed\setNoCookieDomain', 10, 2); | 
| 8 | 6 |  add_filter('embed_oembed_html', 'Flynt\Features\YoutubeNoCookieEmbed\setNoCookieDomain', 10, 2); | 
| 9 | 7 | |
| @@ -27,7 +27,7 @@ | ||
| 27 | 27 | return $output; | 
| 28 | 28 | } | 
| 29 | 29 | |
| 30 | - // this action needs to be removed by the user if they want to overwrite this functionality | |
| 30 | + // this action needs to be removed by the user if they want to overwrite this functionality | |
| 31 | 31 | public static function loadFunctionsFile($componentName) | 
| 32 | 32 |      { | 
| 33 | 33 | $componentManager = ComponentManager::getInstance(); | 
| @@ -15,20 +15,20 @@ | ||
| 15 | 15 | return self::$instance; | 
| 16 | 16 | } | 
| 17 | 17 | |
| 18 | - /** | |
| 19 | - * clone | |
| 20 | - * | |
| 21 | - * Prevent cloning with 'protected' keyword | |
| 22 | - **/ | |
| 18 | + /** | |
| 19 | + * clone | |
| 20 | + * | |
| 21 | + * Prevent cloning with 'protected' keyword | |
| 22 | + **/ | |
| 23 | 23 | protected function __clone() | 
| 24 | 24 |      { | 
| 25 | 25 | } | 
| 26 | 26 | |
| 27 | - /** | |
| 28 | - * constructor | |
| 29 | - * | |
| 30 | - * Prevent instantiation with 'protected' keyword | |
| 31 | - **/ | |
| 27 | + /** | |
| 28 | + * constructor | |
| 29 | + * | |
| 30 | + * Prevent instantiation with 'protected' keyword | |
| 31 | + **/ | |
| 32 | 32 | protected function __construct() | 
| 33 | 33 |      { | 
| 34 | 34 | } | 
| @@ -56,7 +56,7 @@ | ||
| 56 | 56 |              add_action('wp_enqueue_scripts', NS . 'enqueueComponentScripts'); | 
| 57 | 57 | // adds Component Previews button to admin bar on front-end when logged in | 
| 58 | 58 |              add_action('admin_bar_menu', function ($wpAdminBar) { | 
| 59 | -               $title = __('Component Previews', 'flynt-starter-theme'); | |
| 59 | +                $title = __('Component Previews', 'flynt-starter-theme'); | |
| 60 | 60 | $wpAdminBar->add_node([ | 
| 61 | 61 | 'id' => 'toggleComponentPreviews', | 
| 62 | 62 | 'title' => $title, |