| @@ -27,7 +27,7 @@ discard block | ||
| 27 | 27 | $code = str_replace( '-', "-0x", $code ); | 
| 28 | 28 | $code = explode( '-', $code ); | 
| 29 | 29 | |
| 30 | - $map[ $category ][] = array( | |
| 30 | + $map[ $category ][ ] = array( | |
| 31 | 31 | 'code' => $code, | 
| 32 | 32 | 'sort_order' => $emoji->sort_order, | 
| 33 | 33 | ); | 
| @@ -35,17 +35,17 @@ discard block | ||
| 35 | 35 | |
| 36 | 36 | ksort( $map ); | 
| 37 | 37 | |
| 38 | -foreach( $map as $category => $emoji_list ) { | |
| 38 | +foreach ( $map as $category => $emoji_list ) { | |
| 39 | 39 |  	usort( $map[ $category ], function( $a, $b ) { | 
| 40 | -		if ( $a['sort_order'] == $b['sort_order'] ) { | |
| 40 | +		if ( $a[ 'sort_order' ] == $b[ 'sort_order' ] ) { | |
| 41 | 41 | return 0; | 
| 42 | 42 | } | 
| 43 | 43 | |
| 44 | - return ( $a['sort_order'] < $b['sort_order'] ) ? -1 : 1; | |
| 44 | + return ( $a[ 'sort_order' ] < $b[ 'sort_order' ] ) ? -1 : 1; | |
| 45 | 45 | } ); | 
| 46 | 46 | |
| 47 | -	foreach( $map[ $category ] as $id => $emoji ) { | |
| 48 | - $map[ $category ][ $id ] = $emoji['code']; | |
| 47 | +	foreach ( $map[ $category ] as $id => $emoji ) { | |
| 48 | + $map[ $category ][ $id ] = $emoji[ 'code' ]; | |
| 49 | 49 | } | 
| 50 | 50 | } | 
| 51 | 51 | |
| @@ -12,10 +12,10 @@ discard block | ||
| 12 | 12 |  	public function __construct() { | 
| 13 | 13 | $this->enqueue(); | 
| 14 | 14 | |
| 15 | - add_action( 'wp_head', array( $this, 'print_settings' ) ); | |
| 16 | - add_action( 'wp_footer', array( $this, 'print_selector' ) ); | |
| 15 | + add_action( 'wp_head', array( $this, 'print_settings' ) ); | |
| 16 | + add_action( 'wp_footer', array( $this, 'print_selector' ) ); | |
| 17 | 17 | |
| 18 | - add_filter( 'the_content', array( $this, 'the_content' ) ); | |
| 18 | + add_filter( 'the_content', array( $this, 'the_content' ) ); | |
| 19 | 19 | } | 
| 20 | 20 | |
| 21 | 21 | /** | 
| @@ -74,7 +74,7 @@ discard block | ||
| 74 | 74 | ) ); | 
| 75 | 75 | |
| 76 | 76 | $reactions_summary = array(); | 
| 77 | -		foreach( $reactions as $reaction ) { | |
| 77 | +		foreach ( $reactions as $reaction ) { | |
| 78 | 78 |  			if ( ! isset( $reactions_summary[ $reaction->comment_content ] ) ) { | 
| 79 | 79 | $reactions_summary[ $reaction->comment_content ] = 0; | 
| 80 | 80 | } | 
| @@ -98,14 +98,14 @@ discard block | ||
| 98 | 98 | ?> | 
| 99 | 99 | <div id="emoji-reaction-selector" style="display: none;"> | 
| 100 | 100 | <div class="tabs"> | 
| 101 | - <div data-tab="0" alt="<?php echo __( 'People', 'reactions' ); ?>" class="emoji-reaction-tab"><?php echo __( ' | |