composer-update-patch

This commit is contained in:
Manish Verma
2016-11-03 05:44:29 +05:30
parent 2dca47f5a4
commit 5d49d384a0
5118 changed files with 51603 additions and 122575 deletions

View File

@@ -21,7 +21,7 @@ abstract class BaseOptionedModel
/**
* @var array
*/
protected $options = array();
protected $options = [];
/**
* Get options.

View File

@@ -21,7 +21,7 @@ abstract class BaseParameteredModel
/**
* @var array
*/
protected $parameters = array();
protected $parameters = [];
/**
* Get parameters.

View File

@@ -29,7 +29,7 @@ class Device extends BaseParameteredModel implements DeviceInterface
* @param string $token Token
* @param array $parameters Parameters
*/
public function __construct($token, array $parameters = array())
public function __construct($token, array $parameters = [])
{
$this->token = $token;
$this->parameters = $parameters;

View File

@@ -29,7 +29,7 @@ class Message extends BaseOptionedModel implements MessageInterface
* @param string $text Text
* @param array $options Options
*/
public function __construct($text, array $options = array())
public function __construct($text, array $options = [])
{
$this->text = $text;
$this->options = $options;

View File

@@ -13,8 +13,6 @@ namespace Sly\NotificationPusher\Model;
use Sly\NotificationPusher\Collection\DeviceCollection;
use Sly\NotificationPusher\Adapter\AdapterInterface;
use Sly\NotificationPusher\Model\DeviceInterface;
use Sly\NotificationPusher\Model\MessageInterface;
use Sly\NotificationPusher\Exception\AdapterException;
/**
@@ -53,20 +51,20 @@ class Push extends BaseOptionedModel implements PushInterface
/**
* Constructor.
*
* @param \Sly\NotificationPusher\Adapter\AdapterInterface $adapter Adapter
* @param DeviceInterface|DeviceCollection $devices Device(s)
* @param \Sly\NotificationPusher\Model\MessageInterface $message Message
* @param array $options Options
* @param \Sly\NotificationPusher\Adapter\AdapterInterface $adapter Adapter
* @param DeviceInterface|DeviceCollection $devices Device(s)
* @param \Sly\NotificationPusher\Model\MessageInterface $message Message
* @param array $options Options
*
* Options are adapters specific ones, like Apns "badge" or "sound" option for example.
* Of course, they can be more general.
*
* @throws \Sly\NotificationPusher\Exception\AdapterException
*/
public function __construct(AdapterInterface $adapter, $devices, MessageInterface $message, array $options = array())
public function __construct(AdapterInterface $adapter, $devices, MessageInterface $message, array $options = [])
{
if ($devices instanceof DeviceInterface) {
$devices = new DeviceCollection(array($devices));
$devices = new DeviceCollection([$devices]);
}
$this->adapter = $adapter;
@@ -90,7 +88,7 @@ class Push extends BaseOptionedModel implements PushInterface
if (false === $adapter->supports($device->getToken())) {
throw new AdapterException(
sprintf(
'Adapter %s does not supports %s token\'s device',
'Adapter %s does not support %s token\'s device',
(string) $adapter,
$device->getToken()
)

View File

@@ -25,7 +25,7 @@ interface PushInterface
*/
const STATUS_PENDING = 'pending';
const STATUS_PUSHED = 'sent';
/**
* Get Status.
*