Skip to content

Commit 1050be8

Browse files
committed
Use short array syntax
1 parent dd06493 commit 1050be8

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/JohnKary/PHPUnit/Listener/SpeedTrapListener.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@ class SpeedTrapListener implements TestListener
4747
*
4848
* @var array
4949
*/
50-
protected $slow = array();
50+
protected $slow = [];
5151

5252
/**
5353
* Construct a new instance.
5454
*
5555
* @param array $options
5656
*/
57-
public function __construct(array $options = array())
57+
public function __construct(array $options = [])
5858
{
5959
$this->loadOptions($options);
6060
}

src/JohnKary/PHPUnit/Listener/Tests/SomeSlowTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ public function testWithDataProvider($time)
4343
}
4444
public function provideTime()
4545
{
46-
return array(
47-
'Rock' => array(800),
48-
'Chalk' => array(700),
49-
'Jayhawk' => array(600),
50-
);
46+
return [
47+
'Rock' => [800],
48+
'Chalk' => [700],
49+
'Jayhawk' => [600],
50+
];
5151
}
5252

5353
/**

0 commit comments

Comments
 (0)