Skip to content

Commit 4c9d66f

Browse files
committed
Apply fixes from StyleCI
1 parent 7594d80 commit 4c9d66f

File tree

4 files changed

+11
-17
lines changed

4 files changed

+11
-17
lines changed

config/config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
'wip' => env('LGW_WIP', 'WIP'),
88
'env' => base_path('.env'),
99
'composer_json' => base_path('/composer.json'),
10-
'repositories' => [],
10+
'repositories' => [],
1111
];

src/Commands/SetRepository.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?php
22

3-
43
namespace Grosv\LaravelGitWorkflow\Commands;
54

65
use Illuminate\Console\Command;
@@ -9,7 +8,6 @@
98

109
class SetRepository extends Command
1110
{
12-
1311
/**
1412
* The name and signature of the console command.
1513
*
@@ -20,7 +18,6 @@ class SetRepository extends Command
2018
public string $package;
2119
public string $repo;
2220

23-
2421
public function handle(): int
2522
{
2623
$this->package = $this->argument('package');
@@ -29,7 +26,7 @@ public function handle(): int
2926
$packages = config('laravel-git-workflow.repositories') ?? [];
3027

3128
if (!isset($packages[$this->package])) {
32-
$this->error('You have not configured a package called ' . $this->package);
29+
$this->error('You have not configured a package called '.$this->package);
3330
}
3431

3532
$new = $packages[$this->package];

tests/SetRepositoryCommandTest.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?php
22

3-
43
namespace Tests;
54

65
use Illuminate\Support\Facades\Config;
@@ -14,14 +13,14 @@ public function setUp(): void
1413
{
1514
parent::setUp();
1615

17-
Config::set('laravel-git-workflow.composer_json', __DIR__ . '/test_composer.json');
16+
Config::set('laravel-git-workflow.composer_json', __DIR__.'/test_composer.json');
1817
Config::set('laravel-git-workflow.repositories', [
19-
'my-happy-package' => [
20-
'git' => 'https://github.com/edgrosvenor/my-happy-package',
21-
'path' => '../../packages/edgrosvenor/my-happy-package',
22-
],
18+
'my-happy-package' => [
19+
'git' => 'https://github.com/edgrosvenor/my-happy-package',
20+
'path' => '../../packages/edgrosvenor/my-happy-package',
21+
],
2322
'my-crazy-package' => [
24-
'git' => 'https://github.com/edgrosvenor/my-crazy-package',
23+
'git' => 'https://github.com/edgrosvenor/my-crazy-package',
2524
'path' => '../../packages/edgrosvenor/my-crazy-package',
2625
],
2726
'my-sad-package' => [

tests/UpdateIssueCommandTest.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ public function setUp(): void
1414
{
1515
parent::setUp();
1616

17-
Config::set('laravel-git-workflow.composer_json', __DIR__ . '/test_composer.json');
17+
Config::set('laravel-git-workflow.composer_json', __DIR__.'/test_composer.json');
1818
Config::set('laravel-git-workflow.repositories', [
1919
'my-happy-package' => [
20-
'git' => 'https://github.com/edgrosvenor/my-happy-package',
20+
'git' => 'https://github.com/edgrosvenor/my-happy-package',
2121
'path' => '../../packages/edgrosvenor/my-happy-package',
2222
],
2323
'my-crazy-package' => [
24-
'git' => 'https://github.com/edgrosvenor/my-crazy-package',
24+
'git' => 'https://github.com/edgrosvenor/my-crazy-package',
2525
'path' => '../../packages/edgrosvenor/my-crazy-package',
2626
],
2727
'my-sad-package' => [
@@ -30,7 +30,6 @@ public function setUp(): void
3030
]);
3131

3232
$this->composer = File::get(config('laravel-git-workflow.composer_json'));
33-
3433
}
3534

3635
public function tearDown(): void
@@ -54,7 +53,6 @@ public function it_will_not_let_you_commit_directly_to_master()
5453
/** @test */
5554
public function it_will_let_you_commit_to_a_feature_branch()
5655
{
57-
5856
$this->mock(GetCurrentBranchName::class, function ($mock) {
5957
$mock->shouldReceive('execute')
6058
->andReturn('1_feature_branch');

0 commit comments

Comments
 (0)