Clean up spaces, tabs, indentation, and bracket formatting

This commit is contained in:
Brian Miyaji
2021-11-10 15:41:40 +09:00
parent e58beb1201
commit 3dff686a00
285 changed files with 29638 additions and 24147 deletions

View File

@@ -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;
}
}