Passed
Push — develop ( 771d27...66f018 )
by Aristeides
04:22
created
class-kirki-autoload.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -89,25 +89,25 @@  discard block
 block discarded – undo
89 89
 		$name_parts = explode( '_', str_replace( 'Kirki_', '', $class_name ) );
90 90
 
91 91
 		// Handle modules loading.
92
-		if ( isset( $name_parts[0] ) && 'Modules' === $name_parts[0] ) {
92
+		if ( isset( $name_parts[ 0 ] ) && 'Modules' === $name_parts[ 0 ] ) {
93 93
 			$path    = dirname( __FILE__ ) . '/modules/';
94 94
 			$path   .= strtolower( str_replace( '_', '-', str_replace( 'Kirki_Modules_', '', $class_name ) ) ) . '/';
95
-			$paths[] = $path . $filename;
95
+			$paths[ ] = $path . $filename;
96 96
 		} elseif ( 'Kirki_Fonts' === $class_name ) {
97
-			$paths[] = dirname( __FILE__ ) . '/modules/webfonts/class-kirki-fonts.php';
97
+			$paths[ ] = dirname( __FILE__ ) . '/modules/webfonts/class-kirki-fonts.php';
98 98
 		}
99 99
 
100
-		if ( isset( $name_parts[0] ) ) {
100
+		if ( isset( $name_parts[ 0 ] ) ) {
101 101
 
102 102
 			// Handle controls loading.
103
-			if ( 'Control' === $name_parts[0] || 'Settings' === $name_parts[0] ) {
103
+			if ( 'Control' === $name_parts[ 0 ] || 'Settings' === $name_parts[ 0 ] ) {
104 104
 				$path    = dirname( __FILE__ ) . '/controls/php/';
105
-				$paths[] = $path . $filename;
105
+				$paths[ ] = $path . $filename;
106 106
 			}
107 107
 		}
108 108
 
109
-		$paths[] = dirname( __FILE__ ) . '/core/' . $filename;
110
-		$paths[] = dirname( __FILE__ ) . '/lib/' . $filename;
109
+		$paths[ ] = dirname( __FILE__ ) . '/core/' . $filename;
110
+		$paths[ ] = dirname( __FILE__ ) . '/lib/' . $filename;
111 111
 
112 112
 		$substr   = str_replace( 'Kirki_', '', $class_name );
113 113
 		$exploded = explode( '_', $substr );
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 
116 116
 		$previous_path = '';
117 117
 		for ( $i = 0; $i < $levels; $i++ ) {
118
-			$paths[]        = dirname( __FILE__ ) . '/' . $previous_path . strtolower( $exploded[ $i ] ) . '/' . $filename;
118
+			$paths[ ]        = dirname( __FILE__ ) . '/' . $previous_path . strtolower( $exploded[ $i ] ) . '/' . $filename;
119 119
 			$previous_path .= strtolower( $exploded[ $i ] ) . '/';
120 120
 		}
121 121
 		return $paths;
Please login to merge, or discard this patch.