@@ -13,10 +13,10 @@ discard block |
||
13 | 13 | */ |
14 | 14 | public function buildClassName( $name, $path = '' ) |
15 | 15 | { |
16 | - $className = array_map( 'ucfirst', array_map( 'strtolower', preg_split( '/[-_]/', $name ))); |
|
16 | + $className = array_map( 'ucfirst', array_map( 'strtolower', preg_split( '/[-_]/', $name ) ) ); |
|
17 | 17 | $className = implode( '', $className ); |
18 | 18 | return !empty( $path ) |
19 | - ? str_replace( '\\\\', '\\', sprintf( '%s\%s', $path, $className )) |
|
19 | + ? str_replace( '\\\\', '\\', sprintf( '%s\%s', $path, $className ) ) |
|
20 | 20 | : $className; |
21 | 21 | } |
22 | 22 | |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | */ |
28 | 28 | public function buildMethodName( $name, $prefix = 'get' ) |
29 | 29 | { |
30 | - return lcfirst( $this->buildClassName( $prefix . '-' . $name )); |
|
30 | + return lcfirst( $this->buildClassName( $prefix . '-' . $name ) ); |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | /** |
@@ -63,10 +63,10 @@ discard block |
||
63 | 63 | public function getCurrentScreen() |
64 | 64 | { |
65 | 65 | global $hook_suffix, $pagenow; |
66 | - if( function_exists( 'get_current_screen' )) { |
|
66 | + if( function_exists( 'get_current_screen' ) ) { |
|
67 | 67 | $screen = get_current_screen(); |
68 | 68 | } |
69 | - if( empty( $screen )) { |
|
69 | + if( empty( $screen ) ) { |
|
70 | 70 | $screen = new \stdClass(); |
71 | 71 | $screen->base = $screen->id = $hook_suffix; |
72 | 72 | } |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | */ |
82 | 82 | public function startsWith( $needle, $haystack ) |
83 | 83 | { |
84 | - return substr( $haystack, 0, strlen( $needle )) === $needle; |
|
84 | + return substr( $haystack, 0, strlen( $needle ) ) === $needle; |
|
85 | 85 | } |
86 | 86 | |
87 | 87 | /** |