Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit e5abc57

Browse files
thexpandweierophinney
authored andcommitted
Change ClientRepository::getClientData() method visibility to "private"
1 parent a5f631e commit e5abc57

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

src/Repository/Pdo/ClientRepository.php

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -58,26 +58,6 @@ public function validateClient($clientIdentifier, $clientSecret, $grantType) : b
5858
return true;
5959
}
6060

61-
protected function getClientData(string $clientIdentifier) : ?array
62-
{
63-
$statement = $this->pdo->prepare(
64-
'SELECT * FROM oauth_clients WHERE name = :clientIdentifier'
65-
);
66-
$statement->bindParam(':clientIdentifier', $clientIdentifier);
67-
68-
if ($statement->execute() === false) {
69-
return null;
70-
}
71-
72-
$row = $statement->fetch();
73-
74-
if (empty($row)) {
75-
return null;
76-
}
77-
78-
return $row;
79-
}
80-
8161
/**
8262
* Check the grantType for the client value, stored in $row
8363
*
@@ -99,4 +79,24 @@ protected function isGranted(array $row, string $grantType = null) : bool
9979
return true;
10080
}
10181
}
82+
83+
private function getClientData(string $clientIdentifier) : ?array
84+
{
85+
$statement = $this->pdo->prepare(
86+
'SELECT * FROM oauth_clients WHERE name = :clientIdentifier'
87+
);
88+
$statement->bindParam(':clientIdentifier', $clientIdentifier);
89+
90+
if ($statement->execute() === false) {
91+
return null;
92+
}
93+
94+
$row = $statement->fetch();
95+
96+
if (empty($row)) {
97+
return null;
98+
}
99+
100+
return $row;
101+
}
102102
}

0 commit comments

Comments
 (0)