Skip to content

Commit 8733443

Browse files
style updates from styleci check
1 parent cf0a6d4 commit 8733443

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

lib/Github/Api/RateLimit.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
*/
1111
class RateLimit extends AbstractApi
1212
{
13-
1413
/**
1514
* Get rate limits
1615
*
@@ -42,5 +41,4 @@ public function getSearchLimit()
4241
$response = $this->getRateLimits();
4342
return $response['resources']['search']['limit'];
4443
}
45-
4644
}

test/Github/Tests/Api/RateLimitTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,20 @@ class RateLimitTest extends TestCase
1010
*/
1111
public function shouldReturnRateLimitArray()
1212
{
13-
$expectedArray = [
14-
'resources' => [
15-
'core' => [
13+
$expectedArray = array(
14+
'resources' => array(
15+
'core' => array(
1616
'limit' => 5000,
1717
'remaining' => 4999,
1818
'reset' => 1372700873
19-
],
20-
'search' => [
19+
),
20+
'search' => array(
2121
'limit' => 30,
2222
'remaining' => 18,
2323
'reset' => 1372697452
24-
]
25-
]
26-
];
24+
)
25+
)
26+
);
2727

2828
$api = $this->getApiMock();
2929
$api->expects($this->once())

test/Github/Tests/Functional/RateLimitTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function shouldRetrievedRateLimits()
1515
$response = $this->client->api('rate_limit')->getRateLimits();
1616

1717
$this->assertArrayHasKey('resources', $response);
18-
$this->assertArraySubset(['resources' => ['core' => ['limit' => 60]]], $response);
18+
$this->assertArraySubset(array('resources' => array('core' => array('limit' => 60))), $response);
1919

2020
}
2121

0 commit comments

Comments
 (0)