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

@@ -2,11 +2,11 @@
/**
* SportsPress Feeds Class
*
* @class SP_Feeds
* @version 2.6.5
* @package SportsPress/Classes
* @category Class
* @author ThemeBoy
* @class SP_Feeds
* @version 2.6.5
* @package SportsPress/Classes
* @category Class
* @author ThemeBoy
*/
class SP_Feeds {
@@ -23,18 +23,18 @@ class SP_Feeds {
$data = array(
'calendar' => array(
'ical' => array(
'apple' => array(
'name' => __( 'Apple Calendar', 'sportspress' ),
'apple' => array(
'name' => __( 'Apple Calendar', 'sportspress' ),
'protocol' => 'webcal',
),
'outlook' => array(
'name' => __( 'Outlook', 'sportspress' ),
'name' => __( 'Outlook', 'sportspress' ),
'protocol' => 'webcal',
),
'google' => array(
'name' => __( 'Google', 'sportspress' ),
'google' => array(
'name' => __( 'Google', 'sportspress' ),
'protocol' => 'webcal',
'prefix' => 'http://www.google.com/calendar/render?cid=',
'prefix' => 'http://www.google.com/calendar/render?cid=',
),
),
),
@@ -53,12 +53,12 @@ class SP_Feeds {
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;
}
public static function ical_feed() {
$feed_template = SP()->plugin_path() . '/feeds/ical.php';
load_template( $feed_template );
load_template( $feed_template );
}
}