Skip to content

Commit

Permalink
Fixed CS
Browse files Browse the repository at this point in the history
  • Loading branch information
core23 committed Aug 24, 2018
1 parent 854e104 commit 94af91c
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Connection/AbstractConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ private function filterNull(array $object): array
*/
private function encodeUTF8($object)
{
if (is_array($object)) {
if (\is_array($object)) {
return array_map([$this, 'encodeUTF8'], $object);
}

Expand Down
2 changes: 1 addition & 1 deletion src/Connection/HTTPlugConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ private function parseResponse(ResponseInterface $response): array
{
$array = json_decode($response->getBody()->getContents(), true);

if (is_array($array) && array_key_exists('error', $array) && array_key_exists('message', $array)) {
if (\is_array($array) && array_key_exists('error', $array) && array_key_exists('message', $array)) {
throw new ApiException($array['message'], $array['error']);
}

Expand Down
2 changes: 1 addition & 1 deletion src/Model/SongInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public static function fromApi(array $data): self
$artist = null;

if (isset($data['artist'])) {
if (is_array($data['artist'])) {
if (\is_array($data['artist'])) {
$artist = Artist::fromApi($data['artist']);
} else {
$artist = new Artist($data['artist'], null, [], null);
Expand Down
2 changes: 1 addition & 1 deletion src/Service/AlbumService.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ final class AlbumService extends AbstractService
*/
public function addTags(SessionInterface $session, string $artist, string $album, array $tags): void
{
$count = count($tags);
$count = \count($tags);

if (0 === $count) {
return;
Expand Down
2 changes: 1 addition & 1 deletion src/Service/ArtistService.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ final class ArtistService extends AbstractService
*/
public function addTags(SessionInterface $session, string $artist, array $tags): void
{
$count = count($tags);
$count = \count($tags);

if (0 === $count) {
return;
Expand Down
4 changes: 2 additions & 2 deletions src/Service/TrackService.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ final class TrackService extends AbstractService
*/
public function addTags(SessionInterface $session, string $artist, string $track, array $tags): void
{
$count = count($tags);
$count = \count($tags);

if (0 === $count) {
return;
Expand Down Expand Up @@ -356,7 +356,7 @@ public function removeTag(SessionInterface $session, string $artist, string $tra
*/
public function scrobble(SessionInterface $session, array $tracks): void
{
$count = count($tracks);
$count = \count($tracks);

if (0 === $count) {
return;
Expand Down

0 comments on commit 94af91c

Please sign in to comment.