Passed
Push — master ( 2877b0...07a4c4 )
by Jacques
49s queued 11s
created
includes/yoast/class-lsx-yoast.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -6,11 +6,11 @@  discard block
 block discarded – undo
6 6
  * @subpackage yoast
7 7
  */
8 8
 
9
-if ( ! defined( 'ABSPATH' ) ) {
9
+if ( ! defined('ABSPATH')) {
10 10
 	exit;
11 11
 }
12 12
 
13
-if ( ! class_exists( 'LSX_Yoast' ) ) :
13
+if ( ! class_exists('LSX_Yoast')) :
14 14
 
15 15
 	/**
16 16
 	 * The LSX Yoast integration class
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 		 */
33 33
 		public function __construct() {
34 34
 
35
-			add_action( 'wp_enqueue_scripts', array( $this, 'lsx_yoast_scripts_add_styles' ) );
35
+			add_action('wp_enqueue_scripts', array($this, 'lsx_yoast_scripts_add_styles'));
36 36
 		}
37 37
 
38 38
 		/**
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 		 */
44 44
 		public static function get_instance() {
45 45
 			// If the single instance hasn't been set, set it now.
46
-			if ( null === self::$instance ) {
46
+			if (null === self::$instance) {
47 47
 				self::$instance = new self();
48 48
 			}
49 49
 			return self::$instance;
@@ -56,8 +56,8 @@  discard block
 block discarded – undo
56 56
 		 * @subpackage yoast
57 57
 		 */
58 58
 		public function lsx_yoast_scripts_add_styles() {
59
-			wp_enqueue_script( 'lsx_yoast_js', get_template_directory_uri() . '/assets/js/yoast/yoast.js', array( 'jquery' ), LSX_VERSION, true );
60
-			wp_enqueue_style( 'lsx_yoast_css', get_template_directory_uri() . '/assets/css/yoast/yoast.css', array( 'lsx_main' ), LSX_VERSION );
59
+			wp_enqueue_script('lsx_yoast_js', get_template_directory_uri() . '/assets/js/yoast/yoast.js', array('jquery'), LSX_VERSION, true);
60
+			wp_enqueue_style('lsx_yoast_css', get_template_directory_uri() . '/assets/css/yoast/yoast.css', array('lsx_main'), LSX_VERSION);
61 61
 		}
62 62
 	}
63 63
 
Please login to merge, or discard this patch.
functions.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -7,33 +7,33 @@
 block discarded – undo
7 7
  * @package lsx
8 8
  */
9 9
 
10
-if ( ! defined( 'ABSPATH' ) ) {
10
+if ( ! defined('ABSPATH')) {
11 11
 	exit;
12 12
 }
13 13
 
14
-define( 'LSX_VERSION', '2.8' );
14
+define('LSX_VERSION', '2.8');
15 15
 
16
-if ( in_array( 'wordpress-seo/wp-seo.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) {
16
+if (in_array('wordpress-seo/wp-seo.php', apply_filters('active_plugins', get_option('active_plugins')))) {
17 17
 	require get_template_directory() . '/includes/yoast/class-lsx-yoast.php';
18 18
 }
19 19
 
20
-if ( class_exists( 'WooCommerce' ) ) {
20
+if (class_exists('WooCommerce')) {
21 21
 	require get_template_directory() . '/includes/woocommerce/woocommerce.php';
22 22
 }
23 23
 
24
-if ( class_exists( 'Tribe__Events__Main' ) ) {
24
+if (class_exists('Tribe__Events__Main')) {
25 25
 	require get_template_directory() . '/includes/the-events-calendar/the-events-calendar.php';
26 26
 }
27 27
 
28
-if ( class_exists( 'Sensei_Main' ) || class_exists( 'Sensei_WC' ) ) {
28
+if (class_exists('Sensei_Main') || class_exists('Sensei_WC')) {
29 29
 	require get_template_directory() . '/includes/sensei/class-lsx-sensei.php';
30 30
 }
31 31
 
32
-if ( class_exists( 'Popup_Maker' ) ) {
32
+if (class_exists('Popup_Maker')) {
33 33
 	require get_template_directory() . '/includes/popup-maker/class-lsx-popup-maker.php';
34 34
 }
35 35
 
36
-if ( class_exists( 'bbPress' ) ) {
36
+if (class_exists('bbPress')) {
37 37
 	require get_template_directory() . '/includes/bbpress/bbpress.php';
38 38
 }
39 39
 
Please login to merge, or discard this patch.