From cba174c2a93016f18ab90417c76af5ab3b7af39b Mon Sep 17 00:00:00 2001 From: Daniel Lienert Date: Fri, 6 Mar 2020 21:47:47 +0100 Subject: [PATCH] TASK: Improve code quality --- Classes/AssetSource/UnsplashAssetProxyQuery.php | 4 +++- Classes/AssetSource/UnsplashAssetProxyQueryResult.php | 7 ++++--- Classes/AssetSource/UnsplashAssetProxyRepository.php | 4 ++++ Classes/AssetSource/UnsplashAssetSource.php | 1 + Classes/AssetSource/UnsplashImageSizeInterface.php | 10 +++++----- 5 files changed, 17 insertions(+), 9 deletions(-) diff --git a/Classes/AssetSource/UnsplashAssetProxyQuery.php b/Classes/AssetSource/UnsplashAssetProxyQuery.php index d1b605d..d59e7b4 100644 --- a/Classes/AssetSource/UnsplashAssetProxyQuery.php +++ b/Classes/AssetSource/UnsplashAssetProxyQuery.php @@ -1,4 +1,5 @@ execute()->count(); } } diff --git a/Classes/AssetSource/UnsplashAssetProxyQueryResult.php b/Classes/AssetSource/UnsplashAssetProxyQueryResult.php index 9b7e2d7..3c9070c 100644 --- a/Classes/AssetSource/UnsplashAssetProxyQueryResult.php +++ b/Classes/AssetSource/UnsplashAssetProxyQueryResult.php @@ -1,4 +1,5 @@ unsplashQueryResultIterator->current(); - if($photo instanceof Photo) { + if ($photo instanceof Photo) { return new UnsplashAssetProxy($photo, $this->assetSource); - } else { - return null; } + + return null; } /** diff --git a/Classes/AssetSource/UnsplashAssetProxyRepository.php b/Classes/AssetSource/UnsplashAssetProxyRepository.php index 8ca69fb..20014b9 100644 --- a/Classes/AssetSource/UnsplashAssetProxyRepository.php +++ b/Classes/AssetSource/UnsplashAssetProxyRepository.php @@ -1,4 +1,5 @@