Clean up spaces, tabs, indentation, and bracket formatting
This commit is contained in:
@@ -4,11 +4,11 @@
|
||||
*
|
||||
* The SportsPress formats class stores preset sport data.
|
||||
*
|
||||
* @class SP_Formats
|
||||
* @class SP_Formats
|
||||
* @version 2.4
|
||||
* @package SportsPress/Classes
|
||||
* @category Class
|
||||
* @author ThemeBoy
|
||||
* @package SportsPress/Classes
|
||||
* @category Class
|
||||
* @author ThemeBoy
|
||||
*/
|
||||
class SP_Formats {
|
||||
|
||||
@@ -22,32 +22,35 @@ class SP_Formats {
|
||||
* @return void
|
||||
*/
|
||||
public function __construct() {
|
||||
$this->data = apply_filters( 'sportspress_formats', array(
|
||||
'event' => array(
|
||||
'league' => __( 'Competitive', 'sportspress' ),
|
||||
'friendly' => __( 'Friendly', 'sportspress' ),
|
||||
),
|
||||
'calendar' => array(
|
||||
'calendar' => __( 'Calendar', 'sportspress' ),
|
||||
'list' => __( 'List', 'sportspress' ),
|
||||
'blocks' => __( 'Blocks', 'sportspress' ),
|
||||
),
|
||||
'table' => array(
|
||||
'standings' => __( 'Standings', 'sportspress' ),
|
||||
'gallery' => __( 'Gallery', 'sportspress' ),
|
||||
),
|
||||
'list' => array(
|
||||
'list' => __( 'List', 'sportspress' ),
|
||||
'gallery' => __( 'Gallery', 'sportspress' ),
|
||||
),
|
||||
));
|
||||
$this->data = apply_filters(
|
||||
'sportspress_formats',
|
||||
array(
|
||||
'event' => array(
|
||||
'league' => __( 'Competitive', 'sportspress' ),
|
||||
'friendly' => __( 'Friendly', 'sportspress' ),
|
||||
),
|
||||
'calendar' => array(
|
||||
'calendar' => __( 'Calendar', 'sportspress' ),
|
||||
'list' => __( 'List', 'sportspress' ),
|
||||
'blocks' => __( 'Blocks', 'sportspress' ),
|
||||
),
|
||||
'table' => array(
|
||||
'standings' => __( 'Standings', 'sportspress' ),
|
||||
'gallery' => __( 'Gallery', 'sportspress' ),
|
||||
),
|
||||
'list' => array(
|
||||
'list' => __( 'List', 'sportspress' ),
|
||||
'gallery' => __( 'Gallery', 'sportspress' ),
|
||||
),
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
public function __get( $key ) {
|
||||
return ( array_key_exists( $key, $this->data ) ? $this->data[ $key ] : null );
|
||||
}
|
||||
|
||||
public function __set( $key, $value ){
|
||||
public function __set( $key, $value ) {
|
||||
$this->data[ $key ] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user