Fix PHP syntax errors in BearerTokenResponse and DeleteCommentPipeline

pull/6561/head
Alies Lapatsin 3 months ago
parent 421babacae
commit 0023760a28
No known key found for this signature in database

@ -14,7 +14,7 @@ class BearerTokenResponse extends \League\OAuth2\Server\ResponseTypes\BearerToke
*
* @return array
*/
protected function getExtraParams(AccessTokenEntityInterface $accessToken)
protected function getExtraParams(AccessTokenEntityInterface $accessToken): array
{
return [
'scope' => implode(' ', array_map(fn ($scope) => $scope->getIdentifier(), $accessToken->getScopes())),

@ -46,7 +46,7 @@ class DeleteCommentPipeline implements ShouldQueue
{
$groupId = $this->status->group_id;
$postId = $this->status->id;
if($this->status->)
// if($this->status->)
$parent = $this->parent;
$parent->reply_count = GroupComment::whereStatusId($parent->id)->count();
$parent->save();

Loading…
Cancel
Save