Passed
Push — master ( 0df495...36baab )
by Virginia
04:40
created
includes/lsx-customizer-colour-options.php 1 patch
Spacing   +104 added lines, -104 removed lines patch added patch discarded remove patch
@@ -12,97 +12,97 @@  discard block
 block discarded – undo
12 12
 global $customizer_colour_names;
13 13
 global $customizer_colour_choices;
14 14
 
15
-$customizer_colour_names = apply_filters( 'lsx_customizer_colour_names', array(
16
-	'button_background_color'       => esc_html__( 'Background', 'lsx-customizer' ),
17
-	'button_background_hover_color' => esc_html__( 'Background (hover)', 'lsx-customizer' ),
18
-	'button_text_color'             => esc_html__( 'Text', 'lsx-customizer' ),
19
-	'button_text_color_hover'       => esc_html__( 'Text (hover)', 'lsx-customizer' ),
20
-	'button_shadow'                 => esc_html__( 'Shadow', 'lsx-customizer' ),
21
-
22
-	'button_cta_background_color'       => esc_html__( 'Background', 'lsx-customizer' ),
23
-	'button_cta_background_hover_color' => esc_html__( 'Background (hover)', 'lsx-customizer' ),
24
-	'button_cta_text_color'             => esc_html__( 'Text', 'lsx-customizer' ),
25
-	'button_cta_text_color_hover'       => esc_html__( 'Text (hover)', 'lsx-customizer' ),
26
-	'button_cta_shadow'                 => esc_html__( 'Shadow', 'lsx-customizer' ),
27
-
28
-	'button_secondary_background_color'       => esc_html__( 'Background', 'lsx-customizer' ),
29
-	'button_secondary_background_hover_color' => esc_html__( 'Background (hover)', 'lsx-customizer' ),
30
-	'button_secondary_text_color'             => esc_html__( 'Text', 'lsx-customizer' ),
31
-	'button_secondary_text_color_hover'       => esc_html__( 'Text (hover)', 'lsx-customizer' ),
32
-	'button_secondary_shadow'                 => esc_html__( 'Shadow', 'lsx-customizer' ),
33
-
34
-	'button_tertiary_background_color'       => esc_html__( 'Background', 'lsx-customizer' ),
35
-	'button_tertiary_background_hover_color' => esc_html__( 'Background (hover)', 'lsx-customizer' ),
36
-	'button_tertiary_text_color'             => esc_html__( 'Text', 'lsx-customizer' ),
37
-	'button_tertiary_text_color_hover'       => esc_html__( 'Text (hover)', 'lsx-customizer' ),
38
-	'button_tertiary_shadow'                 => esc_html__( 'Shadow', 'lsx-customizer' ),
39
-
40
-	'top_menu_background_color'          => esc_html__( 'Background', 'lsx-customizer' ),
41
-	'top_menu_link_color'                => esc_html__( 'Link', 'lsx-customizer' ),
42
-	'top_menu_link_hover_color'          => esc_html__( 'Link (hover)', 'lsx-customizer' ),
43
-	'top_menu_icon_color'                => esc_html__( 'Icon', 'lsx-customizer' ),
44
-	'top_menu_icon_hover_color'          => esc_html__( 'Icon (hover)', 'lsx-customizer' ),
45
-	'top_menu_dropdown_color'            => esc_html__( 'Dropdown', 'lsx-customizer' ),
46
-	'top_menu_dropdown_hover_color'      => esc_html__( 'Dropdown (hover)', 'lsx-customizer' ),
47
-	'top_menu_dropdown_link_color'       => esc_html__( 'Dropdown link', 'lsx-customizer' ),
48
-	'top_menu_dropdown_link_hover_color' => esc_html__( 'Dropdown link (hover)', 'lsx-customizer' ),
49
-
50
-	'header_background_color'  => esc_html__( 'Background', 'lsx-customizer' ),
51
-	'header_link_color'        => esc_html__( 'Link', 'lsx-customizer' ),
52
-	'header_link_hover_color'  => esc_html__( 'Link (hover)', 'lsx-customizer' ),
53
-	'header_description_color' => esc_html__( 'Description', 'lsx-customizer' ),
54
-
55
-	'main_menu_background_color'                => esc_html__( 'Background', 'lsx-customizer' ),
56
-	'main_menu_link_color'                      => esc_html__( 'Link', 'lsx-customizer' ),
57
-	'main_menu_link_hover_color'                => esc_html__( 'Link (hover)', 'lsx-customizer' ),
58
-	'main_menu_dropdown_background_color'       => esc_html__( 'Dropdown', 'lsx-customizer' ),
59
-	'main_menu_dropdown_background_hover_color' => esc_html__( 'Dropdown (hover)', 'lsx-customizer' ),
60
-	'main_menu_dropdown_link_color'             => esc_html__( 'Dropdown link', 'lsx-customizer' ),
61
-	'main_menu_dropdown_link_hover_color'       => esc_html__( 'Dropdown link (hover)', 'lsx-customizer' ),
62
-
63
-	'banner_background_color'               => esc_html__( 'Background', 'lsx-customizer' ),
64
-	'banner_text_color'                     => esc_html__( 'Text', 'lsx-customizer' ),
65
-	'banner_text_image_color'               => esc_html__( 'Text (over image)', 'lsx-customizer' ),
66
-	'banner_breadcrumb_background_color'    => esc_html__( 'Breadcrumb Background', 'lsx-customizer' ),
67
-	'banner_breadcrumb_text_color'          => esc_html__( 'Breadcrumb Text', 'lsx-customizer' ),
68
-	'banner_breadcrumb_text_selected_color' => esc_html__( 'Breadcrumb Text (selected)', 'lsx-customizer' ),
69
-
70
-	'background_color'                       => esc_html__( 'Background', 'lsx-customizer' ),
71
-	'body_line_color'                        => esc_html__( 'Line', 'lsx-customizer' ),
72
-	'body_text_heading_color'                => esc_html__( 'Text (heading)', 'lsx-customizer' ),
73
-	'body_text_small_color'                  => esc_html__( 'Text (small)', 'lsx-customizer' ),
74
-	'body_text_color'                        => esc_html__( 'Text', 'lsx-customizer' ),
75
-	'body_link_color'                        => esc_html__( 'Link', 'lsx-customizer' ),
76
-	'body_link_hover_color'                  => esc_html__( 'Link (hover)', 'lsx-customizer' ),
77
-	'body_section_full_background_color'     => esc_html__( 'Section full (background)', 'lsx-customizer' ),
78
-	'body_section_full_text_color'           => esc_html__( 'Section full (text)', 'lsx-customizer' ),
79
-	'body_section_full_link_color'           => esc_html__( 'Section full (link)', 'lsx-customizer' ),
80
-	'body_section_full_link_hover_color'     => esc_html__( 'Section full (link hover)', 'lsx-customizer' ),
81
-	'body_section_full_cta_background_color' => esc_html__( 'Section full CTA (background)', 'lsx-customizer' ),
82
-	'body_section_full_cta_text_color'       => esc_html__( 'Section full CTA (text)', 'lsx-customizer' ),
83
-	'body_section_full_cta_link_color'       => esc_html__( 'Section full CTA (link)', 'lsx-customizer' ),
84
-	'body_section_full_cta_link_hover_color' => esc_html__( 'Section full CTA (link hover)', 'lsx-customizer' ),
85
-
86
-	'footer_cta_background_color' => esc_html__( 'Background', 'lsx-customizer' ),
87
-	'footer_cta_text_color'       => esc_html__( 'Text', 'lsx-customizer' ),
88
-	'footer_cta_link_color'       => esc_html__( 'Link', 'lsx-customizer' ),
89
-	'footer_cta_link_hover_color' => esc_html__( 'Link (hover)', 'lsx-customizer' ),
90
-
91
-	'footer_widgets_background_color' => esc_html__( 'Background', 'lsx-customizer' ),
92
-	'footer_widgets_text_color'       => esc_html__( 'Text', 'lsx-customizer' ),
93
-	'footer_widgets_link_color'       => esc_html__( 'Link', 'lsx-customizer' ),
94
-	'footer_widgets_link_hover_color' => esc_html__( 'Link (hover)', 'lsx-customizer' ),
95
-
96
-	'footer_background_color' => esc_html__( 'Background', 'lsx-customizer' ),
97
-	'footer_text_color'       => esc_html__( 'Text', 'lsx-customizer' ),
98
-	'footer_link_color'       => esc_html__( 'Link', 'lsx-customizer' ),
99
-	'footer_link_hover_color' => esc_html__( 'Link (hover)', 'lsx-customizer' ),
100
-) );
101
-
102
-$customizer_colour_choices = apply_filters( 'lsx_customizer_colour_choices', array(
15
+$customizer_colour_names = apply_filters('lsx_customizer_colour_names', array(
16
+	'button_background_color'       => esc_html__('Background', 'lsx-customizer'),
17
+	'button_background_hover_color' => esc_html__('Background (hover)', 'lsx-customizer'),
18
+	'button_text_color'             => esc_html__('Text', 'lsx-customizer'),
19
+	'button_text_color_hover'       => esc_html__('Text (hover)', 'lsx-customizer'),
20
+	'button_shadow'                 => esc_html__('Shadow', 'lsx-customizer'),
21
+
22
+	'button_cta_background_color'       => esc_html__('Background', 'lsx-customizer'),
23
+	'button_cta_background_hover_color' => esc_html__('Background (hover)', 'lsx-customizer'),
24
+	'button_cta_text_color'             => esc_html__('Text', 'lsx-customizer'),
25
+	'button_cta_text_color_hover'       => esc_html__('Text (hover)', 'lsx-customizer'),
26
+	'button_cta_shadow'                 => esc_html__('Shadow', 'lsx-customizer'),
27
+
28
+	'button_secondary_background_color'       => esc_html__('Background', 'lsx-customizer'),
29
+	'button_secondary_background_hover_color' => esc_html__('Background (hover)', 'lsx-customizer'),
30
+	'button_secondary_text_color'             => esc_html__('Text', 'lsx-customizer'),
31
+	'button_secondary_text_color_hover'       => esc_html__('Text (hover)', 'lsx-customizer'),
32
+	'button_secondary_shadow'                 => esc_html__('Shadow', 'lsx-customizer'),
33
+
34
+	'button_tertiary_background_color'       => esc_html__('Background', 'lsx-customizer'),
35
+	'button_tertiary_background_hover_color' => esc_html__('Background (hover)', 'lsx-customizer'),
36
+	'button_tertiary_text_color'             => esc_html__('Text', 'lsx-customizer'),
37
+	'button_tertiary_text_color_hover'       => esc_html__('Text (hover)', 'lsx-customizer'),
38
+	'button_tertiary_shadow'                 => esc_html__('Shadow', 'lsx-customizer'),
39
+
40
+	'top_menu_background_color'          => esc_html__('Background', 'lsx-customizer'),
41
+	'top_menu_link_color'                => esc_html__('Link', 'lsx-customizer'),
42
+	'top_menu_link_hover_color'          => esc_html__('Link (hover)', 'lsx-customizer'),
43
+	'top_menu_icon_color'                => esc_html__('Icon', 'lsx-customizer'),
44
+	'top_menu_icon_hover_color'          => esc_html__('Icon (hover)', 'lsx-customizer'),
45
+	'top_menu_dropdown_color'            => esc_html__('Dropdown', 'lsx-customizer'),
46
+	'top_menu_dropdown_hover_color'      => esc_html__('Dropdown (hover)', 'lsx-customizer'),
47
+	'top_menu_dropdown_link_color'       => esc_html__('Dropdown link', 'lsx-customizer'),
48
+	'top_menu_dropdown_link_hover_color' => esc_html__('Dropdown link (hover)', 'lsx-customizer'),
49
+
50
+	'header_background_color'  => esc_html__('Background', 'lsx-customizer'),
51
+	'header_link_color'        => esc_html__('Link', 'lsx-customizer'),
52
+	'header_link_hover_color'  => esc_html__('Link (hover)', 'lsx-customizer'),
53
+	'header_description_color' => esc_html__('Description', 'lsx-customizer'),
54
+
55
+	'main_menu_background_color'                => esc_html__('Background', 'lsx-customizer'),
56
+	'main_menu_link_color'                      => esc_html__('Link', 'lsx-customizer'),
57
+	'main_menu_link_hover_color'                => esc_html__('Link (hover)', 'lsx-customizer'),
58
+	'main_menu_dropdown_background_color'       => esc_html__('Dropdown', 'lsx-customizer'),
59
+	'main_menu_dropdown_background_hover_color' => esc_html__('Dropdown (hover)', 'lsx-customizer'),
60
+	'main_menu_dropdown_link_color'             => esc_html__('Dropdown link', 'lsx-customizer'),
61
+	'main_menu_dropdown_link_hover_color'       => esc_html__('Dropdown link (hover)', 'lsx-customizer'),
62
+
63
+	'banner_background_color'               => esc_html__('Background', 'lsx-customizer'),
64
+	'banner_text_color'                     => esc_html__('Text', 'lsx-customizer'),
65
+	'banner_text_image_color'               => esc_html__('Text (over image)', 'lsx-customizer'),
66
+	'banner_breadcrumb_background_color'    => esc_html__('Breadcrumb Background', 'lsx-customizer'),
67
+	'banner_breadcrumb_text_color'          => esc_html__('Breadcrumb Text', 'lsx-customizer'),
68
+	'banner_breadcrumb_text_selected_color' => esc_html__('Breadcrumb Text (selected)', 'lsx-customizer'),
69
+
70
+	'background_color'                       => esc_html__('Background', 'lsx-customizer'),
71
+	'body_line_color'                        => esc_html__('Line', 'lsx-customizer'),
72
+	'body_text_heading_color'                => esc_html__('Text (heading)', 'lsx-customizer'),
73
+	'body_text_small_color'                  => esc_html__('Text (small)', 'lsx-customizer'),
74
+	'body_text_color'                        => esc_html__('Text', 'lsx-customizer'),
75
+	'body_link_color'                        => esc_html__('Link', 'lsx-customizer'),
76
+	'body_link_hover_color'                  => esc_html__('Link (hover)', 'lsx-customizer'),
77
+	'body_section_full_background_color'     => esc_html__('Section full (background)', 'lsx-customizer'),
78
+	'body_section_full_text_color'           => esc_html__('Section full (text)', 'lsx-customizer'),
79
+	'body_section_full_link_color'           => esc_html__('Section full (link)', 'lsx-customizer'),
80
+	'body_section_full_link_hover_color'     => esc_html__('Section full (link hover)', 'lsx-customizer'),
81
+	'body_section_full_cta_background_color' => esc_html__('Section full CTA (background)', 'lsx-customizer'),
82
+	'body_section_full_cta_text_color'       => esc_html__('Section full CTA (text)', 'lsx-customizer'),
83
+	'body_section_full_cta_link_color'       => esc_html__('Section full CTA (link)', 'lsx-customizer'),
84
+	'body_section_full_cta_link_hover_color' => esc_html__('Section full CTA (link hover)', 'lsx-customizer'),
85
+
86
+	'footer_cta_background_color' => esc_html__('Background', 'lsx-customizer'),
87
+	'footer_cta_text_color'       => esc_html__('Text', 'lsx-customizer'),
88
+	'footer_cta_link_color'       => esc_html__('Link', 'lsx-customizer'),
89
+	'footer_cta_link_hover_color' => esc_html__('Link (hover)', 'lsx-customizer'),
90
+
91
+	'footer_widgets_background_color' => esc_html__('Background', 'lsx-customizer'),
92
+	'footer_widgets_text_color'       => esc_html__('Text', 'lsx-customizer'),
93
+	'footer_widgets_link_color'       => esc_html__('Link', 'lsx-customizer'),
94
+	'footer_widgets_link_hover_color' => esc_html__('Link (hover)', 'lsx-customizer'),
95
+
96
+	'footer_background_color' => esc_html__('Background', 'lsx-customizer'),
97
+	'footer_text_color'       => esc_html__('Text', 'lsx-customizer'),
98
+	'footer_link_color'       => esc_html__('Link', 'lsx-customizer'),
99
+	'footer_link_hover_color' => esc_html__('Link (hover)', 'lsx-customizer'),
100
+));
101
+
102
+$customizer_colour_choices = apply_filters('lsx_customizer_colour_choices', array(
103 103
 	'default' => array(
104
-		'label'  => __( 'Default', 'lsx-customizer' ),
105
-		'colors' => apply_filters( 'lsx_customizer_colour_choices_default', array(
104
+		'label'  => __('Default', 'lsx-customizer'),
105
+		'colors' => apply_filters('lsx_customizer_colour_choices_default', array(
106 106
 			'button_background_color'       => '#418AD0',
107 107
 			'button_background_hover_color' => '#367DC0',
108 108
 			'button_text_color'             => '#FFFFFF',
@@ -187,11 +187,11 @@  discard block
 block discarded – undo
187 187
 			'footer_text_color'       => '#ffffff',
188 188
 			'footer_link_color'       => '#F7AE00',
189 189
 			'footer_link_hover_color' => '#CE9100',
190
-		) ),
190
+		)),
191 191
 	),
192 192
 	'red' => array(
193
-		'label'  => __( 'Red', 'lsx-customizer' ),
194
-		'colors' => apply_filters( 'lsx_customizer_colour_choices_red', array(
193
+		'label'  => __('Red', 'lsx-customizer'),
194
+		'colors' => apply_filters('lsx_customizer_colour_choices_red', array(
195 195
 			'button_background_color'       => '#b64d3f',
196 196
 			'button_background_hover_color' => '#87291c',
197 197
 			'button_text_color'             => '#ffffff',
@@ -276,11 +276,11 @@  discard block
 block discarded – undo
276 276
 			'footer_text_color'       => '#ffffff',
277 277
 			'footer_link_color'       => '#b64d3f',
278 278
 			'footer_link_hover_color' => '#969696',
279
-		) ),
279
+		)),
280 280
 	),
281 281
 	'orange' => array(
282
-		'label'  => __( 'Orange', 'lsx-customizer' ),
283
-		'colors' => apply_filters( 'lsx_customizer_colour_choices_orange', array(
282
+		'label'  => __('Orange', 'lsx-customizer'),
283
+		'colors' => apply_filters('lsx_customizer_colour_choices_orange', array(
284 284
 			'button_background_color'       => '#fbaf3f',
285 285
 			'button_background_hover_color' => '#e49435',
286 286
 			'button_text_color'             => '#260e03',
@@ -365,11 +365,11 @@  discard block
 block discarded – undo
365 365
 			'footer_text_color'       => '#ffffff',
366 366
 			'footer_link_color'       => '#e4701e',
367 367
 			'footer_link_hover_color' => '#969696',
368
-		) ),
368
+		)),
369 369
 	),
370 370
 	'green' => array(
371
-		'label'  => __( 'Green', 'lsx-customizer' ),
372
-		'colors' => apply_filters( 'lsx_customizer_colour_choices_green', array(
371
+		'label'  => __('Green', 'lsx-customizer'),
372
+		'colors' => apply_filters('lsx_customizer_colour_choices_green', array(
373 373
 			'button_background_color'       => '#596b46',
374 374
 			'button_background_hover_color' => '#3d4a30',
375 375
 			'button_text_color'             => '#ffffff',
@@ -454,11 +454,11 @@  discard block
 block discarded – undo
454 454
 			'footer_text_color'       => '#ffffff',
455 455
 			'footer_link_color'       => '#596b46',
456 456
 			'footer_link_hover_color' => '#969696',
457
-		) ),
457
+		)),
458 458
 	),
459 459
 	'brown' => array(
460
-		'label'  => __( 'Brown', 'lsx-customizer' ),
461
-		'colors' => apply_filters( 'lsx_customizer_colour_choices_brown', array(
460
+		'label'  => __('Brown', 'lsx-customizer'),
461
+		'colors' => apply_filters('lsx_customizer_colour_choices_brown', array(
462 462
 			'button_background_color'       => '#8c6a45',
463 463
 			'button_background_hover_color' => '#5b452e',
464 464
 			'button_text_color'             => '#ffffff',
@@ -543,6 +543,6 @@  discard block
 block discarded – undo
543 543
 			'footer_text_color'       => '#ffffff',
544 544
 			'footer_link_color'       => '#8c6a45',
545 545
 			'footer_link_hover_color' => '#969696',
546
-		) ),
546
+		)),
547 547
 	),
548
-) );
548
+));
Please login to merge, or discard this patch.
examples/lsx-customizer-colour.php 1 patch
Spacing   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -5,72 +5,72 @@  discard block
 block discarded – undo
