Skip to content

Commit

Permalink
Fix: Run 'make coding-standards'
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Dec 28, 2021
1 parent 497356e commit f7170ad
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 67 deletions.
4 changes: 1 addition & 3 deletions src/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,8 @@ final class Version
{
/**
* @see https://github.com/box-project/box/blob/master/doc/configuration.md#pretty-git-tag-placeholder-git
*
* @var string
*/
private static $version = '@git@';
private static string $version = '@git@';

public static function long(): string
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,7 @@
abstract class AbstractTestCase extends Framework\TestCase
{
use Test\Util\Helper;

/**
* @var string
*/
private $currentWorkingDirectory;
private string $currentWorkingDirectory;

final protected function setUp(): void
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,7 @@ public function testFailsWhenNormalizerThrowsRuntimeExceptionDuringNormalization
$application = self::createApplication(new NormalizeCommand(
new Factory(),
new class($exceptionMessage) implements Normalizer\NormalizerInterface {
/**
* @var string
*/
private $exceptionMessage;
private string $exceptionMessage;

public function __construct(string $exceptionMessage)
{
Expand Down
5 changes: 1 addition & 4 deletions test/Util/CommandInvocation.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@

final class CommandInvocation
{
/**
* @var string
*/
private $style;
private string $style;

private function __construct(string $variation)
{
Expand Down
11 changes: 2 additions & 9 deletions test/Util/Directory.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,8 @@

final class Directory
{
/**
* @var string
*/
private $path;

/**
* @var bool
*/
private $exists;
private string $path;
private bool $exists;

private function __construct(string $path)
{
Expand Down
17 changes: 3 additions & 14 deletions test/Util/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,9 @@

final class File
{
/**
* @var string
*/
private $path;

/**
* @var bool
*/
private $exists = false;

/**
* @var null|string
*/
private $contents;
private string $path;
private bool $exists = false;
private ?string $contents;

private function __construct()
{
Expand Down
11 changes: 2 additions & 9 deletions test/Util/Scenario.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,8 @@

final class Scenario
{
/**
* @var CommandInvocation
*/
private $commandInvocation;

/**
* @var State
*/
private $initialState;
private CommandInvocation $commandInvocation;
private State $initialState;

private function __construct(CommandInvocation $commandInvocation, State $initialState)
{
Expand Down
23 changes: 4 additions & 19 deletions test/Util/State.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,10 @@

final class State
{
/**
* @var Directory
*/
private $directory;

/**
* @var File
*/
private $composerJsonFile;

/**
* @var File
*/
private $composerLockFile;

/**
* @var Directory
*/
private $vendorDirectory;
private Directory $directory;
private File $composerJsonFile;
private File $composerLockFile;
private Directory $vendorDirectory;

private function __construct(Directory $directory)
{
Expand Down

0 comments on commit f7170ad

Please sign in to comment.