@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | foreach ( $classes as $class_name ) { |
| 135 | 135 | |
| 136 | 136 | $hook_type = new $class_name(); |
| 137 | - self::$hook_types[ $hook_type->get_id_base() ] = $hook_type; |
|
| 137 | + self::$hook_types[$hook_type->get_id_base()] = $hook_type; |
|
| 138 | 138 | } |
| 139 | 139 | |
| 140 | 140 | /** |
@@ -180,7 +180,7 @@ discard block |
||
| 180 | 180 | |
| 181 | 181 | $instances = $hook_type->get_instances( $type ); |
| 182 | 182 | |
| 183 | - if ( ! isset( $instances[ $id_number ] ) ) { |
|
| 183 | + if ( ! isset( $instances[$id_number] ) ) { |
|
| 184 | 184 | return false; |
| 185 | 185 | } |
| 186 | 186 | |
@@ -203,11 +203,11 @@ discard block |
||
| 203 | 203 | */ |
| 204 | 204 | public static function get_handler_by_id_base( $id_base ) { |
| 205 | 205 | |
| 206 | - if ( ! isset( self::$hook_types[ $id_base ] ) ) { |
|
| 206 | + if ( ! isset( self::$hook_types[$id_base] ) ) { |
|
| 207 | 207 | return false; |
| 208 | 208 | } |
| 209 | 209 | |
| 210 | - return self::$hook_types[ $id_base ]; |
|
| 210 | + return self::$hook_types[$id_base]; |
|
| 211 | 211 | } |
| 212 | 212 | |
| 213 | 213 | /** |
@@ -278,7 +278,7 @@ discard block |
||
| 278 | 278 | // Display a representative for each hook type. |
| 279 | 279 | foreach ( $hook_types as $id_base => $hook_type ) { |
| 280 | 280 | |
| 281 | - if ( isset( $disabled_hooks[ $id_base ] ) ) { |
|
| 281 | + if ( isset( $disabled_hooks[$id_base] ) ) { |
|
| 282 | 282 | continue; |
| 283 | 283 | } |
| 284 | 284 | |
@@ -412,8 +412,8 @@ discard block |
||
| 412 | 412 | |
| 413 | 413 | $points_types_hooks = self::get_points_types_hooks(); |
| 414 | 414 | |
| 415 | - if ( isset( $points_types_hooks[ $slug ] ) && is_array( $points_types_hooks[ $slug ] ) ) { |
|
| 416 | - $points_type_hooks = $points_types_hooks[ $slug ]; |
|
| 415 | + if ( isset( $points_types_hooks[$slug] ) && is_array( $points_types_hooks[$slug] ) ) { |
|
| 416 | + $points_type_hooks = $points_types_hooks[$slug]; |
|
| 417 | 417 | } else { |
| 418 | 418 | $points_type_hooks = array(); |
| 419 | 419 | } |
@@ -471,7 +471,7 @@ discard block |
||
| 471 | 471 | |
| 472 | 472 | foreach ( wordpoints_get_points_types() as $slug => $settings ) { |
| 473 | 473 | |
| 474 | - $defaults[ $slug ] = array(); |
|
| 474 | + $defaults[$slug] = array(); |
|
| 475 | 475 | } |
| 476 | 476 | |
| 477 | 477 | return $defaults; |