Skip to content

Commit

Permalink
Fix incorrect annotation syntax from #[\Override] to #[Override]
Browse files Browse the repository at this point in the history
Corrected the syntax of the #[Override] annotation throughout the Bitrix24Account.php file. This ensures proper usage of the attribute without the unnecessary backslash, improving code readability and consistency.

Signed-off-by: mesilov <[email protected]>
  • Loading branch information
mesilov committed Sep 1, 2024
1 parent cea872d commit 63c64aa
Showing 1 changed file with 21 additions and 20 deletions.
41 changes: 21 additions & 20 deletions src/Bitrix24Accounts/Entity/Bitrix24Account.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
use Bitrix24\SDK\Core\Exceptions\UnknownScopeCodeException;
use Bitrix24\SDK\Core\Response\DTO\RenewedAuthToken;
use Carbon\CarbonImmutable;
use Override;
use Symfony\Component\Uid\Uuid;

class Bitrix24Account implements Bitrix24AccountInterface
Expand Down Expand Up @@ -56,43 +57,43 @@ public function __construct(
$this->applicationScope = $applicationScope->getScopeCodes();
}

#[\Override]
#[Override]
public function getId(): Uuid
{
return $this->id;
}

#[\Override]
#[Override]
public function getBitrix24UserId(): int
{
return $this->bitrix24UserId;
}

#[\Override]
#[Override]
public function isBitrix24UserAdmin(): bool
{
return $this->isBitrix24UserAdmin;
}

#[\Override]
#[Override]
public function getMemberId(): string
{
return $this->memberId;
}

#[\Override]
#[Override]
public function getDomainUrl(): string
{
return $this->domainUrl;
}

#[\Override]
#[Override]
public function getStatus(): Bitrix24AccountStatus
{
return $this->accountStatus;
}

#[\Override]
#[Override]
public function getAuthToken(): AuthToken
{
return new AuthToken($this->accessToken, $this->refreshToken, $this->expires);
Expand All @@ -101,7 +102,7 @@ public function getAuthToken(): AuthToken
/**
* @throws InvalidArgumentException
*/
#[\Override]
#[Override]
public function renewAuthToken(RenewedAuthToken $renewedAuthToken): void
{
if ($this->memberId !== $renewedAuthToken->memberId) {
Expand All @@ -122,7 +123,7 @@ public function renewAuthToken(RenewedAuthToken $renewedAuthToken): void
$this->updatedAt = new CarbonImmutable();
}

#[\Override]
#[Override]
public function getApplicationVersion(): int
{
return $this->applicationVersion;
Expand All @@ -131,7 +132,7 @@ public function getApplicationVersion(): int
/**
* @throws UnknownScopeCodeException
*/
#[\Override]
#[Override]
public function getApplicationScope(): Scope
{
return new Scope($this->applicationScope);
Expand All @@ -140,7 +141,7 @@ public function getApplicationScope(): Scope
/**
* @throws InvalidArgumentException
*/
#[\Override]
#[Override]
public function changeDomainUrl(string $newDomainUrl): void
{
if ($newDomainUrl === '') {
Expand All @@ -165,7 +166,7 @@ public function changeDomainUrl(string $newDomainUrl): void
/**
* @throws InvalidArgumentException
*/
#[\Override]
#[Override]
public function applicationInstalled(string $applicationToken): void
{
if (Bitrix24AccountStatus::new !== $this->accountStatus) {
Expand All @@ -186,7 +187,7 @@ public function applicationInstalled(string $applicationToken): void
/**
* @throws InvalidArgumentException
*/
#[\Override]
#[Override]
public function applicationUninstalled(string $applicationToken): void
{
if ($applicationToken === '') {
Expand Down Expand Up @@ -215,19 +216,19 @@ public function applicationUninstalled(string $applicationToken): void
$this->updatedAt = new CarbonImmutable();
}

#[\Override]
#[Override]
public function isApplicationTokenValid(string $applicationToken): bool
{
return $this->applicationToken === $applicationToken;
}

#[\Override]
#[Override]
public function getCreatedAt(): CarbonImmutable
{
return $this->createdAt;
}

#[\Override]
#[Override]
public function getUpdatedAt(): CarbonImmutable
{
return $this->updatedAt;
Expand All @@ -236,7 +237,7 @@ public function getUpdatedAt(): CarbonImmutable
/**
* @throws InvalidArgumentException
*/
#[\Override]
#[Override]
public function updateApplicationVersion(int $version, ?Scope $newScope): void
{
if (Bitrix24AccountStatus::active !== $this->accountStatus) {
Expand All @@ -261,7 +262,7 @@ public function updateApplicationVersion(int $version, ?Scope $newScope): void
/**
* @throws InvalidArgumentException
*/
#[\Override]
#[Override]
public function markAsActive(?string $comment): void
{
if (Bitrix24AccountStatus::blocked !== $this->accountStatus) {
Expand All @@ -278,7 +279,7 @@ public function markAsActive(?string $comment): void
/**
* @throws InvalidArgumentException
*/
#[\Override]
#[Override]
public function markAsBlocked(?string $comment): void
{
if (Bitrix24AccountStatus::deleted === $this->accountStatus) {
Expand All @@ -290,7 +291,7 @@ public function markAsBlocked(?string $comment): void
$this->updatedAt = new CarbonImmutable();
}

#[\Override]
#[Override]
public function getComment(): ?string
{
return $this->comment;
Expand Down

0 comments on commit 63c64aa

Please sign in to comment.