Skip to content

Commit

Permalink
cs-fixer corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
karpilin authored and prolic committed Oct 9, 2024
1 parent 0218175 commit 74e1737
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/ClientOperations/ReadAllEventsBackwardOperation.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ protected function inspectResponse(Message $response): InspectionResult
$this->fail(new ServerError($response->getError()));

return new InspectionResult(InspectionDecision::EndOperation, 'Error');
case
ReadAllResult::AccessDenied:
case ReadAllResult::AccessDenied:
$this->fail(AccessDenied::toAllStream());

return new InspectionResult(InspectionDecision::EndOperation, 'AccessDenied');
Expand Down
6 changes: 2 additions & 4 deletions src/Internal/StopWatch.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@

namespace Prooph\EventStoreClient\Internal;

use Prooph\EventStore\Util\DateTime;

/** @internal */
class StopWatch
{
Expand All @@ -24,14 +22,14 @@ private function __construct(private readonly float $started)

public static function startNew(): self
{
$started = microtime(true);
$started = \microtime(true);

return new self($started);
}

public function elapsed(): float
{
$timestamp = microtime(true);;
$timestamp = \microtime(true);

return $timestamp - $this->started;
}
Expand Down

0 comments on commit 74e1737

Please sign in to comment.