Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
[ci skip] [skip ci]
  • Loading branch information
StyleCIBot committed Mar 20, 2023
1 parent ac44bb6 commit c6cf59e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/Commands/RemovePackage.php
Expand Up @@ -6,7 +6,6 @@

use Illuminate\Console\Command;
use JeroenG\Packager\Conveyor;
use JeroenG\Packager\FileHandler;
use JeroenG\Packager\FileHandlerInterface;
use JeroenG\Packager\ProgressBar;
use JeroenG\Packager\Wrapping;
Expand Down
8 changes: 3 additions & 5 deletions src/Conveyor.php
Expand Up @@ -5,8 +5,6 @@
namespace JeroenG\Packager;

use Illuminate\Support\Str;
use RuntimeException;
use Symfony\Component\Process\Process;

final class Conveyor
{
Expand Down Expand Up @@ -135,7 +133,7 @@ private function removePathRepository(): void
'composer',
'config',
'--unset',
'repositories.' . Str::slug($this->vendor) . '/' . Str::slug($this->package),
'repositories.'.Str::slug($this->vendor).'/'.Str::slug($this->package),
]);
}

Expand All @@ -144,7 +142,7 @@ private function requirePackage(): void
$this->runProcess([
'composer',
'require',
$this->vendor . '/' . $this->package . ':@dev',
$this->vendor.'/'.$this->package.':@dev',
]);
}

Expand All @@ -153,7 +151,7 @@ private function removePackage(): void
$this->runProcess([
'composer',
'remove',
$this->vendor . '/' . $this->package,
$this->vendor.'/'.$this->package,
]);
}
}
2 changes: 1 addition & 1 deletion tests/Unit/ConveyorTest.php
Expand Up @@ -38,7 +38,7 @@ public function test_it_calls_process_to_install_package(): void
'repositories.myvendor/mypackage',
'{"type":"path","url":"packages\/myvendor\/mypackage","options":{"symlink":true}}',
'--file',
'composer.json'
'composer.json',
], true);

$this->expectNotToPerformAssertions();
Expand Down

0 comments on commit c6cf59e

Please sign in to comment.