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 a141d87 commit b89c133
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 6 deletions.
3 changes: 3 additions & 0 deletions src/Console/Command/Database/TableCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,21 @@ final class TableCommand extends Command

/**
* @var InputInterface
*
* @psalm-suppress PropertyNotSetInConstructor
*/
private $input;

/**
* @var OutputInterface
*
* @psalm-suppress PropertyNotSetInConstructor
*/
private $output;

/**
* @var string
*
* @psalm-suppress PropertyNotSetInConstructor
*/
private $tableName;
Expand Down
2 changes: 2 additions & 0 deletions src/Console/Command/Migrate/AbstractCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,14 @@ abstract class AbstractCommand extends Command

/**
* @var InputInterface
*
* @psalm-suppress PropertyNotSetInConstructor
*/
protected $input;

/**
* @var OutputInterface
*
* @psalm-suppress PropertyNotSetInConstructor
*/
protected $output;
Expand Down
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 Spiral\Migrations\Config\MigrationConfig;
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 @@ -46,15 +43,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 @@ -79,6 +76,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 @@ -22,6 +22,7 @@ protected function setUp(): void

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

0 comments on commit b89c133

Please sign in to comment.