Skip to content

Commit 7bc90ed

Browse files
committed
Make sure src and tests are psr2 with short array-syntax
1 parent 28cd036 commit 7bc90ed

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/Http/RateLimit/Handler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public function rateLimitRequest(Request $request, $limit = 0, $expires = 0)
9090
// If the throttle instance is already set then we'll just carry on as
9191
// per usual.
9292
if ($this->throttle instanceof Throttle\Throttle) {
93-
//
93+
//
9494

9595
// If the developer specified a certain amount of requests or expiration
9696
// time on a specific route then we'll always use the route specific

src/Routing/Adapter/Lumen.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ protected function breakUriSegments($uri)
155155

156156
$uris = [];
157157

158-
while($segments) {
158+
while ($segments) {
159159
$uris[] = implode('/', $segments);
160160

161161
array_pop($segments);

src/Routing/Router.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ public function controllers(array $controllers)
299299
*
300300
* @return void
301301
*/
302-
public function controller($uri, $controller, $names = array())
302+
public function controller($uri, $controller, $names = [])
303303
{
304304
$routable = (new ControllerInspector)->getRoutable($this->addGroupNamespace($controller), $uri);
305305

src/Transformer/Adapter/Fractal.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ protected function mergeEagerLoads($transformer, $requestedIncludes)
174174

175175
$includes = array_merge($availableIncludes, $transformer->getDefaultIncludes());
176176

177-
$eagerLoads = array();
177+
$eagerLoads = [];
178178

179179
foreach ($includes as $key => $value) {
180180
$eagerLoads[] = is_string($key) ? $key : $value;

tests/Stubs/ApplicationStub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function registerConfiguredProviders()
3232
//
3333
}
3434

35-
public function register($provider, $options = array(), $force = false)
35+
public function register($provider, $options = [], $force = false)
3636
{
3737
//
3838
}

0 commit comments

Comments
 (0)