Inconsistent Array Declaration

This PR normalises the declaration of arrays throughout the project, and adds
this to the php-cs-fixer rules.

I've chosen "short" by default, but happy to change the PR to use "long" if
preferred.
This commit is contained in:
Anthony Sterling
2017-10-02 09:05:05 +01:00
parent 49ed1c9e8f
commit cebeae15a3
5 changed files with 9 additions and 8 deletions

View File

@@ -10,7 +10,7 @@ namespace Cloudflare\API\Configurations;
class PageRulesActions implements Configurations
{
private $configs = array();
private $configs = [];
public function setAlwaysOnline(bool $active)
{

View File

@@ -10,7 +10,7 @@ namespace Cloudflare\API\Configurations;
class UARules implements Configurations
{
private $configs = array();
private $configs = [];
public function addUA(string $value)
{

View File

@@ -10,7 +10,7 @@ namespace Cloudflare\API\Configurations;
class ZoneLockdown implements Configurations
{
private $configs = array();
private $configs = [];
public function addIP(string $value)
{