@@ -54,8 +54,8 @@ discard block |
||
| 54 | 54 | } |
| 55 | 55 | |
| 56 | 56 | // Check if we've got it cached and ready. |
| 57 | - if ( isset( $this->cached_paths[ $class_name ] ) && file_exists( $this->cached_paths[ $class_name ] ) ) { |
|
| 58 | - include_once $this->cached_paths[ $class_name ]; |
|
| 57 | + if ( isset( $this->cached_paths[$class_name] ) && file_exists( $this->cached_paths[$class_name] ) ) { |
|
| 58 | + include_once $this->cached_paths[$class_name]; |
|
| 59 | 59 | return; |
| 60 | 60 | } |
| 61 | 61 | |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | foreach ( $paths as $path ) { |
| 65 | 65 | $path = wp_normalize_path( $path ); |
| 66 | 66 | if ( file_exists( $path ) ) { |
| 67 | - $this->cached_paths[ $class_name ] = $path; |
|
| 67 | + $this->cached_paths[$class_name] = $path; |
|
| 68 | 68 | include_once $path; |
| 69 | 69 | return; |
| 70 | 70 | } |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | |
| 100 | 100 | // Handle controls loading. |
| 101 | 101 | if ( 'Control' === $name_parts[0] || 'Settings' === $name_parts[0] ) { |
| 102 | - $path = dirname( __FILE__ ) . '/controls/php/'; |
|
| 102 | + $path = dirname( __FILE__ ) . '/controls/php/'; |
|
| 103 | 103 | |
| 104 | 104 | $paths[] = $path . $filename; |
| 105 | 105 | } |
@@ -114,8 +114,8 @@ discard block |
||
| 114 | 114 | |
| 115 | 115 | $previous_path = ''; |
| 116 | 116 | for ( $i = 0; $i < $levels; $i++ ) { |
| 117 | - $paths[] = dirname( __FILE__ ) . '/' . $previous_path . strtolower( $exploded[ $i ] ) . '/' . $filename; |
|
| 118 | - $previous_path .= strtolower( $exploded[ $i ] ) . '/'; |
|
| 117 | + $paths[] = dirname( __FILE__ ) . '/' . $previous_path . strtolower( $exploded[$i] ) . '/' . $filename; |
|
| 118 | + $previous_path .= strtolower( $exploded[$i] ) . '/'; |
|
| 119 | 119 | } |
| 120 | 120 | return $paths; |
| 121 | 121 | } |