Skip to content

Commit 3afd34d

Browse files
committed
Merge pull request #231 from keradus/lowercase_constants
CS: The PHP constants true, false, and null MUST be in lower case.
2 parents 9c36069 + 5142fa0 commit 3afd34d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Github/Api/Repository/Commits.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ public function all($username, $repository, array $params)
1515
return $this->get('repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/commits', $params);
1616
}
1717

18-
public function compare($username, $repository, $base, $head, $mediaType = NULL)
18+
public function compare($username, $repository, $base, $head, $mediaType = null)
1919
{
2020
$headers = array();
21-
if (NULL !== $mediaType) {
21+
if (null !== $mediaType) {
2222
$headers['Accept'] = $mediaType;
2323
}
2424
return $this->get('repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/compare/'.rawurlencode($base).'...'.rawurlencode($head), array(), $headers);

0 commit comments

Comments
 (0)