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

@@ -27,7 +27,7 @@ class DeviceCollection extends AbstractCollection implements \IteratorAggregate
*
* @param array $devices Devices
*/
public function __construct(array $devices = array())
public function __construct(array $devices = [])
{
$this->coll = new \ArrayIterator();
@@ -59,10 +59,10 @@ class DeviceCollection extends AbstractCollection implements \IteratorAggregate
*/
public function getTokens()
{
$tokens = array();
$tokens = [];
foreach ($this as $token => $device) {
$tokens[] = $token;
foreach ($this as $device) {
$tokens[] = $device->getToken();
}
return array_unique(array_filter($tokens));