Skip to content

Commit 384b731

Browse files
authored
Merge pull request #1 from zachleigh/analysis-87bRbj
Applied fixes from StyleCI
2 parents bb49f68 + 4d1e46c commit 384b731

File tree

5 files changed

+22
-26
lines changed

5 files changed

+22
-26
lines changed

src/Commands/MakeComponent.php

+2-4
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
namespace VueGenerators\Commands;
44

5-
use VueGenerators\Paths;
65
use Illuminate\Filesystem\Filesystem;
7-
use VueGenerators\Commands\VueGeneratorsCommand;
86

97
class MakeComponent extends VueGeneratorsCommand
108
{
@@ -45,8 +43,8 @@ public function handle()
4543
/**
4644
* Get and return stub.
4745
*
48-
* @param Filesystem $filesystem
49-
*
46+
* @param Filesystem $filesystem
47+
*
5048
* @return string
5149
*/
5250
protected function getStub(Filesystem $filesystem)

src/Commands/MakeMixin.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace VueGenerators\Commands;
44

55
use Illuminate\Filesystem\Filesystem;
6-
use VueGenerators\Commands\VueGeneratorsCommand;
76

87
class MakeMixin extends VueGeneratorsCommand
98
{
@@ -44,8 +43,8 @@ public function handle()
4443
/**
4544
* Get and return stub.
4645
*
47-
* @param Filesystem $filesystem
48-
*
46+
* @param Filesystem $filesystem
47+
*
4948
* @return string
5049
*/
5150
protected function getStub(Filesystem $filesystem)

src/Commands/VueGeneratorsCommand.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
class VueGeneratorsCommand extends Command
1010
{
1111
use Paths;
12-
12+
1313
/**
1414
* Create path for file.
1515
*
16-
* @param Filesystem $filesystem
17-
*
16+
* @param Filesystem $filesystem
17+
*
1818
* @return string
1919
*/
2020
protected function createPath(Filesystem $filesystem)

src/Paths.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ trait Paths
99
/**
1010
* Build directory tree from array of paths.
1111
*
12-
* @param array $pathArray
13-
* @param Filesystem|null $filesystem
12+
* @param array $pathArray
13+
* @param Filesystem|null $filesystem
1414
*/
1515
protected function buildPathFromArray(array $pathArray, Filesystem $filesystem = null)
1616
{

tests/CommandTest.php

+13-14
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace VueGenerators\tests;
44

55
use Artisan;
6-
use Illuminate\Filesystem\Filesystem;
76

87
class CommandTest extends TestCase
98
{
@@ -17,8 +16,8 @@ public function it_saves_component_file_with_specified_name()
1716
$this->assertFileNotExists($file);
1817

1918
Artisan::call('vueg:component', [
20-
'name' => 'NewComponent',
21-
'--empty' => true
19+
'name' => 'NewComponent',
20+
'--empty' => true,
2221
]);
2322

2423
$this->assertFileExists($file);
@@ -34,8 +33,8 @@ public function it_generates_an_empty_component_file()
3433
$this->assertFileNotExists($file);
3534

3635
Artisan::call('vueg:component', [
37-
'name' => 'NewComponent',
38-
'--empty' => true
36+
'name' => 'NewComponent',
37+
'--empty' => true,
3938
]);
4039

4140
$this->assertFileEquals(__DIR__.'/../src/Stubs/EmptyComponent.vue', $file);
@@ -51,7 +50,7 @@ public function it_generates_a_filled_component_file()
5150
$this->assertFileNotExists($file);
5251

5352
Artisan::call('vueg:component', [
54-
'name' => 'NewComponent'
53+
'name' => 'NewComponent',
5554
]);
5655

5756
$this->assertFileEquals(__DIR__.'/../src/Stubs/Component.vue', $file);
@@ -67,8 +66,8 @@ public function it_saves_component_file_to_specified_path()
6766
$this->assertFileNotExists($file);
6867

6968
Artisan::call('vueg:component', [
70-
'name' => 'NewComponent',
71-
'--path' => 'custom.path'
69+
'name' => 'NewComponent',
70+
'--path' => 'custom.path',
7271
]);
7372

7473
$this->assertFileExists($file);
@@ -84,8 +83,8 @@ public function it_saves_mixin_file_with_specified_name()
8483
$this->assertFileNotExists($file);
8584

8685
Artisan::call('vueg:mixin', [
87-
'name' => 'NewMixin',
88-
'--empty' => true
86+
'name' => 'NewMixin',
87+
'--empty' => true,
8988
]);
9089

9190
$this->assertFileExists($file);
@@ -101,8 +100,8 @@ public function it_generates_empty_mixin_file()
101100
$this->assertFileNotExists($file);
102101

103102
Artisan::call('vueg:mixin', [
104-
'name' => 'NewMixin',
105-
'--empty' => true
103+
'name' => 'NewMixin',
104+
'--empty' => true,
106105
]);
107106

108107
$this->assertFileEquals(__DIR__.'/../src/Stubs/EmptyMixin.js', $file);
@@ -134,8 +133,8 @@ public function it_saves_mixin_file_to_specified_path()
134133
$this->assertFileNotExists($file);
135134

136135
Artisan::call('vueg:mixin', [
137-
'name' => 'NewMixin',
138-
'--path' => 'custom.path'
136+
'name' => 'NewMixin',
137+
'--path' => 'custom.path',
139138
]);
140139

141140
$this->assertFileExists($file);

0 commit comments

Comments
 (0)