Completed
Branch develop (1becb4)
by Aristeides
05:50 queued 02:46
created
autoloader.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,8 +21,8 @@
 block discarded – undo
21 21
 
22 22
 			$previous_path = '';
23 23
 			for ( $i = 0; $i < $levels; $i++ ) {
24
-				$paths[] = $path . $previous_path . strtolower( $exploded[ $i ] ) . '/' . $filename;
25
-				$previous_path .= strtolower( $exploded[ $i ] ) . '/';
24
+				$paths[] = $path . $previous_path . strtolower( $exploded[$i] ) . '/' . $filename;
25
+				$previous_path .= strtolower( $exploded[$i] ) . '/';
26 26
 			}
27 27
 
28 28
 			foreach ( $paths as $path ) {
Please login to merge, or discard this patch.
includes/output/property/class-kirki-output-property-font-family.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -9,13 +9,13 @@
 block discarded – undo
9 9
 		// Add backup font
10 10
 		if ( Kirki_Fonts::is_google_font( $this->value ) ) {
11 11
 
12
-			if ( isset( $google_fonts_array[ $this->value ] ) && isset( $google_fonts_array[ $this->value ]['category'] ) ) {
13
-				if ( isset( $backup_fonts[ $google_fonts_array[ $this->value ]['category'] ] ) ) {
12
+			if ( isset( $google_fonts_array[$this->value] ) && isset( $google_fonts_array[$this->value]['category'] ) ) {
13
+				if ( isset( $backup_fonts[$google_fonts_array[$this->value]['category']] ) ) {
14 14
 					// add double quotes if needed
15 15
 					if ( false !== strpos( $this->value, ' ' ) && false === strpos( $this->value, '"' ) ) {
16
-						$this->value = '"' . $this->value . '", ' . $backup_fonts[ $google_fonts_array[ $this->value ]['category'] ];
16
+						$this->value = '"' . $this->value . '", ' . $backup_fonts[$google_fonts_array[$this->value]['category']];
17 17
 					} else {
18
-						$this->value .= ', ' . $backup_fonts[ $google_fonts_array[ $this->value ]['category'] ];
18
+						$this->value .= ', ' . $backup_fonts[$google_fonts_array[$this->value]['category']];
19 19
 					}
20 20
 				}
21 21
 			}
Please login to merge, or discard this patch.
includes/output/control/class-kirki-output-control-typography.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
 
7 7
 		// Take care of font-families
8 8
 		if ( isset( $value['font-family'] ) ) {
9
-			$this->styles[ $output['media_query'] ][ $output['element'] ]['font-family'] = $this->process_property_value( 'font-family', $value['font-family'] );
9
+			$this->styles[$output['media_query']][$output['element']]['font-family'] = $this->process_property_value( 'font-family', $value['font-family'] );
10 10
 		}
11 11
 		// Add support for the older font-weight parameter.
12 12
 		// This has been deprecated so the code below is just
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 		// and make changes to their typography,
16 16
 		// new values are saved and this one is no longer used.
17 17
 		if ( isset( $value['font-weight'] ) && $value['font-weight'] ) {
18
-			$this->styles[ $output['media_query'] ][ $output['element'] ]['font-weight'] = $value['font-weight'];
18
+			$this->styles[$output['media_query']][$output['element']]['font-weight'] = $value['font-weight'];
19 19
 		}
20 20
 		// Take care of variants
21 21
 		if ( isset( $value['variant'] ) && $value['variant'] ) {
@@ -24,22 +24,22 @@  discard block
 block discarded – undo
24 24
 			$font_weight = ( in_array( $font_weight, array( '', 'regular' ) ) ) ? '400' : $font_weight;
25 25
 			// Is this italic?
26 26
 			$is_italic = ( false !== strpos( $value['variant'], 'italic' ) );
27
-			$this->styles[ $output['media_query'] ][ $output['element'] ]['font-weight'] = $font_weight;
27
+			$this->styles[$output['media_query']][$output['element']]['font-weight'] = $font_weight;
28 28
 			if ( $is_italic ) {
29
-				$this->styles[ $output['media_query'] ][ $output['element'] ]['font-style'] = 'italic';
29
+				$this->styles[$output['media_query']][$output['element']]['font-style'] = 'italic';
30 30
 			}
31 31
 		}
32 32
 		// Take care of font-size
33 33
 		if ( isset( $value['font-size'] ) ) {
34
-			$this->styles[ $output['media_query'] ][ $output['element'] ]['font-size'] = $value['font-size'];
34
+			$this->styles[$output['media_query']][$output['element']]['font-size'] = $value['font-size'];
35 35
 		}
36 36
 		// Take care of line-height
37 37
 		if ( isset( $value['line-height'] ) ) {
38
-			$this->styles[ $output['media_query'] ][ $output['element'] ]['line-height'] = $value['line-height'];
38
+			$this->styles[$output['media_query']][$output['element']]['line-height'] = $value['line-height'];
39 39
 		}
40 40
 		// Take care of letter-spacing
41 41
 		if ( isset( $value['letter-spacing'] ) ) {
42
-			$this->styles[ $output['media_query'] ][ $output['element'] ]['letter-spacing'] = $value['letter-spacing'];
42
+			$this->styles[$output['media_query']][$output['element']]['letter-spacing'] = $value['letter-spacing'];
43 43
 		}
44 44
 
45 45
 	}
Please login to merge, or discard this patch.
includes/output/control/class-kirki-output-control-spacing.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 			} else {
11 11
 				$property = $output['property'] . '-' . $key;
12 12
 			}
13
-			$this->styles[ $output['media_query'] ][ $output['element'] ][ $property ] = $sub_value;
13
+			$this->styles[$output['media_query']][$output['element']][$property] = $sub_value;
14 14
 		}
15 15
 
16 16
 	}