5 5
  *
6 6
  * Add two new colors (test) in main array of colors
7 7
  */
8
-function test_lsx_customizer_colour_names( $array ) {
9
-	$array['test_text_color']       = esc_html__( 'TEST: Text', 'lsx-customizer' );
10
-	$array['test_text_color_hover'] = esc_html__( 'TEST: Text (hover)', 'lsx-customizer' );
8
+function test_lsx_customizer_colour_names($array) {
9
+	$array['test_text_color']       = esc_html__('TEST: Text', 'lsx-customizer');
10
+	$array['test_text_color_hover'] = esc_html__('TEST: Text (hover)', 'lsx-customizer');
11 11
 	return $array;
12 12
 }
13
-add_filter( 'lsx_customizer_colour_names', 'test_lsx_customizer_colour_names' );
13
+add_filter('lsx_customizer_colour_names', 'test_lsx_customizer_colour_names');
14 14
 
15 15
 /**
16 16
  * Filter: lsx_customizer_colour_choices_default
17 17
  *
18 18
  * Add the new colors (test) in default scheme
19 19
  */
20
-function test_lsx_customizer_colour_choices_default( $array ) {
20
+function test_lsx_customizer_colour_choices_default($array) {
21 21
 	$array['test_text_color']       = '#ddddd1';
22 22
 	$array['test_text_color_hover'] = '#eeeee1';
23 23
 	return $array;
24 24
 }
25
-add_filter( 'lsx_customizer_colour_choices_default', 'test_lsx_customizer_colour_choices_default' );
25
+add_filter('lsx_customizer_colour_choices_default', 'test_lsx_customizer_colour_choices_default');
26 26
 
27 27
 /**
28 28
  * Filter: lsx_customizer_colour_choices_red
29 29
  *
30 30
  * Add the new colors (test) in red scheme
31 31
  */
32
-function test_lsx_customizer_colour_choices_red( $array ) {
32
+function test_lsx_customizer_colour_choices_red($array) {
33 33
 	$array['test_text_color']       = '#ddddd2';
34 34
 	$array['test_text_color_hover'] = '#eeeee2';
35 35
 	return $array;
36 36
 }
37
-add_filter( 'lsx_customizer_colour_choices_red', 'test_lsx_customizer_colour_choices_red' );
37
+add_filter('lsx_customizer_colour_choices_red', 'test_lsx_customizer_colour_choices_red');
38 38
 
39 39
 /**
40 40
  * Filter: lsx_customizer_colour_choices_orange
41 41
  *
42 42
  * Add the new colors (test) in orange scheme
43 43
  */
44
-function test_lsx_customizer_colour_choices_orange( $array ) {
44
+function test_lsx_customizer_colour_choices_orange($array) {
45 45
 	$array['test_text_color']       = '#ddddd3';
46 46
 	$array['test_text_color_hover'] = '#eeeee3';
47 47
 	return $array;
48 48
 }
49
-add_filter( 'lsx_customizer_colour_choices_orange', 'test_lsx_customizer_colour_choices_orange' );
49
+add_filter('lsx_customizer_colour_choices_orange', 'test_lsx_customizer_colour_choices_orange');
50 50
 
51 51
 /**
52 52
  * Filter: lsx_customizer_colour_choices_green
53 53
  *
54 54
  * Add the new colors (test) in green scheme
55 55
  */
56
-function test_lsx_customizer_colour_choices_green( $array ) {
56
+function test_lsx_customizer_colour_choices_green($array) {
57 57
 	$array['test_text_color']       = '#ddddd4';
58 58
 	$array['test_text_color_hover'] = '#eeeee4';
59 59
 	return $array;
60 60
 }
61
-add_filter( 'lsx_customizer_colour_choices_green', 'test_lsx_customizer_colour_choices_green' );
61
+add_filter('lsx_customizer_colour_choices_green', 'test_lsx_customizer_colour_choices_green');
62 62
 
63 63
 /**
64 64
  * Filter: lsx_customizer_colour_choices_brown
65 65
  *
66 66
  * Add the new colors (test) in brown scheme
67 67
  */
68
-function test_lsx_customizer_colour_choices_brown( $array ) {
68
+function test_lsx_customizer_colour_choices_brown($array) {
69 69
 	$array['test_text_color']       = '#ddddd5';
70 70
 	$array['test_text_color_hover'] = '#eeeee5';
71 71
 	return $array;
72 72
 }
73
-add_filter( 'lsx_customizer_colour_choices_brown', 'test_lsx_customizer_colour_choices_brown' );
73
+add_filter('lsx_customizer_colour_choices_brown', 'test_lsx_customizer_colour_choices_brown');
74 74
 
75 75
 /**
76 76
  * Filter: lsx_customizer_colour_choices
@@ -78,9 +78,9 @@  discard block
 block discarded – undo
78 78
  * Add a new scheme
79 79
  * Also add the new colors (test) in new scheme
80 80
  */
81
-function test_lsx_customizer_colour_choices( $array ) {
81
+function test_lsx_customizer_colour_choices($array) {
82 82
 	$array['test'] = array(
83
-		'label'  => esc_html__( 'Test', 'lsx-customizer' ),
83
+		'label'  => esc_html__('Test', 'lsx-customizer'),
84 84
 		'colors' => array(
85 85
 			'button_background_color'       => '#428bca',
86 86
 			'button_background_hover_color' => '#2a6496',
@@ -162,14 +162,14 @@  discard block
 block discarded – undo
162 162
 
163 163
 	return $array;
164 164
 }
165
-add_filter( 'lsx_customizer_colour_choices', 'test_lsx_customizer_colour_choices' );
165
+add_filter('lsx_customizer_colour_choices', 'test_lsx_customizer_colour_choices');
166 166
 
167 167
 /**
168 168
  * Filter: lsx_customizer_colour_selectors_button
169 169
  *
170 170
  * Add new selectors in "button" group of colours
171 171
  */
172
-function test_lsx_customizer_colour_selectors_button( $css, $colors ) {
172
+function test_lsx_customizer_colour_selectors_button($css, $colors) {
173 173
 	$css .= <<<CSS
174 174
 
175 175
 	/* Button TEST */
@@ -185,14 +185,14 @@  discard block
 block discarded – undo
185 185
 
186 186
 	return $css;
187 187
 }
188
-add_filter( 'lsx_customizer_colour_selectors_button', 'test_lsx_customizer_colour_selectors_button', 10, 2 );
188
+add_filter('lsx_customizer_colour_selectors_button', 'test_lsx_customizer_colour_selectors_button', 10, 2);
189 189
 
190 190
 /**
191 191
  * Filter: lsx_customizer_colour_selectors_button_cta
192 192
  *
193 193
  * Add new selectors in "button cta" group of colours
194 194
  */
195
-function test_lsx_customizer_colour_selectors_button_cta( $css, $colors ) {
195
+function test_lsx_customizer_colour_selectors_button_cta($css, $colors) {
196 196
 	$css .= <<<CSS
197 197
 
198 198
 	/* Button CTA TEST */
@@ -208,14 +208,14 @@  discard block
 block discarded – undo
208 208
 
209 209
 	return $css;
210 210
 }
211
-add_filter( 'lsx_customizer_colour_selectors_button_cta', 'test_lsx_customizer_colour_selectors_button_cta', 10, 2 );
211
+add_filter('lsx_customizer_colour_selectors_button_cta', 'test_lsx_customizer_colour_selectors_button_cta', 10, 2);
212 212
 
213 213
 /**
214 214
  * Filter: lsx_customizer_colour_selectors_top_menu
215 215
  *
216 216
  * Add new selectors in "top menu" group of colours
217 217
  */
218
-function test_lsx_customizer_colour_selectors_top_menu( $css, $colors ) {
218
+function test_lsx_customizer_colour_selectors_top_menu($css, $colors) {
219 219
 	$css .= <<<CSS
220 220
 
221 221
 	/* Top Menu TEST */
@@ -235,14 +235,14 @@  discard block
 block discarded – undo
235 235
 
236 236
 	return $css;
237 237
 }
238
-add_filter( 'lsx_customizer_colour_selectors_top_menu', 'test_lsx_customizer_colour_selectors_top_menu', 10, 2 );
238
+add_filter('lsx_customizer_colour_selectors_top_menu', 'test_lsx_customizer_colour_selectors_top_menu', 10, 2);
239 239
 
240 240
 /**
241 241
  * Filter: lsx_customizer_colour_selectors_header
242 242
  *
243 243
  * Add new selectors in "header" group of colours
244 244
  */
245
-function test_lsx_customizer_colour_selectors_header( $css, $colors ) {
245
+function test_lsx_customizer_colour_selectors_header($css, $colors) {
246 246
 	$css .= <<<CSS
247 247
 
248 248
 	/* Header TEST */
@@ -257,14 +257,14 @@  discard block
 block discarded – undo
257 257
 
258 258
 	return $css;
259 259
 }
260
-add_filter( 'lsx_customizer_colour_selectors_header', 'test_lsx_customizer_colour_selectors_header', 10, 2 );
260
+add_filter('lsx_customizer_colour_selectors_header', 'test_lsx_customizer_colour_selectors_header', 10, 2);
261 261
 
262 262
 /**
263 263
  * Filter: lsx_customizer_colour_selectors_main_menu
264 264
  *
265 265
  * Add new selectors in "main meun" group of colours
266 266
  */
267
-function test_lsx_customizer_colour_selectors_main_menu( $css, $colors ) {
267
+function test_lsx_customizer_colour_selectors_main_menu($css, $colors) {
268 268
 	$css .= <<<CSS
269 269
 
270 270
 	/* Main Menu TEST */
@@ -282,14 +282,14 @@  discard block
 block discarded – undo
282 282
 
283 283
 	return $css;
284 284
 }
285
-add_filter( 'lsx_customizer_colour_selectors_main_menu', 'test_lsx_customizer_colour_selectors_main_menu', 10, 2 );
285
+add_filter('lsx_customizer_colour_selectors_main_menu', 'test_lsx_customizer_colour_selectors_main_menu', 10, 2);
286 286
 
287 287
 /**
288 288
  * Filter: lsx_customizer_colour_selectors_banner
289 289
  *
290 290
  * Add new selectors in "banner" group of colours
291 291
  */
292
-function test_lsx_customizer_colour_selectors_banner( $css, $colors ) {
292
+function test_lsx_customizer_colour_selectors_banner($css, $colors) {
293 293
 	$css .= <<<CSS
294 294
 
295 295
 	/* Banner TEST */
@@ -306,14 +306,14 @@  discard block
 block discarded – undo
306 306
 
307 307
 	return $css;
308 308
 }
309
-add_filter( 'lsx_customizer_colour_selectors_banner', 'test_lsx_customizer_colour_selectors_banner', 10, 2 );
309
+add_filter('lsx_customizer_colour_selectors_banner', 'test_lsx_customizer_colour_selectors_banner', 10, 2);
310 310
 
311 311
 /**
312 312
  * Filter: lsx_customizer_colour_selectors_body
313 313
  *
314 314
  * Add new selectors in "body" group of colours
315 315
  */
316
-function test_lsx_customizer_colour_selectors_body( $css, $colors ) {
316
+function test_lsx_customizer_colour_selectors_body($css, $colors) {
317 317
 	$css .= <<<CSS
318 318
 
319 319
 	/* Body TEST */
@@ -340,14 +340,14 @@  discard block
 block discarded – undo
340 340
 
341 341
 	return $css;
342 342
 }
343
-add_filter( 'lsx_customizer_colour_selectors_body', 'test_lsx_customizer_colour_selectors_body', 10, 2 );
343
+add_filter('lsx_customizer_colour_selectors_body', 'test_lsx_customizer_colour_selectors_body', 10, 2);
344 344
 
345 345
 /**
346 346
  * Filter: lsx_customizer_colour_selectors_footer_cta
347 347
  *
348 348
  * Add new selectors in "footer cta" group of colours
349 349
  */
350
-function test_lsx_customizer_colour_selectors_footer_cta( $css, $colors ) {
350
+function test_lsx_customizer_colour_selectors_footer_cta($css, $colors) {
351 351
 	$css .= <<<CSS
352 352
 
353 353
 	/* Footer CTA TEST */
@@ -362,14 +362,14 @@  discard block
 block discarded – undo
362 362
 
363 363
 	return $css;
364 364
 }
365
-add_filter( 'lsx_customizer_colour_selectors_footer_cta', 'test_lsx_customizer_colour_selectors_footer_cta', 10, 2 );
365
+add_filter('lsx_customizer_colour_selectors_footer_cta', 'test_lsx_customizer_colour_selectors_footer_cta', 10, 2);
366 366
 
367 367
 /**
368 368
  * Filter: lsx_customizer_colour_selectors_footer_widgets
369 369
  *
370 370
  * Add new selectors in "footer widgets" group of colours
371 371
  */
372
-function test_lsx_customizer_colour_selectors_footer_widgets( $css, $colors ) {
372
+function test_lsx_customizer_colour_selectors_footer_widgets($css, $colors) {
373 373
 	$css .= <<<CSS
374 374
 
375 375
 	/* Footer Widgets TEST */
@@ -384,14 +384,14 @@  discard block
 block discarded – undo
384 384
 
385 385
 	return $css;
386 386
 }
387
-add_filter( 'lsx_customizer_colour_selectors_footer_widgets', 'test_lsx_customizer_colour_selectors_footer_widgets', 10, 2 );
387
+add_filter('lsx_customizer_colour_selectors_footer_widgets', 'test_lsx_customizer_colour_selectors_footer_widgets', 10, 2);
388 388
 
389 389
 /**
390 390
  * Filter: lsx_customizer_colour_selectors_footer
391 391
  *
392 392
  * Add new selectors in "footer" group of colours
393 393
  */
394
-function test_lsx_customizer_colour_selectors_footer( $css, $colors ) {
394
+function test_lsx_customizer_colour_selectors_footer($css, $colors) {
395 395
 	$css .= <<<CSS
396 396
 
397 397
 	/* Footer TEST */
@@ -406,4 +406,4 @@  discard block
 block discarded – undo
406 406
 
407 407
 	return $css;
408 408
 }
409
-add_filter( 'lsx_customizer_colour_selectors_footer', 'test_lsx_customizer_colour_selectors_footer', 10, 2 );
409
+add_filter('lsx_customizer_colour_selectors_footer', 'test_lsx_customizer_colour_selectors_footer', 10, 2);
Please login to merge, or discard this patch.
vendor/leafo/scssphp/scss.inc.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
     throw new \Exception('scssphp requires PHP 5.4 or above');
4 4
 }
5 5
 
6
-if (! class_exists('Leafo\ScssPhp\Version', false)) {
6
+if ( ! class_exists('Leafo\ScssPhp\Version', false)) {
7 7
     include_once __DIR__ . '/src/Base/Range.php';
8 8
     include_once __DIR__ . '/src/Block.php';
9 9
     include_once __DIR__ . '/src/Colors.php';
Please login to merge, or discard this patch.
vendor/leafo/scssphp/src/Formatter.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 
147 147
         $this->write($inner . implode($glue, $block->lines));
148 148
 
149
-        if (! empty($block->children)) {
149
+        if ( ! empty($block->children)) {
150 150
             $this->write($this->break);
151 151
         }
152 152
     }
@@ -192,21 +192,21 @@  discard block
 block discarded – undo
192 192
 
193 193
         $pre = $this->indentStr();
194 194
 
195
-        if (! empty($block->selectors)) {
195
+        if ( ! empty($block->selectors)) {
196 196
             $this->blockSelectors($block);
197 197
 
198 198
             $this->indentLevel++;
199 199
         }
200 200
 
201
-        if (! empty($block->lines)) {
201
+        if ( ! empty($block->lines)) {
202 202
             $this->blockLines($block);
203 203
         }
204 204
 
205
-        if (! empty($block->children)) {
205
+        if ( ! empty($block->children)) {
206 206
             $this->blockChildren($block);
207 207
         }
208 208
 
209
-        if (! empty($block->selectors)) {
209
+        if ( ! empty($block->selectors)) {
210 210
             $this->indentLevel--;
211 211
 
212 212
             if (empty($block->children)) {
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
 
263 263
             $lines = explode("\n", $str);
264 264
             $lineCount = count($lines);
265
-            $this->currentLine += $lineCount-1;
265
+            $this->currentLine += $lineCount - 1;
266 266
 
267 267
             $lastLine = array_pop($lines);
268 268
 
Please login to merge, or discard this patch.
vendor/leafo/scssphp/src/SourceMap/Base64VLQEncoder.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -48,14 +48,14 @@  discard block
 block discarded – undo
48 48
      * @var array
49 49
      */
50 50
     private $charToIntMap = array(
51
-        'A' => 0,  'B' => 1,  'C' => 2,  'D' => 3,  'E' => 4,  'F' => 5,  'G' => 6,  'H' => 7,
52
-        'I' => 8,  'J' => 9,  'K' => 10, 'L' => 11, 'M' => 12, 'N' => 13, 'O' => 14, 'P' => 15,
51
+        'A' => 0, 'B' => 1, 'C' => 2, 'D' => 3, 'E' => 4, 'F' => 5, 'G' => 6, 'H' => 7,
52
+        'I' => 8, 'J' => 9, 'K' => 10, 'L' => 11, 'M' => 12, 'N' => 13, 'O' => 14, 'P' => 15,
53 53
         'Q' => 16, 'R' => 17, 'S' => 18, 'T' => 19, 'U' => 20, 'V' => 21, 'W' => 22, 'X' => 23,
54 54
         'Y' => 24, 'Z' => 25, 'a' => 26, 'b' => 27, 'c' => 28, 'd' => 29, 'e' => 30, 'f' => 31,
55 55
         'g' => 32, 'h' => 33, 'i' => 34, 'j' => 35, 'k' => 36, 'l' => 37, 'm' => 38, 'n' => 39,
56 56
         'o' => 40, 'p' => 41, 'q' => 42, 'r' => 43, 's' => 44, 't' => 45, 'u' => 46, 'v' => 47,
57
-        'w' => 48, 'x' => 49, 'y' => 50, 'z' => 51,   0 => 52,   1 => 53,   2 => 54,   3 => 55,
58
-          4 => 56,   5 => 57,   6 => 58,   7 => 59,   8 => 60,   9 => 61, '+' => 62, '/' => 63,
57
+        'w' => 48, 'x' => 49, 'y' => 50, 'z' => 51, 0 => 52, 1 => 53, 2 => 54, 3 => 55,
58
+          4 => 56, 5 => 57, 6 => 58, 7 => 59, 8 => 60, 9 => 61, '+' => 62, '/' => 63,
59 59
     );
60 60
 
61 61
     /**
@@ -64,8 +64,8 @@  discard block
 block discarded – undo
64 64
      * @var array
65 65
      */
66 66
     private $intToCharMap = array(
67
-         0 => 'A',  1 => 'B',  2 => 'C',  3 => 'D',  4 => 'E',  5 => 'F',  6 => 'G',  7 => 'H',
68
-         8 => 'I',  9 => 'J', 10 => 'K', 11 => 'L', 12 => 'M', 13 => 'N', 14 => 'O', 15 => 'P',
67
+         0 => 'A', 1 => 'B', 2 => 'C', 3 => 'D', 4 => 'E', 5 => 'F', 6 => 'G', 7 => 'H',
68
+         8 => 'I', 9 => 'J', 10 => 'K', 11 => 'L', 12 => 'M', 13 => 'N', 14 => 'O', 15 => 'P',
69 69
         16 => 'Q', 17 => 'R', 18 => 'S', 19 => 'T', 20 => 'U', 21 => 'V', 22 => 'W', 23 => 'X',
70 70
         24 => 'Y', 25 => 'Z', 26 => 'a', 27 => 'b', 28 => 'c', 29 => 'd', 30 => 'e', 31 => 'f',
71 71
         32 => 'g', 33 => 'h', 34 => 'i', 35 => 'j', 36 => 'k', 37 => 'l', 38 => 'm', 39 => 'n',
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
      */
209 209
     public function base64Decode($char)
210 210
     {
211
-        if (! array_key_exists($char, $this->charToIntMap)) {
211
+        if ( ! array_key_exists($char, $this->charToIntMap)) {
212 212
             throw new \Exception(sprintf('Invalid base 64 digit "%s" given.', $char));
213 213
         }
214 214
 
Please login to merge, or discard this patch.
vendor/leafo/scssphp/src/SourceMap/SourceMapGenerator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
         $dir  = dirname($file);
135 135
 
136 136
         // directory does not exist
137
-        if (! is_dir($dir)) {
137
+        if ( ! is_dir($dir)) {
138 138
             // FIXME: create the dir automatically?
139 139
             throw new CompilerException(sprintf('The directory "%s" does not exist. Cannot save the source map.', $dir));
140 140
         }
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
      */
233 233
     public function generateMappings()
234 234
     {
235
-        if (! count($this->mappings)) {
235
+        if ( ! count($this->mappings)) {
236 236
             return '';
237 237
         }
238 238
 
@@ -327,7 +327,7 @@  discard block
 block discarded – undo
327 327
     {
328 328
         $slash = ($addEndSlash) ? '/' : '';
329 329
 
330
-        if (! empty($path)) {
330
+        if ( ! empty($path)) {
331 331
             $path = str_replace('\\', '/', $path);
332 332
             $path = rtrim($path, '/') . $slash;
333 333
         }
Please login to merge, or discard this patch.
vendor/leafo/scssphp/src/Parser.php 1 patch
Spacing   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
             $this->throwParseError();
170 170
         }
171 171
 
172
-        if (! empty($this->env->parent)) {
172
+        if ( ! empty($this->env->parent)) {
173 173
             $this->throwParseError('unclosed block');
174 174
         }
175 175
 
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
             array_unshift($this->env->children, $this->charset);
178 178
         }
179 179
 
180
-        $this->env->isRoot    = true;
180
+        $this->env->isRoot = true;
181 181
 
182 182
         $this->restoreEncoding();
183 183
 
@@ -330,7 +330,7 @@  discard block
 block discarded – undo
330 330
             ) {
331 331
                 $child = [Type::T_INCLUDE, $mixinName, isset($argValues) ? $argValues : null, null];
332 332
 
333
-                if (! empty($hasBlock)) {
333
+                if ( ! empty($hasBlock)) {
334 334
                     $include = $this->pushSpecialBlock(Type::T_INCLUDE, $s);
335 335
                     $include->child = $child;
336 336
                 } else {
@@ -558,7 +558,7 @@  discard block
 block discarded – undo
558 558
                 $this->valueList($charset) &&
559 559
                 $this->end()
560 560
             ) {
561
-                if (! isset($this->charset)) {
561
+                if ( ! isset($this->charset)) {
562 562
                     $statement = [Type::T_CHARSET, $charset];
563 563
 
564 564
                     list($line, $column) = $this->getSourcePosition($s);
@@ -716,7 +716,7 @@  discard block
 block discarded – undo
716 716
         $b->comments     = [];
717 717
         $b->parent       = $this->env;
718 718
 
719
-        if (! $this->env) {
719
+        if ( ! $this->env) {
720 720
             $b->children = [];
721 721
         } elseif (empty($this->env->children)) {
722 722
             $this->env->children = $this->env->comments;
@@ -786,7 +786,7 @@  discard block
 block discarded – undo
786 786
      */
787 787
     protected function peek($regex, &$out, $from = null)
788 788
     {
789
-        if (! isset($from)) {
789
+        if ( ! isset($from)) {
790 790
             $from = $this->count;
791 791
         }
792 792
 
@@ -840,7 +840,7 @@  discard block
 block discarded – undo
840 840
             }
841 841
         }
842 842
 
843
-        if (! isset($token)) {
843
+        if ( ! isset($token)) {
844 844
             return false;
845 845
         }
846 846
 
@@ -866,7 +866,7 @@  discard block
 block discarded – undo
866 866
      */
867 867
     protected function match($regex, &$out, $eatWhitespace = null)
868 868
     {
869
-        if (! isset($eatWhitespace)) {
869
+        if ( ! isset($eatWhitespace)) {
870 870
             $eatWhitespace = $this->eatWhiteDefault;
871 871
         }
872 872
 
@@ -895,7 +895,7 @@  discard block
 block discarded – undo
895 895
      */
896 896
     protected function literal($what, $eatWhitespace = null)
897 897
     {
898
-        if (! isset($eatWhitespace)) {
898
+        if ( ! isset($eatWhitespace)) {
899 899
             $eatWhitespace = $this->eatWhiteDefault;
900 900
         }
901 901
 
@@ -1115,7 +1115,7 @@  discard block
 block discarded – undo
1115 1115
 
1116 1116
         $keyword = null;
1117 1117
 
1118
-        if (! $this->variable($keyword) || ! $this->literal(':')) {
1118
+        if ( ! $this->variable($keyword) || ! $this->literal(':')) {
1119 1119
             $this->seek($s);
1120 1120
             $keyword = null;
1121 1121
         }
@@ -1179,7 +1179,7 @@  discard block
 block discarded – undo
1179 1179
             $items[] = $value;
1180 1180
 
1181 1181
             if ($delim) {
1182
-                if (! $this->literal($delim)) {
1182
+                if ( ! $this->literal($delim)) {
1183 1183
                     break;
1184 1184
                 }
1185 1185
             }
@@ -1271,7 +1271,7 @@  discard block
 block discarded – undo
1271 1271
                 break;
1272 1272
             }
1273 1273
 
1274
-            if (! $this->value($rhs)) {
1274
+            if ( ! $this->value($rhs)) {
1275 1275
                 break;
1276 1276
             }
1277 1277
 
@@ -1468,7 +1468,7 @@  discard block
 block discarded – undo
1468 1468
             ) {
1469 1469
                 $args = [];
1470 1470
 
1471
-                if (! empty($str)) {
1471
+                if ( ! empty($str)) {
1472 1472
                     $args[] = [null, [Type::T_STRING, '', [$str]]];
1473 1473
                 }
1474 1474
 
@@ -1507,14 +1507,14 @@  discard block
 block discarded – undo
1507 1507
 
1508 1508
             $args[] = $arg;
1509 1509
 
1510
-            if (! $this->literal(',')) {
1510
+            if ( ! $this->literal(',')) {
1511 1511
                 break;
1512 1512
             }
1513 1513
 
1514 1514
             $args[] = [Type::T_STRING, '', [', ']];
1515 1515
         }
1516 1516
 
1517
-        if (! $this->literal(')') || ! count($args)) {
1517
+        if ( ! $this->literal(')') || ! count($args)) {
1518 1518
             $this->seek($s);
1519 1519
 
1520 1520
             return false;
@@ -1555,7 +1555,7 @@  discard block
 block discarded – undo
1555 1555
             if ($this->literal('...')) {
1556 1556
                 $sss = $this->seek();
1557 1557
 
1558
-                if (! $this->literal(')')) {
1558
+                if ( ! $this->literal(')')) {
1559 1559
                     $this->throwParseError('... has to be after the final argument');
1560 1560
                 }
1561 1561
 
@@ -1567,12 +1567,12 @@  discard block
 block discarded – undo
1567 1567
 
1568 1568
             $args[] = $arg;
1569 1569
 
1570
-            if (! $this->literal(',')) {
1570
+            if ( ! $this->literal(',')) {
1571 1571
                 break;
1572 1572
             }
1573 1573
         }
1574 1574
 
1575
-        if (! $this->literal(')')) {
1575
+        if ( ! $this->literal(')')) {
1576 1576
             $this->seek($s);
1577 1577
 
1578 1578
             return false;
@@ -1594,7 +1594,7 @@  discard block
 block discarded – undo
1594 1594
     {
1595 1595
         $s = $this->seek();
1596 1596
 
1597
-        if (! $this->literal('(')) {
1597
+        if ( ! $this->literal('(')) {
1598 1598
             return false;
1599 1599
         }
1600 1600
 
@@ -1607,12 +1607,12 @@  discard block
 block discarded – undo
1607 1607
             $keys[] = $key;
1608 1608
             $values[] = $value;
1609 1609
 
1610
-            if (! $this->literal(',')) {
1610
+            if ( ! $this->literal(',')) {
1611 1611
                 break;
1612 1612
             }
1613 1613
         }
1614 1614
 
1615
-        if (! count($keys) || ! $this->literal(')')) {
1615
+        if ( ! count($keys) || ! $this->literal(')')) {
1616 1616
             $this->seek($s);
1617 1617
 
1618 1618
             return false;
@@ -1830,7 +1830,7 @@  discard block
 block discarded – undo
1830 1830
 
1831 1831
             $tok = $m[2];
1832 1832
 
1833
-            $this->count-= strlen($tok);
1833
+            $this->count -= strlen($tok);
1834 1834
 
1835 1835
             if ($tok === $end && ! $nestingLevel--) {
1836 1836
                 break;
@@ -1847,7 +1847,7 @@  discard block
 block discarded – undo
1847 1847
             }
1848 1848
 
1849 1849
             $content[] = $tok;
1850
-            $this->count+= strlen($tok);
1850
+            $this->count += strlen($tok);
1851 1851
         }
1852 1852
 
1853 1853
         $this->eatWhiteDefault = $oldWhite;
@@ -1884,7 +1884,7 @@  discard block
 block discarded – undo
1884 1884
         if ($this->literal('#{') && $this->valueList($value) && $this->literal('}', false)) {
1885 1885
             if ($lookWhite) {
1886 1886
                 $left = preg_match('/\s/', $this->buffer[$s - 1]) ? ' ' : '';
1887
-                $right = preg_match('/\s/', $this->buffer[$this->count]) ? ' ': '';
1887
+                $right = preg_match('/\s/', $this->buffer[$this->count]) ? ' ' : '';
1888 1888
             } else {
1889 1889
                 $left = $right = false;
1890 1890
             }
@@ -1953,7 +1953,7 @@  discard block
 block discarded – undo
1953 1953
             null,
1954 1954
             $this->count
1955 1955
         )) {
1956
-            if (! empty($m[0])) {
1956
+            if ( ! empty($m[0])) {
1957 1957
                 $parts[] = $m[0];
1958 1958
                 $this->count += strlen($m[0]);
1959 1959
             }
@@ -1981,7 +1981,7 @@  discard block
 block discarded – undo
1981 1981
         while ($this->selector($sel)) {
1982 1982
             $selectors[] = $sel;
1983 1983
 
1984
-            if (! $this->literal(',')) {
1984
+            if ( ! $this->literal(',')) {
1985 1985
                 break;
1986 1986
             }
1987 1987
 
@@ -2135,7 +2135,7 @@  discard block
 block discarded – undo
2135 2135
                 ) {
2136 2136
                     $parts[] = '(';
2137 2137
 
2138
-                    if (! empty($str)) {
2138
+                    if ( ! empty($str)) {
2139 2139
                         $parts[] = $str;
2140 2140
                     }
2141 2141
 
@@ -2156,7 +2156,7 @@  discard block
 block discarded – undo
2156 2156
             ) {
2157 2157
                 $parts[] = '[';
2158 2158
 
2159
-                if (! empty($str)) {
2159
+                if ( ! empty($str)) {
2160 2160
                     $parts[] = $str;
2161 2161
                 }
2162 2162
 
@@ -2374,7 +2374,7 @@  discard block
 block discarded – undo
2374 2374
             $validChars = $allowNewline ? '.' : "[^\n]";
2375 2375
         }
2376 2376
 
2377
-        if (! $this->match('(' . $validChars . '*?)' . $this->pregQuote($what), $m, ! $until)) {
2377
+        if ( ! $this->match('(' . $validChars . '*?)' . $this->pregQuote($what), $m, ! $until)) {
2378 2378
             return false;
2379 2379
         }
2380 2380
 
Please login to merge, or discard this patch.
vendor/leafo/scssphp/src/Compiler.php 1 patch
Spacing   +76 added lines, -76 removed lines patch added patch discarded remove patch
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
 
219 219
         $out = $this->formatter->format($this->scope, $sourceMapGenerator);
220 220
 
221
-        if (! empty($out) && $this->sourceMap && $this->sourceMap !== self::SOURCE_MAP_NONE) {
221
+        if ( ! empty($out) && $this->sourceMap && $this->sourceMap !== self::SOURCE_MAP_NONE) {
222 222
             $sourceMap    = $sourceMapGenerator->generateJson();
223 223
             $sourceMapUrl = null;
224 224
 
@@ -376,22 +376,22 @@  discard block
 block discarded – undo
376 376
             foreach ($block->selectors as $s) {
377 377
                 $selectors[] = $s;
378 378
 
379
-                if (! is_array($s)) {
379
+                if ( ! is_array($s)) {
380 380
                     continue;
381 381
                 }
382 382
 
383 383
                 // check extends
384
-                if (! empty($this->extendsMap)) {
384
+                if ( ! empty($this->extendsMap)) {
385 385
                     $this->matchExtends($s, $selectors);
386 386
 
387 387
                     // remove duplicates
388
-                    array_walk($selectors, function (&$value) {
388
+                    array_walk($selectors, function(&$value) {
389 389
                         $value = serialize($value);
390 390
                     });
391 391
 
392 392
                     $selectors = array_unique($selectors);
393 393
 
394
-                    array_walk($selectors, function (&$value) {
394
+                    array_walk($selectors, function(&$value) {
395 395
                         $value = unserialize($value);
396 396
                     });
397 397
                 }
@@ -459,7 +459,7 @@  discard block
 block discarded – undo
459 459
                         $slice = $tempReplacement[$l];
460 460
                         array_unshift($replacement, $slice);
461 461
 
462
-                        if (! $this->isImmediateRelationshipCombinator(end($slice))) {
462
+                        if ( ! $this->isImmediateRelationshipCombinator(end($slice))) {
463 463
                             break;
464 464
                         }
465 465
                     }
@@ -486,7 +486,7 @@  discard block
 block discarded – undo
486 486
                     $this->matchExtends($result, $out, count($before) + count($mergedBefore), false);
487 487
 
488 488
                     // selector sequence merging
489
-                    if (! empty($before) && count($new) > 1) {
489
+                    if ( ! empty($before) && count($new) > 1) {
490 490
                         $sharedParts = $k > 0 ? array_slice($before, 0, $k) : [];
491 491
                         $postSharedParts = $k > 0 ? array_slice($before, $k) : $before;
492 492
 
@@ -524,11 +524,11 @@  discard block
 block discarded – undo
524 524
 
525 525
         foreach ($rawSingle as $part) {
526 526
             // matches Number
527
-            if (! is_string($part)) {
527
+            if ( ! is_string($part)) {
528 528
                 return false;
529 529
             }
530 530
 
531
-            if (! preg_match('/^[\[.:#%]/', $part) && count($single)) {
531
+            if ( ! preg_match('/^[\[.:#%]/', $part) && count($single)) {
532 532
                 $single[count($single) - 1] .= $part;
533 533
             } else {
534 534
                 $single[] = $part;
@@ -677,7 +677,7 @@  discard block
 block discarded – undo
677 677
 
678 678
         $mediaQuery = $this->compileMediaQuery($this->multiplyMedia($this->env));
679 679
 
680
-        if (! empty($mediaQuery)) {
680
+        if ( ! empty($mediaQuery)) {
681 681
             $this->scope = $this->makeOutputBlock(Type::T_MEDIA, [$mediaQuery]);
682 682
 
683 683
             $parentScope = $this->mediaParent($this->scope);
@@ -730,8 +730,8 @@  discard block
 block discarded – undo
730 730
      */
731 731
     protected function mediaParent(OutputBlock $scope)
732 732
     {
733
-        while (! empty($scope->parent)) {
734
-            if (! empty($scope->type) && $scope->type !== Type::T_MEDIA) {
733
+        while ( ! empty($scope->parent)) {
734
+            if ( ! empty($scope->type) && $scope->type !== Type::T_MEDIA) {
735 735
                 break;
736 736
             }
737 737
 
@@ -750,7 +750,7 @@  discard block
 block discarded – undo
750 750
     {
751 751
         $s = '@' . $block->name;
752 752
 
753
-        if (! empty($block->value)) {
753
+        if ( ! empty($block->value)) {
754 754
             $s .= ' ' . $this->compileValue($block->value);
755 755
         }
756 756
 
@@ -815,7 +815,7 @@  discard block
 block discarded – undo
815 815
         $newBlock = null;
816 816
 
817 817
         foreach ($envs as $e) {
818
-            if (! isset($e->block)) {
818
+            if ( ! isset($e->block)) {
819 819
                 continue;
820 820
             }
821 821
 
@@ -988,7 +988,7 @@  discard block
 block discarded – undo
988 988
 
989 989
         $envs = $this->compactEnv($env);
990 990
 
991
-        $this->env = $this->extractEnv(array_filter($envs, function (Environment $e) {
991
+        $this->env = $this->extractEnv(array_filter($envs, function(Environment $e) {
992 992
             return ! isset($e->block->selectors);
993 993
         }));
994 994
 
@@ -1180,7 +1180,7 @@  discard block
 block discarded – undo
1180 1180
 
1181 1181
             array_walk_recursive(
1182 1182
                 $selector,
1183
-                function ($value, $key) use (&$output) {
1183
+                function($value, $key) use (&$output) {
1184 1184
                     $output .= $value;
1185 1185
                 }
1186 1186
             );
@@ -1230,7 +1230,7 @@  discard block
 block discarded – undo
1230 1230
      */
1231 1231
     protected function compileSelector($selector)
1232 1232
     {
1233
-        if (! is_array($selector)) {
1233
+        if ( ! is_array($selector)) {
1234 1234
             return $selector; // media and the like
1235 1235
         }
1236 1236
 
@@ -1253,7 +1253,7 @@  discard block
 block discarded – undo
1253 1253
     protected function compileSelectorPart($piece)
1254 1254
     {
1255 1255
         foreach ($piece as &$p) {
1256
-            if (! is_array($p)) {
1256
+            if ( ! is_array($p)) {
1257 1257
                 continue;
1258 1258
             }
1259 1259
 
@@ -1280,7 +1280,7 @@  discard block
 block discarded – undo
1280 1280
      */
1281 1281
     protected function hasSelectorPlaceholder($selector)
1282 1282
     {
1283
-        if (! is_array($selector)) {
1283
+        if ( ! is_array($selector)) {
1284 1284
             return false;
1285 1285
         }
1286 1286
 
@@ -1392,7 +1392,7 @@  discard block
 block discarded – undo
1392 1392
                 array_unshift($parts, implode(' ', array_filter($type)));
1393 1393
             }
1394 1394
 
1395
-            if (! empty($parts)) {
1395
+            if ( ! empty($parts)) {
1396 1396
                 if ($first) {
1397 1397
                     $first = false;
1398 1398
                     $out .= ' ';
@@ -1416,7 +1416,7 @@  discard block
 block discarded – undo
1416 1416
         $part1 = end($selectors1);
1417 1417
         $part2 = end($selectors2);
1418 1418
 
1419
-        if (! $this->isImmediateRelationshipCombinator($part1[0]) || $part1 !== $part2) {
1419
+        if ( ! $this->isImmediateRelationshipCombinator($part1[0]) || $part1 !== $part2) {
1420 1420
             return array_merge($selectors1, $selectors2);
1421 1421
         }
1422 1422
 
@@ -1433,7 +1433,7 @@  discard block
 block discarded – undo
1433 1433
 
1434 1434
             array_unshift($merged, $part1);
1435 1435
             array_unshift($merged, [array_pop($selectors1)[0] . array_pop($selectors2)[0]]);
1436
-        } while (! empty($selectors1) && ! empty($selectors2));
1436
+        } while ( ! empty($selectors1) && ! empty($selectors2));
1437 1437
 
1438 1438
         return $merged;
1439 1439
     }
@@ -1460,8 +1460,8 @@  discard block
 block discarded – undo
1460 1460
         $t1 = '';
1461 1461
 
1462 1462
         if (count($type1) > 1) {
1463
-            $m1= strtolower($type1[0]);
1464
-            $t1= strtolower($type1[1]);
1463
+            $m1 = strtolower($type1[0]);
1464
+            $t1 = strtolower($type1[1]);
1465 1465
         } else {
1466 1466
             $t1 = strtolower($type1[0]);
1467 1467
         }
@@ -1501,7 +1501,7 @@  discard block
 block discarded – undo
1501 1501
         }
1502 1502
 
1503 1503
         // t1 == t2, neither m1 nor m2 are "not"
1504
-        return [empty($m1)? $m2 : $m1, $t1];
1504
+        return [empty($m1) ? $m2 : $m1, $t1];
1505 1505
     }
1506 1506
 
1507 1507
     /**
@@ -1519,7 +1519,7 @@  discard block
 block discarded – undo
1519 1519
             $path = $this->compileStringContent($rawPath);
1520 1520
 
1521 1521
             if ($path = $this->findImport($path)) {
1522
-                if (! $once || ! in_array($path, $this->importedFiles)) {
1522
+                if ( ! $once || ! in_array($path, $this->importedFiles)) {
1523 1523
                     $this->importFile($path, $out);
1524 1524
                     $this->importedFiles[] = $path;
1525 1525
                 }
@@ -1572,7 +1572,7 @@  discard block
 block discarded – undo
1572 1572
 
1573 1573
                 $rawPath = $this->reduce($rawPath);
1574 1574
 
1575
-                if (! $this->compileImport($rawPath, $out, true)) {
1575
+                if ( ! $this->compileImport($rawPath, $out, true)) {
1576 1576
                     $out->lines[] = '@import ' . $this->compileValue($rawPath) . ';';
1577 1577
                 }
1578 1578
                 break;
@@ -1582,7 +1582,7 @@  discard block
 block discarded – undo
1582 1582
 
1583 1583
                 $rawPath = $this->reduce($rawPath);
1584 1584
 
1585
-                if (! $this->compileImport($rawPath, $out)) {
1585
+                if ( ! $this->compileImport($rawPath, $out)) {
1586 1586
                     $out->lines[] = '@import ' . $this->compileValue($rawPath) . ';';
1587 1587
                 }
1588 1588
                 break;
@@ -1604,7 +1604,7 @@  discard block
 block discarded – undo
1604 1604
                 break;
1605 1605
 
1606 1606
             case Type::T_CHARSET:
1607
-                if (! $this->charsetSeen) {
1607
+                if ( ! $this->charsetSeen) {
1608 1608
                     $this->charsetSeen = true;
1609 1609
 
1610 1610
                     $out->lines[] = '@charset ' . $this->compileValue($child[1]) . ';';
@@ -1628,7 +1628,7 @@  discard block
 block discarded – undo
1628 1628
                         (($result = $this->get($name[1], false)) === null
1629 1629
                         || $result === static::$null);
1630 1630
 
1631
-                    if (! $isDefault || $shouldSet) {
1631
+                    if ( ! $isDefault || $shouldSet) {
1632 1632
                         $this->set($name[1], $this->reduce($value));
1633 1633
                     }
1634 1634
                     break;
@@ -1774,7 +1774,7 @@  discard block
 block discarded – undo
1774 1774
                 $start = $this->reduce($for->start, true);
1775 1775
                 $end   = $this->reduce($for->end, true);
1776 1776
 
1777
-                if (! ($start[2] == $end[2] || $end->unitless())) {
1777
+                if ( ! ($start[2] == $end[2] || $end->unitless())) {
1778 1778
                     $this->throwError('Incompatible units: "%s" and "%s".', $start->unitStr(), $end->unitStr());
1779 1779
 
1780 1780
                     break;
@@ -1787,7 +1787,7 @@  discard block
 block discarded – undo
1787 1787
                 $d = $start < $end ? 1 : -1;
1788 1788
 
1789 1789
                 for (;;) {
1790
-                    if ((! $for->until && $start - $d == $end) ||
1790
+                    if (( ! $for->until && $start - $d == $end) ||
1791 1791
                         ($for->until && $start == $end)
1792 1792
                     ) {
1793 1793
                         break;
@@ -1848,7 +1848,7 @@  discard block
 block discarded – undo
1848 1848
 
1849 1849
                 $mixin = $this->get(static::$namespaces['mixin'] . $name, false);
1850 1850
 
1851
-                if (! $mixin) {
1851
+                if ( ! $mixin) {
1852 1852
                     $this->throwError("Undefined mixin $name");
1853 1853
                     break;
1854 1854
                 }
@@ -1885,7 +1885,7 @@  discard block
 block discarded – undo
1885 1885
                 $content = $this->get(static::$namespaces['special'] . 'content', false, $this->getStoreEnv())
1886 1886
                          ?: $this->get(static::$namespaces['special'] . 'content', false, $this->env);
1887 1887
 
1888
-                if (! $content) {
1888
+                if ( ! $content) {
1889 1889
                     $content = new \stdClass();
1890 1890
                     $content->scope = new \stdClass();
1891 1891
                     $content->children = $this->storeEnv->parent->block->children;
@@ -2068,7 +2068,7 @@  discard block
 block discarded – undo
2068 2068
                 ) {
2069 2069
                     $coerceUnit = false;
2070 2070
 
2071
-                    if (! isset($genOp) &&
2071
+                    if ( ! isset($genOp) &&
2072 2072
                         $left[0] === Type::T_NUMBER && $right[0] === Type::T_NUMBER
2073 2073
                     ) {
2074 2074
                         $coerceUnit = true;
@@ -2098,7 +2098,7 @@  discard block
 block discarded – undo
2098 2098
                                 $targetUnit = $left->unitless() ? $right[2] : $left[2];
2099 2099
                         }
2100 2100
 
2101
-                        if (! $left->unitless() && ! $right->unitless()) {
2101
+                        if ( ! $left->unitless() && ! $right->unitless()) {
2102 2102
                             $left = $left->normalize();
2103 2103
                             $right = $right->normalize();
2104 2104
                         }
@@ -2395,7 +2395,7 @@  discard block
 block discarded – undo
2395 2395
      */
2396 2396
     protected function opAnd($left, $right, $shouldEval)
2397 2397
     {
2398
-        if (! $shouldEval) {
2398
+        if ( ! $shouldEval) {
2399 2399
             return;
2400 2400
         }
2401 2401
 
@@ -2417,7 +2417,7 @@  discard block
 block discarded – undo
2417 2417
      */
2418 2418
     protected function opOr($left, $right, $shouldEval)
2419 2419
     {
2420
-        if (! $shouldEval) {
2420
+        if ( ! $shouldEval) {
2421 2421
             return;
2422 2422
         }
2423 2423
 
@@ -2751,7 +2751,7 @@  discard block
 block discarded – undo
2751 2751
                     $filtered[$this->compileValue($keys[$i])] = $this->compileValue($values[$i]);
2752 2752
                 }
2753 2753
 
2754
-                array_walk($filtered, function (&$value, $key) {
2754
+                array_walk($filtered, function(&$value, $key) {
2755 2755
                     $value = $key . ': ' . $value;
2756 2756
                 });
2757 2757
 
@@ -2969,7 +2969,7 @@  discard block
 block discarded – undo
2969 2969
      */
2970 2970
     protected function multiplyMedia(Environment $env = null, $childQueries = null)
2971 2971
     {
2972
-        if (! isset($env) ||
2972
+        if ( ! isset($env) ||
2973 2973
             ! empty($env->block->type) && $env->block->type !== Type::T_MEDIA
2974 2974
         ) {
2975 2975
             return $childQueries;
@@ -2992,7 +2992,7 @@  discard block
 block discarded – undo
2992 2992
 
2993 2993
             foreach ($parentQueries as $parentQuery) {
2994 2994
                 foreach ($originalQueries as $childQuery) {
2995
-                    $childQueries []= array_merge($parentQuery, $childQuery);
2995
+                    $childQueries [] = array_merge($parentQuery, $childQuery);
2996 2996
                 }
2997 2997
             }
2998 2998
         }
@@ -3083,7 +3083,7 @@  discard block
 block discarded – undo
3083 3083
     {
3084 3084
         $name = $this->normalizeName($name);
3085 3085
 
3086
-        if (! isset($env)) {
3086
+        if ( ! isset($env)) {
3087 3087
             $env = $this->getStoreEnv();
3088 3088
         }
3089 3089
 
@@ -3112,12 +3112,12 @@  discard block
 block discarded – undo
3112 3112
                 break;
3113 3113
             }
3114 3114
 
3115
-            if (! $hasNamespace && isset($env->marker)) {
3115
+            if ( ! $hasNamespace && isset($env->marker)) {
3116 3116
                 $env = $storeEnv;
3117 3117
                 break;
3118 3118
             }
3119 3119
 
3120
-            if (! isset($env->parent)) {
3120
+            if ( ! isset($env->parent)) {
3121 3121
                 $env = $storeEnv;
3122 3122
                 break;
3123 3123
             }
@@ -3156,7 +3156,7 @@  discard block
 block discarded – undo
3156 3156
         $normalizedName = $this->normalizeName($name);
3157 3157
         $specialContentKey = static::$namespaces['special'] . 'content';
3158 3158
 
3159
-        if (! isset($env)) {
3159
+        if ( ! isset($env)) {
3160 3160
             $env = $this->getStoreEnv();
3161 3161
         }
3162 3162
 
@@ -3168,8 +3168,8 @@  discard block
 block discarded – undo
3168 3168
                 return $env->store[$normalizedName];
3169 3169
             }
3170 3170
 
3171
-            if (! $hasNamespace && isset($env->marker)) {
3172
-                if (! $nextIsRoot && ! empty($env->store[$specialContentKey])) {
3171
+            if ( ! $hasNamespace && isset($env->marker)) {
3172
+                if ( ! $nextIsRoot && ! empty($env->store[$specialContentKey])) {
3173 3173
                     $env = $env->store[$specialContentKey]->scope;
3174 3174
                     $nextIsRoot = true;
3175 3175
                     continue;
@@ -3179,7 +3179,7 @@  discard block
 block discarded – undo
3179 3179
                 continue;
3180 3180
             }
3181 3181
 
3182
-            if (! isset($env->parent)) {
3182
+            if ( ! isset($env->parent)) {
3183 3183
                 break;
3184 3184
             }
3185 3185
 
@@ -3224,7 +3224,7 @@  discard block
 block discarded – undo
3224 3224
                 $name = substr($name, 1);
3225 3225
             }
3226 3226
 
3227
-            if (! $parser->parseValue($strValue, $value)) {
3227
+            if ( ! $parser->parseValue($strValue, $value)) {
3228 3228
                 $value = $this->coerceValue($strValue);
3229 3229
             }
3230 3230
 
@@ -3303,7 +3303,7 @@  discard block
 block discarded – undo
3303 3303
      */
3304 3304
     public function addImportPath($path)
3305 3305
     {
3306
-        if (! in_array($path, $this->importPaths)) {
3306
+        if ( ! in_array($path, $this->importPaths)) {
3307 3307
             $this->importPaths[] = $path;
3308 3308
         }
3309 3309
     }
@@ -3461,7 +3461,7 @@  discard block
 block discarded – undo
3461 3461
         $urls = [];
3462 3462
 
3463 3463
         // for "normal" scss imports (ignore vanilla css and external requests)
3464
-        if (! preg_match('/\.css$|^https?:\/\//', $url)) {
3464
+        if ( ! preg_match('/\.css$|^https?:\/\//', $url)) {
3465 3465
             // try both normal and the _partial filename
3466 3466
             $urls = [$url, preg_replace('/[^\/]+$/', '_\0', $url)];
3467 3467
         }
@@ -3473,7 +3473,7 @@  discard block
 block discarded – undo
3473 3473
                 // check urls for normal import paths
3474 3474
                 foreach ($urls as $full) {
3475 3475
                     $full = $dir
3476
-                        . (! empty($dir) && substr($dir, -1) !== '/' ? '/' : '')
3476
+                        . ( ! empty($dir) && substr($dir, -1) !== '/' ? '/' : '')
3477 3477
                         . $full;
3478 3478
 
3479 3479
                     if ($this->fileExists($file = $full . '.scss') ||
@@ -3590,7 +3590,7 @@  discard block
 block discarded – undo
3590 3590
     {
3591 3591
         $func = $this->get(static::$namespaces['function'] . $name, false);
3592 3592
 
3593
-        if (! $func) {
3593
+        if ( ! $func) {
3594 3594
             return false;
3595 3595
         }
3596 3596
 
@@ -3656,7 +3656,7 @@  discard block
 block discarded – undo
3656 3656
 
3657 3657
         $returnValue = call_user_func($f, $sorted, $kwargs);
3658 3658
 
3659
-        if (! isset($returnValue)) {
3659
+        if ( ! isset($returnValue)) {
3660 3660
             return false;
3661 3661
         }
3662 3662
 
@@ -3676,7 +3676,7 @@  discard block
 block discarded – undo
3676 3676
     {
3677 3677
         $libName = 'lib' . preg_replace_callback(
3678 3678
             '/_(.)/',
3679
-            function ($m) {
3679
+            function($m) {
3680 3680
                 return ucfirst($m[1]);
3681 3681
             },
3682 3682
             ucfirst($name)
@@ -3711,7 +3711,7 @@  discard block
 block discarded – undo
3711 3711
             }
3712 3712
         }
3713 3713
 
3714
-        if (! isset($prototype)) {
3714
+        if ( ! isset($prototype)) {
3715 3715
             return [$posArgs, $keyArgs];
3716 3716
         }
3717 3717
 
@@ -3761,8 +3761,8 @@  discard block
 block discarded – undo
3761 3761
 
3762 3762
         // assign the keyword args
3763 3763
         foreach ((array) $argValues as $arg) {
3764
-            if (! empty($arg[0])) {
3765
-                if (! isset($args[$arg[0][1]])) {
3764
+            if ( ! empty($arg[0])) {
3765
+                if ( ! isset($args[$arg[0][1]])) {
3766 3766
                     if ($hasVariable) {
3767 3767
                         $deferredKeywordArgs[$arg[0][1]] = $arg[1];
3768 3768
                     } else {
@@ -3783,7 +3783,7 @@  discard block
 block discarded – undo
3783 3783
 
3784 3784
                 if ($val[0] === Type::T_LIST) {
3785 3785
                     foreach ($val[2] as $name => $item) {
3786
-                        if (! is_numeric($name)) {
3786
+                        if ( ! is_numeric($name)) {
3787 3787
                             $keywordArgs[$name] = $item;
3788 3788
                         } else {
3789 3789
                             $remaining[] = $item;
@@ -3794,7 +3794,7 @@  discard block
 block discarded – undo
3794 3794
                         $name = $this->compileStringContent($this->coerceString($name));
3795 3795
                         $item = $val[2][$i];
3796 3796
 
3797
-                        if (! is_numeric($name)) {
3797
+                        if ( ! is_numeric($name)) {
3798 3798
                             $keywordArgs[$name] = $item;
3799 3799
                         } else {
3800 3800
                             $remaining[] = $item;
@@ -3825,7 +3825,7 @@  discard block
 block discarded – undo
3825 3825
                 $val = $remaining[$i];
3826 3826
             } elseif (isset($keywordArgs[$name])) {
3827 3827
                 $val = $keywordArgs[$name];
3828
-            } elseif (! empty($default)) {
3828
+            } elseif ( ! empty($default)) {
3829 3829
                 continue;
3830 3830
             } else {
3831 3831
                 $this->throwError("Missing argument $name");
@@ -3956,7 +3956,7 @@  discard block
 block discarded – undo
3956 3956
             return [Type::T_LIST, ',', $list];
3957 3957
         }
3958 3958
 
3959
-        return [Type::T_LIST, $delim, ! isset($item) ? []: [$item]];
3959
+        return [Type::T_LIST, $delim, ! isset($item) ? [] : [$item]];
3960 3960
     }
3961 3961
 
3962 3962
     /**
@@ -4031,7 +4031,7 @@  discard block
 block discarded – undo
4031 4031
     protected function coercePercent($value)
4032 4032
     {
4033 4033
         if ($value[0] === Type::T_NUMBER) {
4034
-            if (! empty($value[2]['%'])) {
4034
+            if ( ! empty($value[2]['%'])) {
4035 4035
                 return $value[1] / 100;
4036 4036
             }
4037 4037
 
@@ -4211,7 +4211,7 @@  discard block
 block discarded – undo
4211 4211
         }
4212 4212
 
4213 4213
         if ($h * 3 < 2) {
4214
-            return $m1 + ($m2 - $m1) * (2/3 - $h) * 6;
4214
+            return $m1 + ($m2 - $m1) * (2 / 3 - $h) * 6;
4215 4215
         }
4216 4216
 
4217 4217
         return $m1;
@@ -4241,9 +4241,9 @@  discard block
 block discarded – undo
4241 4241
         $m2 = $l <= 0.5 ? $l * ($s + 1) : $l + $s - $l * $s;
4242 4242
         $m1 = $l * 2 - $m2;
4243 4243
 
4244
-        $r = $this->hueToRGB($m1, $m2, $h + 1/3) * 255;
4244
+        $r = $this->hueToRGB($m1, $m2, $h + 1 / 3) * 255;
4245 4245
         $g = $this->hueToRGB($m1, $m2, $h) * 255;
4246
-        $b = $this->hueToRGB($m1, $m2, $h - 1/3) * 255;
4246
+        $b = $this->hueToRGB($m1, $m2, $h - 1 / 3) * 255;
4247 4247
 
4248 4248
         $out = [Type::T_COLOR, $r, $g, $b];
4249 4249
 
@@ -4258,7 +4258,7 @@  discard block
 block discarded – undo
4258 4258
         $name = $this->compileStringContent($this->coerceString($this->reduce(array_shift($args), true)));
4259 4259
 
4260 4260
         $args = array_map(
4261
-            function ($a) {
4261
+            function($a) {
4262 4262
                 return [null, $a, false];
4263 4263
             },
4264 4264
             $args
@@ -4278,7 +4278,7 @@  discard block
 block discarded – undo
4278 4278
     {
4279 4279
         list($cond, $t, $f) = $args;
4280 4280
 
4281
-        if (! $this->isTruthy($this->reduce($cond, true))) {
4281
+        if ( ! $this->isTruthy($this->reduce($cond, true))) {
4282 4282
             return $this->reduce($f, true);
4283 4283
         }
4284 4284
 
@@ -4384,7 +4384,7 @@  discard block
 block discarded – undo
4384 4384
     ];
4385 4385
     protected function libAdjustColor($args)
4386 4386
     {
4387
-        return $this->alterColor($args, function ($base, $alter, $i) {
4387
+        return $this->alterColor($args, function($base, $alter, $i) {
4388 4388
             return $base + $alter;
4389 4389
         });
4390 4390
     }
@@ -4395,7 +4395,7 @@  discard block
 block discarded – undo
4395 4395
     ];
4396 4396
     protected function libChangeColor($args)
4397 4397
     {
4398
-        return $this->alterColor($args, function ($base, $alter, $i) {
4398
+        return $this->alterColor($args, function($base, $alter, $i) {
4399 4399
             return $alter;
4400 4400
         });
4401 4401
     }
@@ -4406,7 +4406,7 @@  discard block
 block discarded – undo
4406 4406
     ];
4407 4407
     protected function libScaleColor($args)
4408 4408
     {
4409
-        return $this->alterColor($args, function ($base, $scale, $i) {
4409
+        return $this->alterColor($args, function($base, $scale, $i) {
4410 4410
             // 1, 2, 3 - rgb
4411 4411
             // 4, 5, 6 - hsl
4412 4412
             // 7 - a
@@ -4504,7 +4504,7 @@  discard block
 block discarded – undo
4504 4504
         $first = $this->assertColor($first);
4505 4505
         $second = $this->assertColor($second);
4506 4506
 
4507
-        if (! isset($weight)) {
4507
+        if ( ! isset($weight)) {
4508 4508
             $weight = 0.5;
4509 4509
         } else {
4510 4510
             $weight = $this->coercePercent($weight);
@@ -4895,7 +4895,7 @@  discard block
 block discarded – undo
4895 4895
             $n += count($list[2]);
4896 4896
         }
4897 4897
 
4898
-        if (! isset($list[2][$n])) {
4898
+        if ( ! isset($list[2][$n])) {
4899 4899
             $this->throwError('Invalid argument for "n"');
4900 4900
 
4901 4901
             return;
@@ -4997,7 +4997,7 @@  discard block
 block discarded – undo
4997 4997
 
4998 4998
     protected function listSeparatorForJoin($list1, $sep)
4999 4999
     {
5000
-        if (! isset($sep)) {
5000
+        if ( ! isset($sep)) {
5001 5001
             return $list1[1];
5002 5002
         }
5003 5003
 
@@ -5117,7 +5117,7 @@  discard block
 block discarded – undo
5117 5117
     {
5118 5118
         list($number1, $number2) = $args;
5119 5119
 
5120
-        if (! isset($number1[0]) || $number1[0] !== Type::T_NUMBER ||
5120
+        if ( ! isset($number1[0]) || $number1[0] !== Type::T_NUMBER ||
5121 5121
             ! isset($number2[0]) || $number2[0] !== Type::T_NUMBER
5122 5122
         ) {
5123 5123
             $this->throwError('Invalid argument(s) for "comparable"');
@@ -5315,7 +5315,7 @@  discard block
 block discarded – undo
5315 5315
     {
5316 5316
         static $id;
5317 5317
 
5318
-        if (! isset($id)) {
5318
+        if ( ! isset($id)) {
5319 5319
             $id = mt_rand(0, pow(36, 8));
5320 5320
         }
5321 5321
 
Please login to merge, or discard this patch.
vendor/leafo/scssphp/src/Node/Number.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
     {
268 268
         $dimension = round($this->dimension, static::$precision);
269 269
 
270
-        $units = array_filter($this->units, function ($unitSize) {
270
+        $units = array_filter($this->units, function($unitSize) {
271 271
             return $unitSize;
272 272
         });
273 273
 
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
             $this->normalizeUnits($dimension, $units, 'in');
279 279
 
280 280
             $dimension = round($dimension, static::$precision);
281
-            $units     = array_filter($units, function ($unitSize) {
281
+            $units     = array_filter($units, function($unitSize) {
282 282
                 return $unitSize;
283 283
             });
284 284
         }
Please login to merge, or discard this patch.