From 079ed0040a8cf1a8744623b8acdb23d7572e4464 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Tue, 15 Mar 2016 17:54:45 -0400 Subject: [PATCH] Applied fixes from StyleCI --- examples/src/Entities/ClientEntity.php | 2 +- examples/src/Entities/ScopeEntity.php | 4 ++-- examples/src/Repositories/ClientRepository.php | 2 +- examples/src/Repositories/ScopeRepository.php | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/src/Entities/ClientEntity.php b/examples/src/Entities/ClientEntity.php index 2427b4e7..822a3f64 100644 --- a/examples/src/Entities/ClientEntity.php +++ b/examples/src/Entities/ClientEntity.php @@ -82,4 +82,4 @@ class ClientEntity implements ClientEntityInterface { return $this->secret !== null; } -} \ No newline at end of file +} diff --git a/examples/src/Entities/ScopeEntity.php b/examples/src/Entities/ScopeEntity.php index 35611da2..23d12a44 100644 --- a/examples/src/Entities/ScopeEntity.php +++ b/examples/src/Entities/ScopeEntity.php @@ -9,8 +9,8 @@ class ScopeEntity implements ScopeEntityInterface { use EntityTrait; - function jsonSerialize() + public function jsonSerialize() { return $this->getIdentifier(); } -} \ No newline at end of file +} diff --git a/examples/src/Repositories/ClientRepository.php b/examples/src/Repositories/ClientRepository.php index 5a5a32f7..4727871b 100644 --- a/examples/src/Repositories/ClientRepository.php +++ b/examples/src/Repositories/ClientRepository.php @@ -22,7 +22,7 @@ class ClientRepository implements ClientRepositoryInterface // Check if client is registered if (array_key_exists($clientIdentifier, $clients) === false) { - return null; + return; } $client = new ClientEntity(); diff --git a/examples/src/Repositories/ScopeRepository.php b/examples/src/Repositories/ScopeRepository.php index f9b50dbb..014ca3dd 100644 --- a/examples/src/Repositories/ScopeRepository.php +++ b/examples/src/Repositories/ScopeRepository.php @@ -22,7 +22,7 @@ class ScopeRepository implements ScopeRepositoryInterface ]; if (array_key_exists($scopeIdentifier, $scopes) === false) { - return null; + return; } $scope = new ScopeEntity();