@@ -10,11 +10,11 @@ discard block |
||
10 | 10 | class DataTest extends TestCase |
11 | 11 | { |
12 | 12 | private $formattedUrls = [ |
13 | - ['url' => 'https://www.google.com'], |
|
14 | - ['url' => 'https://github.com'], |
|
15 | - ['url' => 'https://github.styleci.io'], |
|
16 | - ['url' => 'https://travis-ci.org'], |
|
17 | - ['url' => 'https://packagist.org'], |
|
13 | + [ 'url' => 'https://www.google.com' ], |
|
14 | + [ 'url' => 'https://github.com' ], |
|
15 | + [ 'url' => 'https://github.styleci.io' ], |
|
16 | + [ 'url' => 'https://travis-ci.org' ], |
|
17 | + [ 'url' => 'https://packagist.org' ], |
|
18 | 18 | ]; |
19 | 19 | |
20 | 20 | private $urls = [ |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | public function testPayloadSingleUrl() |
42 | 42 | { |
43 | 43 | $formattedUrl = [ |
44 | - ['url' => 'https://www.google.com'], |
|
44 | + [ 'url' => 'https://www.google.com' ], |
|
45 | 45 | ]; |
46 | 46 | |
47 | 47 | $url = [ |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | //['url' => ''], |
61 | 61 | ]; |
62 | 62 | |
63 | - $urls = []; |
|
63 | + $urls = [ ]; |
|
64 | 64 | |
65 | 65 | $expected = self::payload($formattedUrls); |
66 | 66 | |
@@ -78,10 +78,10 @@ discard block |
||
78 | 78 | |
79 | 79 | public function testFormatUrlsSingle() |
80 | 80 | { |
81 | - $url = ['https://www.google.com']; |
|
81 | + $url = [ 'https://www.google.com' ]; |
|
82 | 82 | |
83 | 83 | $expected = [ |
84 | - ['url' => 'https://www.google.com'], |
|
84 | + [ 'url' => 'https://www.google.com' ], |
|
85 | 85 | ]; |
86 | 86 | |
87 | 87 | $actual = Data::formatUrls($url); |
@@ -90,9 +90,9 @@ discard block |
||
90 | 90 | |
91 | 91 | public function testFormatUrlsNone() |
92 | 92 | { |
93 | - $urls = []; |
|
93 | + $urls = [ ]; |
|
94 | 94 | |
95 | - $expected = []; |
|
95 | + $expected = [ ]; |
|
96 | 96 | |
97 | 97 | $actual = Data::formatUrls($urls); |
98 | 98 | $this->assertEquals($expected, $actual); |