Please login to merge, or discard this patch.
includes/class-kirki-section.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 			if ( ! isset( $args['type'] ) || ! array_key_exists( $args['type'], $this->section_types ) ) {
26 26
 				$args['type'] = 'default';
27 27
 			}
28
-			$section_classname = $this->section_types[ $args['type'] ];
28
+			$section_classname = $this->section_types[$args['type']];
29 29
 
30 30
 			$this->wp_customize->add_section( new $section_classname( $this->wp_customize, sanitize_key( $args['id'] ), array(
31 31
 				'title'           => $args['title'], // already escaped in WP Core
Please login to merge, or discard this patch.
includes/class-kirki-panel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
 			if ( ! isset( $args['type'] ) || ! array_key_exists( $args['type'], $this->panel_types ) ) {
36 36
 				$args['type'] = 'default';
37 37
 			}
38
-			$panel_classname = $this->panel_types[ $args['type'] ];
38
+			$panel_classname = $this->panel_types[$args['type']];
39 39
 
40 40
 			$this->wp_customize->add_panel( new $panel_classname( $this->wp_customize, sanitize_key( $args['id'] ), array(
41 41
 				'title'           => $args['title'], // already escaped in WP Core
Please login to merge, or discard this patch.
includes/class-kirki-control.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 			$class_name = 'WP_Customize_Control';
54 54
 			// Get the classname from the array of control classnames
55 55
 			if ( array_key_exists( $args['type'], $this->control_types ) ) {
56
-				$class_name = $this->control_types[ $args['type'] ];
56
+				$class_name = $this->control_types[$args['type']];
57 57
 			}
58 58
 			return $class_name;
59 59
 
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 			foreach ( $this->control_types as $key => $classname ) {
116 116
 
117 117
 				if ( ! class_exists( $classname ) ) {
118
-					unset( $this->control_types[ $key ] );
118
+					unset( $this->control_types[$key] );
119 119
 				}
120 120
 
121 121
 			}
Please login to merge, or discard this patch.
includes/class-kirki-settings.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 			if ( ! isset( $args['type'] ) || ! array_key_exists( $args['type'], $this->setting_types ) ) {
55 55
 				$args['type'] = 'default';
56 56
 			}
57
-			$classname = $this->setting_types[ $args['type'] ];
57
+			$classname = $this->setting_types[$args['type']];
58 58
 
59 59
 			// If settings are defined as an array, then we need to go through them
60 60
 			// and call add_setting for each one of them separately.
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 					$args['default'] = array();
65 65
 				}
66 66
 				foreach ( $args['settings'] as $key => $value ) {
67
-					$default   = ( isset( $defaults[ $key ] ) ) ? $defaults[ $key ] : '';
67
+					$default = ( isset( $defaults[$key] ) ) ? $defaults[$key] : '';
68 68
 					$this->add_setting( $classname, $value, $default, $args['option_type'], $args['capability'], $args['transport'], $args['sanitize_callback'] );
69 69
 				}
70 70
 			}
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 			foreach ( $this->setting_types as $key => $classname ) {
116 116
 
117 117
 				if ( ! class_exists( $classname ) ) {
118
-					unset( $this->setting_types[ $key ] );
118
+					unset( $this->setting_types[$key] );
119 119
 				}
120 120
 
121 121
 			}
Please login to merge, or discard this patch.
includes/class-kirki-config.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 			foreach ( $args as $key => $value ) {
85 85
 				// Is this property whitelisted?
86 86
 				if ( property_exists( $this, $key ) ) {
87
-					$args[ $key ] = $value;
87
+					$args[$key] = $value;
88 88
 				}
89 89
 			}
90 90
 
@@ -122,10 +122,10 @@  discard block
 block discarded – undo
122 122
 			$id = ( '' == $id ) ? 'global' : $id;
123 123
 
124 124
 			$id_md5 = md5( $id );
125
-			if ( ! isset( self::$instances[ $id_md5 ] ) ) {
126
-				self::$instances[ $id_md5 ] = new self( $id, $args );
125
+			if ( ! isset( self::$instances[$id_md5] ) ) {
126
+				self::$instances[$id_md5] = new self( $id, $args );
127 127
 			}
128
-			return self::$instances[ $id_md5 ];
128
+			return self::$instances[$id_md5];
129 129
 
130 130
 		}
131 131
 
Please login to merge, or discard this patch.