Passed
Push — master ( 1afd65...931997 )
by Warwick
02:34 queued 10s
created
lib/theme-support.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -3,36 +3,36 @@
 block discarded – undo
3 3
 /**
4 4
  * Enqueue theme CSS and JavaScript .
5 5
  */
6
-if ( ! function_exists( 'theme_support' ) ) :
6
+if ( ! function_exists('theme_support')) :
7 7
 	function theme_support() {
8 8
 		// Add support for full and wide align images.
9
-		add_theme_support( 'align-wide' );
9
+		add_theme_support('align-wide');
10 10
 		// Add support for styling blocks.
11
-		add_theme_support( 'wp-block-styles' );
11
+		add_theme_support('wp-block-styles');
12 12
 		// Add support for custom color scheme.
13
-		add_theme_support( 'editor-color-palette', array(
13
+		add_theme_support('editor-color-palette', array(
14 14
 			array(
15
-				'name'  => __( 'Strong Blue', 'lsx' ),
15
+				'name'  => __('Strong Blue', 'lsx'),
16 16
 				'slug'  => 'strong-blue',
17 17
 				'color' => '#27639e',
18 18
 			),
19 19
 			array(
20
-				'name'  => __( 'Lighter Blue', 'lsx' ),
20
+				'name'  => __('Lighter Blue', 'lsx'),
21 21
 				'slug'  => 'lighter-blue',
22 22
 				'color' => '#428bca',
23 23
 			),
24 24
 			array(
25
-				'name'  => __( 'Yellow', 'lsx' ),
25
+				'name'  => __('Yellow', 'lsx'),
26 26
 				'slug'  => 'light-yellow',
27 27
 				'color' => '#f7ae00',
28 28
 			),
29 29
 			array(
30
-				'name'  => __( 'Dark Yellow', 'lsx' ),
30
+				'name'  => __('Dark Yellow', 'lsx'),
31 31
 				'slug'  => 'dark-yellow',
32 32
 				'color' => '#ab7800',
33 33
 			),
34
-		) );
34
+		));
35 35
 	}
36 36
 endif;
37
-add_action( 'after_setup_theme', 'theme_support' );
37
+add_action('after_setup_theme', 'theme_support');
38 38
 
Please login to merge, or discard this patch.
functions.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -5,25 +5,25 @@
 block discarded – undo
5 5
  * @package lsx
6 6
  */
7 7
 
