Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Illuminate/Bus/Dispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ protected function marshal($command, ArrayAccess $source, array $extras = [])
* @return mixed
*/
protected function getParameterValueForCommand($command, ArrayAccess $source,
ReflectionParameter $parameter, array $extras = array())
ReflectionParameter $parameter, array $extras = [])
{
$value = $this->extractValueFromExtras($parameter, $extras)
?: $this->extractValueFromSource($source, $parameter);
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Cache/ArrayStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class ArrayStore extends TaggableStore implements StoreInterface {
*
* @var array
*/
protected $storage = array();
protected $storage = [];

/**
* Retrieve an item from the cache by key.
Expand Down Expand Up @@ -94,7 +94,7 @@ public function forget($key)
*/
public function flush()
{
$this->storage = array();
$this->storage = [];
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Cache/NullStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class NullStore extends TaggableStore implements StoreInterface {
*
* @var array
*/
protected $storage = array();
protected $storage = [];

/**
* Retrieve an item from the cache by key.
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Cache/TagSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class TagSet {
*
* @var array
*/
protected $names = array();
protected $names = [];

/**
* Create a new TagSet instance.
Expand All @@ -23,7 +23,7 @@ class TagSet {
* @param array $names
* @return void
*/
public function __construct(StoreInterface $store, array $names = array())
public function __construct(StoreInterface $store, array $names = [])
{
$this->store = $store;
$this->names = $names;
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Config/Repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Repository implements ArrayAccess, ConfigContract {
* @param array $items
* @return void
*/
public function __construct(array $items = array())
public function __construct(array $items = [])
{
$this->items = $items;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Console/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function __construct(LaravelApplication $laravel, Dispatcher $events)
* @param array $parameters
* @return int
*/
public function call($command, array $parameters = array())
public function call($command, array $parameters = [])
{
$parameters['command'] = $command;

Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Console/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
* @param array $arguments
* @return integer
*/
public function call($command, array $arguments = array())
public function call($command, array $arguments = [])
{
$instance = $this->getApplication()->find($command);

Expand All @@ -138,7 +138,7 @@ public function call($command, array $arguments = array())
* @param array $arguments
* @return integer
*/
public function callSilent($command, array $arguments = array())
public function callSilent($command, array $arguments = [])
{
$instance = $this->getApplication()->find($command);

Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Console/Scheduling/CallbackEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class CallbackEvent extends Event {
* @param array $parameters
* @return void
*/
public function __construct($callback, array $parameters = array())
public function __construct($callback, array $parameters = [])
{
$this->callback = $callback;
$this->parameters = $parameters;
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Console/Scheduling/Schedule.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Schedule {
* @param array $parameters
* @return \Illuminate\Console\Scheduling\Event
*/
public function call($callback, array $parameters = array())
public function call($callback, array $parameters = [])
{
$this->events[] = $event = new CallbackEvent($callback, $parameters);

Expand Down
6 changes: 3 additions & 3 deletions src/Illuminate/Contracts/Auth/Guard.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function user();
* @param array $credentials
* @return bool
*/
public function once(array $credentials = array());
public function once(array $credentials = []);

/**
* Attempt to authenticate a user using the given credentials.
Expand All @@ -39,7 +39,7 @@ public function once(array $credentials = array());
* @param bool $login
* @return bool
*/
public function attempt(array $credentials = array(), $remember = false, $login = true);
public function attempt(array $credentials = [], $remember = false, $login = true);

/**
* Attempt to authenticate using HTTP Basic Auth.
Expand All @@ -63,7 +63,7 @@ public function onceBasic($field = 'email');
* @param array $credentials
* @return bool
*/
public function validate(array $credentials = array());
public function validate(array $credentials = []);

/**
* Log a user into the application.
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Contracts/Console/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface Application {
* @param array $parameters
* @return int
*/
public function call($command, array $parameters = array());
public function call($command, array $parameters = []);

/**
* Get the output from the last command.
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Contracts/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function handle($input, $output = null);
* @param array $parameters
* @return int
*/
public function call($command, array $parameters = array());
public function call($command, array $parameters = []);

/**
* Queue an Artisan console command by name.
Expand All @@ -27,7 +27,7 @@ public function call($command, array $parameters = array());
* @param array $parameters
* @return int
*/
public function queue($command, array $parameters = array());
public function queue($command, array $parameters = []);

/**
* Get all of the commands registered with the console.
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Contracts/Container/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function when($concrete);
* @param array $parameters
* @return mixed
*/
public function make($abstract, $parameters = array());
public function make($abstract, $parameters = []);

/**
* Call the given Closure / class@method and inject its dependencies.
Expand All @@ -112,7 +112,7 @@ public function make($abstract, $parameters = array());
* @param string|null $defaultMethod
* @return mixed
*/
public function call($callback, array $parameters = array(), $defaultMethod = null);
public function call($callback, array $parameters = [], $defaultMethod = null);

/**
* Determine if the given abstract type has been resolved.
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Contracts/Events/Dispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function hasListeners($eventName);
* @param array $payload
* @return mixed
*/
public function until($event, $payload = array());
public function until($event, $payload = []);

/**
* Fire an event and call the listeners.
Expand All @@ -37,7 +37,7 @@ public function until($event, $payload = array());
* @param bool $halt
* @return array|null
*/
public function fire($event, $payload = array(), $halt = false);
public function fire($event, $payload = [], $halt = false);

/**
* Get the event that is currently firing.
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Contracts/Foundation/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function registerConfiguredProviders();
* @param bool $force
* @return \Illuminate\Support\ServiceProvider
*/
public function register($provider, $options = array(), $force = false);
public function register($provider, $options = [], $force = false);

/**
* Register a deferred provider and service.
Expand Down
6 changes: 3 additions & 3 deletions src/Illuminate/Contracts/Hashing/Hasher.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface Hasher {
* @param array $options
* @return string
*/
public function make($value, array $options = array());
public function make($value, array $options = []);

/**
* Check the given plain value against a hash.
Expand All @@ -19,7 +19,7 @@ public function make($value, array $options = array());
* @param array $options
* @return bool
*/
public function check($value, $hashedValue, array $options = array());
public function check($value, $hashedValue, array $options = []);

/**
* Check if the given hash has been hashed using the given options.
Expand All @@ -28,6 +28,6 @@ public function check($value, $hashedValue, array $options = array());
* @param array $options
* @return bool
*/
public function needsRehash($hashedValue, array $options = array());
public function needsRehash($hashedValue, array $options = []);

}
16 changes: 8 additions & 8 deletions src/Illuminate/Contracts/Logging/Log.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface Log {
* @param array $context
* @return void
*/
public function alert($message, array $context = array());
public function alert($message, array $context = []);

/**
* Log a critical message to the logs.
Expand All @@ -18,7 +18,7 @@ public function alert($message, array $context = array());
* @param array $context
* @return void
*/
public function critical($message, array $context = array());
public function critical($message, array $context = []);

/**
* Log an error message to the logs.
Expand All @@ -27,7 +27,7 @@ public function critical($message, array $context = array());
* @param array $context
* @return void
*/
public function error($message, array $context = array());
public function error($message, array $context = []);

/**
* Log a warning message to the logs.
Expand All @@ -36,7 +36,7 @@ public function error($message, array $context = array());
* @param array $context
* @return void
*/
public function warning($message, array $context = array());
public function warning($message, array $context = []);

/**
* Log a notice to the logs.
Expand All @@ -45,7 +45,7 @@ public function warning($message, array $context = array());
* @param array $context
* @return void
*/
public function notice($message, array $context = array());
public function notice($message, array $context = []);

/**
* Log an informational message to the logs.
Expand All @@ -54,7 +54,7 @@ public function notice($message, array $context = array());
* @param array $context
* @return void
*/
public function info($message, array $context = array());
public function info($message, array $context = []);

/**
* Log a debug message to the logs.
Expand All @@ -63,7 +63,7 @@ public function info($message, array $context = array());
* @param array $context
* @return void
*/
public function debug($message, array $context = array());
public function debug($message, array $context = []);

/**
* Log a message to the logs.
Expand All @@ -73,7 +73,7 @@ public function debug($message, array $context = array());
* @param array $context
* @return void
*/
public function log($level, $message, array $context = array());
public function log($level, $message, array $context = []);

/**
* Register a file log handler.
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Contracts/Queue/Queue.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function push($job, $data = '', $queue = null);
* @param array $options
* @return mixed
*/
public function pushRaw($payload, $queue = null, array $options = array());
public function pushRaw($payload, $queue = null, array $options = []);

/**
* Push a new job onto the queue after a delay.
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Contracts/Redis/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ interface Database {
* @param array $parameters
* @return mixed
*/
public function command($method, array $parameters = array());
public function command($method, array $parameters = []);

}
2 changes: 1 addition & 1 deletion src/Illuminate/Contracts/Routing/Registrar.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function match($methods, $uri, $action);
* @param array $options
* @return void
*/
public function resource($name, $controller, array $options = array());
public function resource($name, $controller, array $options = []);

/**
* Create a route group with shared attributes.
Expand Down
Loading