Remove trailing whitespace

This commit is contained in:
Kijin Sung 2023-01-17 20:57:44 +09:00
parent 3b0030e82b
commit a9f72a5cd2
81 changed files with 2455 additions and 2455 deletions

View file

@ -12,34 +12,34 @@ class APNs extends Base implements \Rhymix\Framework\Drivers\PushInterface
*/
protected static $_required_config = array('certificate', 'passphrase');
protected static $_optional_config = array();
/**
* Get the human-readable name of this Push driver.
*
*
* @return string
*/
public static function getName(): string
{
return 'APNs';
}
/**
* Check if the current Push driver is supported on this server.
*
*
* This method returns true on success and false on failure.
*
*
* @return bool
*/
public static function isSupported(): bool
{
return true;
}
/**
* Send a message.
*
*
* This method returns true on success and false on failure.
*
*
* @param object $message
* @param array $tokens
* @return \stdClass
@ -86,7 +86,7 @@ class APNs extends Base implements \Rhymix\Framework\Drivers\PushInterface
$output->success[] = $token;
fclose($fp);
}
return $output;
}
}

View file

@ -13,13 +13,13 @@ abstract class Base implements PushInterface
* The configuration is stored here.
*/
protected $_config = null;
/**
* Config keys used by this driver are stored here.
*/
protected static $_required_config = array();
protected static $_optional_config = array();
/**
* Direct invocation of the constructor is not permitted.
*/
@ -27,10 +27,10 @@ abstract class Base implements PushInterface
{
$this->_config = $config;
}
/**
* Create a new instance of the current Push driver, using the given settings.
*
*
* @param array $config
* @return PushInterface
*/
@ -38,54 +38,54 @@ abstract class Base implements PushInterface
{
return new static($config);
}
/**
* Get the human-readable name of this Push driver.
*
*
* @return string
*/
public static function getName(): string
{
return class_basename(get_called_class());
}
/**
* Get the list of configuration fields required by this Push driver.
*
*
* @return array
*/
public static function getRequiredConfig(): array
{
return static::$_required_config;
}
/**
* Get the list of configuration fields optionally used by this Push driver.
*
*
* @return array
*/
public static function getOptionalConfig(): array
{
return static::$_optional_config;
}
/**
* Check if the current Push driver is supported on this server.
*
*
* This method returns true on success and false on failure.
*
*
* @return bool
*/
public static function isSupported(): bool
{
return false;
}
/**
* Send a message.
*
*
* This method returns true on success and false on failure.
*
*
* @param object $message
* @param array $tokens
* @return \stdClass

View file

@ -12,34 +12,34 @@ class FCM extends Base implements \Rhymix\Framework\Drivers\PushInterface
*/
protected static $_required_config = array('api_key');
protected static $_optional_config = array();
/**
* Get the human-readable name of this Push driver.
*
*
* @return string
*/
public static function getName(): string
{
return 'Google FCM';
}
/**
* Check if the current Push driver is supported on this server.
*
*
* This method returns true on success and false on failure.
*
*
* @return bool
*/
public static function isSupported(): bool
{
return true;
}
/**
* Send a message.
*
*
* This method returns true on success and false on failure.
*
*
* @param object $message
* @param array $tokens
* @return \stdClass