8
-if ( ! defined( 'ABSPATH' ) ) {
8
+if ( ! defined('ABSPATH')) {
9 9
 	exit;
10 10
 }
11 11
 
12
-define( 'LSX_VERSION', '2.2.1' );
12
+define('LSX_VERSION', '2.2.1');
13 13
 
14
-if ( class_exists( 'WooCommerce' ) ) {
14
+if (class_exists('WooCommerce')) {
15 15
 	require get_template_directory() . '/includes/plugins/woocommerce.php';
16 16
 }
17 17
 
18
-if ( class_exists( 'Tribe__Events__Main' ) ) {
18
+if (class_exists('Tribe__Events__Main')) {
19 19
 	require get_template_directory() . '/includes/plugins/the-events-calendar.php';
20 20
 }
21 21
 
22
-if ( class_exists( 'Sensei_WC' ) ) {
22
+if (class_exists('Sensei_WC')) {
23 23
 	require get_template_directory() . '/includes/plugins/sensei.php';
24 24
 }
25 25
 
26
-if ( class_exists( 'bbPress' ) ) {
26
+if (class_exists('bbPress')) {
27 27
 	require get_template_directory() . '/includes/plugins/bbpress.php';
28 28
 }
29 29
 
Please login to merge, or discard this patch.
page-templates/template-front-page.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -20,9 +20,9 @@  discard block
 block discarded – undo
20 20
 
21 21
 		<?php lsx_content_top(); ?>
22 22
 
23
-		<?php if ( have_posts() && ( ! class_exists( 'LSX_Banners' ) || ( function_exists( 'has_blocks' ) && has_blocks() ) ) ) : ?>
23
+		<?php if (have_posts() && ( ! class_exists('LSX_Banners') || (function_exists('has_blocks') && has_blocks()))) : ?>
24 24
 
25
-			<?php while ( have_posts() ) : the_post(); ?>
25
+			<?php while (have_posts()) : the_post(); ?>
26 26
 
27 27
 				<?php lsx_entry_before(); ?>
28 28
 
@@ -32,10 +32,10 @@  discard block
 block discarded – undo
32 32
 						<?php the_content(); ?>
33 33
 
34 34
 						<?php
35
-							wp_link_pages( array(
36
-								'before' => '<nav class="page-nav"><p>' . esc_html__( 'Pages:', 'lsx' ),
35
+							wp_link_pages(array(
36
+								'before' => '<nav class="page-nav"><p>' . esc_html__('Pages:', 'lsx'),
37 37
 								'after'  => '</p></nav>',
38
-							) );
38
+							));
39 39
 						?>
40 40
 					</div><!-- .entry-content -->
41 41
 
@@ -47,11 +47,11 @@  discard block
 block discarded – undo
47 47
 
48 48
 		<?php endif; ?>
49 49
 
50
-		<?php if ( is_active_sidebar( 'sidebar-home' ) && ( function_exists( 'has_blocks' ) && ! has_blocks() ) ) : ?>
50
+		<?php if (is_active_sidebar('sidebar-home') && (function_exists('has_blocks') && ! has_blocks())) : ?>
51 51
 
52 52
 			<div id="home-widgets">
53 53
 
54
-				<?php dynamic_sidebar( 'sidebar-home' ); ?>
54
+				<?php dynamic_sidebar('sidebar-home'); ?>
55 55
 
56 56
 			</div>
57 57
 
Please login to merge, or discard this patch.
includes/plugins/the-events-calendar.php 1 patch
Spacing   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -6,11 +6,11 @@  discard block
 block discarded – undo
6 6
  * @subpackage the-events-calendar
7 7
  */
8 8
 
9
-if ( ! defined( 'ABSPATH' ) ) {
9
+if ( ! defined('ABSPATH')) {
10 10
 	exit;
11 11
 }
12 12
 
13
-if ( ! function_exists( 'lsx_tec_scripts_add_styles' ) ) :
13
+if ( ! function_exists('lsx_tec_scripts_add_styles')) :
14 14
 
15 15
 	/**
16 16
 	 * The Events Calendar enqueue styles.
@@ -19,15 +19,15 @@  discard block
 block discarded – undo
19 19
 	 * @subpackage the-events-calendar
20 20
 	 */
21 21
 	function lsx_tec_scripts_add_styles() {
22
-		wp_enqueue_style( 'the-events-calendar-lsx', get_template_directory_uri() . '/assets/css/the-events-calendar.css', array( 'lsx_main' ), LSX_VERSION );
23
-		wp_style_add_data( 'the-events-calendar-lsx', 'rtl', 'replace' );
22
+		wp_enqueue_style('the-events-calendar-lsx', get_template_directory_uri() . '/assets/css/the-events-calendar.css', array('lsx_main'), LSX_VERSION);
23
+		wp_style_add_data('the-events-calendar-lsx', 'rtl', 'replace');
24 24
 	}
25 25
 
26
-	add_action( 'wp_enqueue_scripts', 'lsx_tec_scripts_add_styles' );
26
+	add_action('wp_enqueue_scripts', 'lsx_tec_scripts_add_styles');
27 27
 
28 28
 endif;
29 29
 
30
-if ( ! function_exists( 'lsx_tec_theme_wrapper_start' ) ) :
30
+if ( ! function_exists('lsx_tec_theme_wrapper_start')) :
31 31
 
32 32
 	/**
33 33
 	 * The Events Calendar wrapper start.
@@ -37,17 +37,17 @@  discard block
 block discarded – undo
37 37
 	 */
38 38
 	function lsx_tec_theme_wrapper_start() {
39 39
 		lsx_content_wrap_before();
40
-		echo '<div id="primary" class="content-area ' . esc_attr( lsx_main_class() ) . '">';
40
+		echo '<div id="primary" class="content-area ' . esc_attr(lsx_main_class()) . '">';
41 41
 		lsx_content_before();
42 42
 		echo '<main id="main" class="site-main" role="main">';
43 43
 		lsx_content_top();
44 44
 	}
45 45
 
46
-	add_action( 'tribe_events_before_html', 'lsx_tec_theme_wrapper_start', 9 );
46
+	add_action('tribe_events_before_html', 'lsx_tec_theme_wrapper_start', 9);
47 47
 
48 48
 endif;
49 49
 
50
-if ( ! function_exists( 'lsx_tec_theme_wrapper_end' ) ) :
50
+if ( ! function_exists('lsx_tec_theme_wrapper_end')) :
51 51
 
52 52
 	/**
53 53
 	 * The Events Calendar wrapper end.
@@ -63,11 +63,11 @@  discard block
 block discarded – undo
63 63
 		lsx_content_wrap_after();
64 64
 	}
65 65
 
66
-	add_action( 'tribe_events_after_html', 'lsx_tec_theme_wrapper_end', 11 );
66
+	add_action('tribe_events_after_html', 'lsx_tec_theme_wrapper_end', 11);
67 67
 
68 68
 endif;
69 69
 
70
-if ( ! function_exists( 'lsx_tec_disable_lsx_banner' ) ) :
70
+if ( ! function_exists('lsx_tec_disable_lsx_banner')) :
71 71
 
72 72
 	/**
73 73
 	 * Disable LSX Banners in some pages.
@@ -75,16 +75,16 @@  discard block
 block discarded – undo
75 75
 	 * @package    lsx
76 76
 	 * @subpackage the-events-calendar
77 77
 	 */
78
-	function lsx_tec_disable_lsx_banner( $disabled ) {
78
+	function lsx_tec_disable_lsx_banner($disabled) {
79 79
 		global $current_screen;
80 80
 
81
-		$post_types = apply_filters( 'tribe_is_post_type_screen_post_types', Tribe__Main::get_post_types() );
81
+		$post_types = apply_filters('tribe_is_post_type_screen_post_types', Tribe__Main::get_post_types());
82 82
 
83
-		if ( is_archive() && tribe_is_event() ) {
83
+		if (is_archive() && tribe_is_event()) {
84 84
 			$disabled = true;
85 85
 		}
86 86
 
87
-		if ( is_single() && tribe_is_event() ) {
87
+		if (is_single() && tribe_is_event()) {
88 88
 			$disabled = true;
89 89
 		}
90 90
 
@@ -92,27 +92,27 @@  discard block
 block discarded – undo
92 92
 	}
93 93
 
94 94
 	// LSX Banners - Banner
95
-	add_filter( 'lsx_banner_disable', 'lsx_tec_disable_lsx_banner' );
95
+	add_filter('lsx_banner_disable', 'lsx_tec_disable_lsx_banner');
96 96
 
97 97
 endif;
98 98
 
99
-if ( ! function_exists( 'lsx_tec_breadcrumb_filter' ) ) :
99
+if ( ! function_exists('lsx_tec_breadcrumb_filter')) :
100 100
 	/**
101 101
 	 * Fixes the community events breadcrumb
102 102
 	 *
103 103
 	 * @package    lsx
104 104
 	 * @subpackage the-events-calendar
105 105
 	 */
106
-	function lsx_tec_breadcrumb_filter( $crumbs ) {
107
-		if ( tribe_is_community_edit_event_page() || tribe_is_community_my_events_page() ) {
106
+	function lsx_tec_breadcrumb_filter($crumbs) {
107
+		if (tribe_is_community_edit_event_page() || tribe_is_community_my_events_page()) {
108 108
 
109
-			foreach ( $crumbs as $crumb_index => $crumb ){
110
-				if ( isset( $crumb['ptarchive'] ) ) {
111
-					$crumbs[ $crumb_index ]['ptarchive'] = 'tribe_events';
109
+			foreach ($crumbs as $crumb_index => $crumb) {
110
+				if (isset($crumb['ptarchive'])) {
111
+					$crumbs[$crumb_index]['ptarchive'] = 'tribe_events';
112 112
 				}
113 113
 			}
114 114
 		}
115 115
 		return $crumbs;
116 116
 	}
117
-	add_filter( 'wpseo_breadcrumb_links', 'lsx_tec_breadcrumb_filter', 10, 1 );
117
+	add_filter('wpseo_breadcrumb_links', 'lsx_tec_breadcrumb_filter', 10, 1);
118 118
 endif;
Please login to merge, or discard this patch.
includes/gutenberg.php 2 patches
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -6,36 +6,36 @@
 block discarded – undo
6 6
  * @subpackage Gutenberg
7 7
  */
8 8
 
9
-if ( ! defined( 'ABSPATH' ) ) {
9
+if ( ! defined('ABSPATH')) {
10 10
 	exit;
11 11
 }
12 12
 
13 13
 // Enqueue Admin styles on admin area
14 14
 function load_gutenberg_admin_style() {
15
-	wp_enqueue_style( 'admin_css', get_template_directory_uri() . '/assets/css/admin/gutenberg-admin.css', false, '1.0.0' );
15
+	wp_enqueue_style('admin_css', get_template_directory_uri() . '/assets/css/admin/gutenberg-admin.css', false, '1.0.0');
16 16
 }
17
-add_action( 'admin_enqueue_scripts', 'load_gutenberg_admin_style' );
17
+add_action('admin_enqueue_scripts', 'load_gutenberg_admin_style');
18 18
 
19 19
 // Gutenberg Compatibility
20
-require_once( get_template_directory() . '/lib/theme-support.php' );
20
+require_once(get_template_directory() . '/lib/theme-support.php');
21 21
 
22 22
 /**
23 23
  * Add custom class for Gutenberg Compatible template
24 24
  */
25 25
 
26
-function add_gutenberg_compatible_body_class( $classes ) {
26
+function add_gutenberg_compatible_body_class($classes) {
27 27
 	//if ( ! is_home() && ! is_front_page() )
28
-		if ( is_page() || is_page_template() || is_single() )
28
+		if (is_page() || is_page_template() || is_single())
29 29
 			$classes[] = 'gutenberg-compatible-template';
30 30
 		return $classes;
31 31
 
32 32
 }
33 33
 
34
-add_filter( 'body_class', __NAMESPACE__ . '\add_gutenberg_compatible_body_class' );
34
+add_filter('body_class', __NAMESPACE__ . '\add_gutenberg_compatible_body_class');
35 35
 
36 36
 // Add custom class for templates that are using the Gutenberg editor
37
-add_action('body_class', function( $classes ) {
38
-	if ( function_exists( 'has_blocks' ) && has_blocks( get_the_ID() ) )
37
+add_action('body_class', function($classes) {
38
+	if (function_exists('has_blocks') && has_blocks(get_the_ID()))
39 39
 		$classes[] = 'using-gutenberg';
40 40
 	return $classes;
41 41
 });
Please login to merge, or discard this patch.
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,8 +25,9 @@  discard block
 block discarded – undo
25 25
 
26 26
 function add_gutenberg_compatible_body_class( $classes ) {
27 27
 	//if ( ! is_home() && ! is_front_page() )
28
-		if ( is_page() || is_page_template() || is_single() )
29
-			$classes[] = 'gutenberg-compatible-template';
28
+		if ( is_page() || is_page_template() || is_single() ) {
29
+					$classes[] = 'gutenberg-compatible-template';
30
+		}
30 31
 		return $classes;
31 32
 
32 33
 }
@@ -35,7 +36,8 @@  discard block
 block discarded – undo
35 36
 
36 37
 // Add custom class for templates that are using the Gutenberg editor
37 38
 add_action('body_class', function( $classes ) {
38
-	if ( function_exists( 'has_blocks' ) && has_blocks( get_the_ID() ) )
39
-		$classes[] = 'using-gutenberg';
39
+	if ( function_exists( 'has_blocks' ) && has_blocks( get_the_ID() ) ) {
40
+			$classes[] = 'using-gutenberg';
41
+	}
40 42
 	return $classes;
41 43
 });
Please login to merge, or discard this patch.