Skip to content

Commit d45bbac

Browse files
author
Jad Joubran
committed
merged conflict
2 parents d4c0305 + 1f68c38 commit d45bbac

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

app/Console/Commands/AngularFeature.php

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
use Illuminate\Console\Command;
66
use File;
77

8-
class AngularFeature extends Command{
9-
8+
class AngularFeature extends Command
9+
{
1010
/**
1111
* The name and signature of the console command.
1212
* @var string
@@ -23,21 +23,23 @@ class AngularFeature extends Command{
2323
* Create a new command instance.
2424
* @return void
2525
*/
26-
public function __construct(){
26+
public function __construct()
27+
{
2728
parent::__construct();
2829
}
2930

3031
/**
3132
* Execute the console command.
3233
* @return mixed
3334
*/
34-
public function handle(){
35+
public function handle()
36+
{
3537
$name = $this->argument('name');
3638
$studly_name = studly_case($name);
3739

38-
$html = file_get_contents(__DIR__ . '/Stubs/AngularFeature/feature.html.stub');
39-
$js = file_get_contents(__DIR__ . '/Stubs/AngularFeature/feature.js.stub');
40-
$less = file_get_contents(__DIR__ . '/Stubs/AngularFeature/feature.less.stub');
40+
$html = file_get_contents(__DIR__.'/Stubs/AngularFeature/feature.html.stub');
41+
$js = file_get_contents(__DIR__.'/Stubs/AngularFeature/feature.js.stub');
42+
$less = file_get_contents(__DIR__.'/Stubs/AngularFeature/feature.less.stub');
4143

4244
$html = str_replace('{{StudlyName}}', $studly_name, $html);
4345
$js = str_replace('{{StudlyName}}', $studly_name, $js);
@@ -53,13 +55,13 @@ public function handle(){
5355
File::makeDirectory($folder, 0775, true);
5456

5557
//create view (.html)
56-
File::put($folder . '/' . $name . '.html', $html);
58+
File::put($folder.'/'.$name.'.html', $html);
5759

5860
//create controller (.js)
59-
File::put($folder . '/' . $name . '.js', $js);
61+
File::put($folder.'/'.$name.'.js', $js);
6062

6163
//create less file (.less)
62-
\File::put($folder . '/' . $name . '.less', $less);
64+
File::put($folder.'/'.$name.'.less', $less);
6365

6466
$this->info('Feature created successfully.');
6567
}

0 commit comments

Comments
 (0)