Skip to content

Commit

Permalink
fix code-style
Browse files Browse the repository at this point in the history
  • Loading branch information
wakebit committed Apr 24, 2023
1 parent e088211 commit 25a6528
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions tests/config/container.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
use Wakebit\CycleBridge\Schema\Config\SchemaConfig;
use Wakebit\CycleBridge\Schema\GeneratorQueue;
use Wakebit\CycleBridge\Schema\SchemaFactory;

use function DI\autowire;
use function DI\factory;
use function DI\get;
Expand Down
1 change: 1 addition & 0 deletions tests/config/cycle.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use Psr\Container\ContainerInterface;
use Spiral\Tokenizer\Config\TokenizerConfig;
use Wakebit\CycleBridge\Schema\Config\SchemaConfig;

use function DI\create;

/**
Expand Down
9 changes: 3 additions & 6 deletions tests/src/Constraints/SeeInOrder.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
namespace Wakebit\CycleBridge\Tests\Constraints;

use PHPUnit\Framework\Constraint\Constraint;
use ReflectionClass;
use function mb_strlen;
use function mb_strpos;

final class SeeInOrder extends Constraint
{
Expand Down Expand Up @@ -42,15 +39,15 @@ public function matches($values): bool
continue;
}

$valuePosition = mb_strpos($this->content, $value, $position);
$valuePosition = \mb_strpos($this->content, $value, $position);

if ($valuePosition === false || $valuePosition < $position) {
$this->failedValue = $value;

return false;
}

$position = $valuePosition + mb_strlen($value);
$position = $valuePosition + \mb_strlen($value);
}

return true;
Expand All @@ -75,6 +72,6 @@ public function failureDescription($values): string
*/
public function toString(): string
{
return (new ReflectionClass($this))->name;
return (new \ReflectionClass($this))->name;
}
}
1 change: 1 addition & 0 deletions tests/src/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ protected function setUp(): void

/**
* @var array $definitions
*
* @psalm-suppress MissingFile
*/
$definitions = require __DIR__ . '/../config/container.php';
Expand Down

0 comments on commit 25a6528

Please sign in to comment.