Skip to content

Commit

Permalink
Small formatting updates & updating composer.json
Browse files Browse the repository at this point in the history
  • Loading branch information
ericsizemore committed Dec 28, 2023
1 parent 150689d commit c2b789e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
5 changes: 5 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@
},
"autoload": {
"psr-4": { "Esi\\LibrariesIO\\": "src/" }
},
"autoload-dev": {
"psr-4": {
"Esi\\LibrariesIO\\Tests\\": "tests/src/"
}
},
"support": {
"issues": "https://github.com/ericsizemore/librariesio/issues",
Expand Down
8 changes: 3 additions & 5 deletions src/LibrariesIO.php
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ public function processEndpointFormat(string $format, array $options): string
return $format;
}

foreach ($options AS $key => $val) {
foreach ($options as $key => $val) {
if ($key === 'page' || $key === 'per_page') {
continue;
}
Expand All @@ -442,7 +442,7 @@ public function verifyEndpointOptions(array $endpointOptions, array $options): b
{
$noError = true;

foreach ($endpointOptions AS $endpointOption) {
foreach ($endpointOptions as $endpointOption) {
if (!isset($options[$endpointOption])) {
$noError = false;
break;
Expand Down Expand Up @@ -497,9 +497,7 @@ protected function searchVerifySortOption(string $sort): string
*/
public function raw(ResponseInterface $response): string
{
$json = $response->getBody()->getContents();

return $json;
return $response->getBody()->getContents();
}

/**
Expand Down

0 comments on commit c2b789e

Please sign in to comment.