Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromegamez committed Aug 19, 2024
1 parent 2421e48 commit 82062f6
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
1 change: 1 addition & 0 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
])
->withPhpSets()
->withPreparedSets(
deadCode: true,
privatization: true,
earlyReturn: true,
phpunitCodeQuality: true,
Expand Down
2 changes: 0 additions & 2 deletions src/Firebase/AppCheck/ApiClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@ public function exchangeCustomToken(string $appId, string $customToken): array

/**
* @param non-empty-string $method
* @param string|UriInterface $uri
* @param array<string, mixed>|null $options
*
* @throws AppCheckException
*/
private function requestApi(string $method, string|UriInterface $uri, ?array $options = null): ResponseInterface
Expand Down
3 changes: 0 additions & 3 deletions tests/Integration/Database/ReferenceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace Kreait\Firebase\Tests\Integration\Database;

use DateTimeImmutable;
use Kreait\Firebase\Contract\Database;
use Kreait\Firebase\Database\Reference;
use Kreait\Firebase\Tests\Integration\DatabaseTestCase;
Expand Down Expand Up @@ -141,8 +140,6 @@ public function setWithNullIsSameAsRemove(): void
#[Test]
public function setServerTimestamp(): void
{
$now = new DateTimeImmutable();

$value = $this->ref->getChild(__FUNCTION__)
->push(['updatedAt' => Database::SERVER_TIMESTAMP])
->getSnapshot()->getValue()
Expand Down

0 comments on commit 82062f6

Please sign in to comment.