Skip to content
This repository has been archived by the owner on Jan 18, 2018. It is now read-only.

Commit

Permalink
CS fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell committed Dec 24, 2014
1 parent 5a5afdf commit 960b73e
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions src/CloudFlareServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ protected function registerCloudFlareController()
*/
public function provides()
{
return array(
return [
//
);
];
}
}
8 changes: 4 additions & 4 deletions src/Controllers/CloudFlareController.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ public function __construct(Zone $zone, StoreInterface $store, $key, array $filt
$this->store = $store;
$this->key = $key;

$this->beforeFilter('ajax', array('only' => array('getData')));
$this->beforeFilter('ajax', ['only' => ['getData']]);

foreach ($filters as $filter) {
$this->beforeFilter($filter, array('only' => array('getIndex', 'getData')));
$this->beforeFilter($filter, ['only' => ['getIndex', 'getData']]);
}
}

Expand All @@ -83,7 +83,7 @@ public function getIndex()
{
$data = $this->store->get($this->key);

return View::make('graham-campbell/cloudflare::index', array('data' => $data));
return View::make('graham-campbell/cloudflare::index', ['data' => $data]);
}

/**
Expand All @@ -97,6 +97,6 @@ public function getData()

$this->store->put($this->key, $data, 30);

return View::make('graham-campbell/cloudflare::data', array('data' => $data));
return View::make('graham-campbell/cloudflare::data', ['data' => $data]);
}
}
4 changes: 2 additions & 2 deletions src/assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@

use Lightgear\Asset\Facades\Asset;

Asset::registerScripts(array(
Asset::registerScripts([
'graham-campbell/cloudflare/src/assets/js/cloudflare.js',
), '', 'cloudflare');
], '', 'cloudflare');
6 changes: 3 additions & 3 deletions src/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

return array(
return [

/*
|--------------------------------------------------------------------------
Expand All @@ -28,7 +28,7 @@
|
*/

'filters' => array(),
'filters' => [],

/*
|--------------------------------------------------------------------------
Expand Down Expand Up @@ -86,4 +86,4 @@

'key' => 'cloudflarestats',

);
];
12 changes: 6 additions & 6 deletions src/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
* limitations under the License.
*/

Route::get('cloudflare', array(
'as' => 'cloudflare.index',
Route::get('cloudflare', [
'as' => 'cloudflare.index',
'uses' => 'GrahamCampbell\CloudFlare\Controllers\CloudFlareController@getIndex',
));
]);

Route::get('cloudflare/data', array(
'as' => 'cloudflare.data',
Route::get('cloudflare/data', [
'as' => 'cloudflare.data',
'uses' => 'GrahamCampbell\CloudFlare\Controllers\CloudFlareController@getData',
));
]);
4 changes: 2 additions & 2 deletions tests/AbstractTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ abstract class AbstractTestCase extends AbstractLaravelTestCase
*/
protected function getRequiredServiceProviders()
{
return array(
return [
'Lightgear\Asset\AssetServiceProvider',
'GrahamCampbell\Core\CoreServiceProvider',
'GrahamCampbell\CloudFlareAPI\CloudFlareAPIServiceProvider',
);
];
}

/**
Expand Down

0 comments on commit 960b73e

Please sign in to comment.