Skip to content

Commit

Permalink
Remove unused variables and imports
Browse files Browse the repository at this point in the history
  • Loading branch information
coenjacobs committed Feb 4, 2021
1 parent 782a928 commit 3b1243c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
2 changes: 0 additions & 2 deletions src/Console/Commands/Compose.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace CoenJacobs\Mozart\Console\Commands;

use CoenJacobs\Mozart\Composer\Autoload\Classmap;
use CoenJacobs\Mozart\Composer\Autoload\NamespaceAutoloader;
use CoenJacobs\Mozart\Composer\Package;
use CoenJacobs\Mozart\Mover;
use CoenJacobs\Mozart\Replacer;
Expand Down
12 changes: 6 additions & 6 deletions tests/Console/Commands/ComposeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function it_fails_gracefully_when_composer_json_absent(): void
$outputInterfaceMock->expects($this->exactly(1))
->method('write');

$compose = new class( $inputInterfaceMock, $outputInterfaceMock ) extends Compose {
new class( $inputInterfaceMock, $outputInterfaceMock ) extends Compose {
public function __construct($inputInterfaceMock, $outputInterfaceMock)
{
parent::__construct();
Expand Down Expand Up @@ -74,7 +74,7 @@ public function it_handles_malformed_json_with_grace(): void
$outputInterfaceMock->expects($this->exactly(1))
->method('write');

$compose = new class( $inputInterfaceMock, $outputInterfaceMock ) extends Compose {
new class( $inputInterfaceMock, $outputInterfaceMock ) extends Compose {
public function __construct($inputInterfaceMock, $outputInterfaceMock)
{
parent::__construct();
Expand Down Expand Up @@ -104,7 +104,7 @@ public function it_handles_absent_extra_config_with_grace(): void
$outputInterfaceMock->expects($this->exactly(1))
->method('write');

$compose = new class( $inputInterfaceMock, $outputInterfaceMock ) extends Compose {
new class( $inputInterfaceMock, $outputInterfaceMock ) extends Compose {
public function __construct($inputInterfaceMock, $outputInterfaceMock)
{
parent::__construct();
Expand Down Expand Up @@ -135,7 +135,7 @@ public function it_handles_malformed_extra_config_with_grace(): void
$outputInterfaceMock->expects($this->exactly(1))
->method('write');

$compose = new class( $inputInterfaceMock, $outputInterfaceMock ) extends Compose {
new class( $inputInterfaceMock, $outputInterfaceMock ) extends Compose {
public function __construct($inputInterfaceMock, $outputInterfaceMock)
{
parent::__construct();
Expand Down Expand Up @@ -165,7 +165,7 @@ public function it_handles_absent_mozart_config_with_grace(): void
$outputInterfaceMock->expects($this->exactly(1))
->method('write');

$compose = new class( $inputInterfaceMock, $outputInterfaceMock ) extends Compose {
new class( $inputInterfaceMock, $outputInterfaceMock ) extends Compose {
public function __construct($inputInterfaceMock, $outputInterfaceMock)
{
parent::__construct();
Expand Down Expand Up @@ -197,7 +197,7 @@ public function it_handles_malformed_mozart_config__with_grace(): void
$outputInterfaceMock->expects($this->exactly(1))
->method('write');

$compose = new class( $inputInterfaceMock, $outputInterfaceMock ) extends Compose {
new class( $inputInterfaceMock, $outputInterfaceMock ) extends Compose {
public function __construct($inputInterfaceMock, $outputInterfaceMock)
{
parent::__construct();
Expand Down
2 changes: 1 addition & 1 deletion tests/replacers/ClassmapReplacerIntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function test_it_does_not_make_classname_replacement_inside_namespaced_fi

$mozartCompose = new Compose();

$result = $mozartCompose->run($inputInterfaceMock, $outputInterfaceMock);
$mozartCompose->run($inputInterfaceMock, $outputInterfaceMock);

$php_string = file_get_contents($this->testsWorkingDir .'/dep_directory/BrianHenryIE/WP_Logger/class-logger.php');

Expand Down
2 changes: 1 addition & 1 deletion tests/replacers/NamespaceReplacerIntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public function test_it_does_not_make_classname_replacement_inside_namespaced_fi

$mozartCompose = new Compose();

$result = $mozartCompose->run($inputInterfaceMock, $outputInterfaceMock);
$mozartCompose->run($inputInterfaceMock, $outputInterfaceMock);

$mpdf_php = file_get_contents($this->testsWorkingDir .'/dep_directory/Mpdf/Mpdf.php');

Expand Down

0 comments on commit 3b1243c

Please sign in to comment.