Skip to content

Commit d011aec

Browse files
hsuan1117actions-user
authored andcommitted
Fix styling
1 parent c55e357 commit d011aec

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Commands/LaravelRelationMakerCommand.php

+4-3
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ public function handle()
2222
// Check if relation function (likes "cars" or "car")
2323
if (method_exists($this->qualifyClass($modelA), strtolower($modelB)) || method_exists($this->qualifyClass($modelA), strtolower($modelB) . 's')) {
2424
$this->error('Method exists.');
25+
2526
return 1;
2627
}
2728

@@ -35,7 +36,7 @@ public function {{ modelName }}(){
3536
FUNC), $content);
3637
file_put_contents($this->getPath($this->qualifyClass($modelA)), $str);
3738
$this->info(' # Modified ' . $this->qualifyClass($modelA));
38-
// [/A1]
39+
// [/A1]
3940
} else {
4041
// Model A not exists => call parent create model files
4142
parent::handle();
@@ -116,10 +117,10 @@ public function {{ modelName }}(){
116117
## Normal ##
117118
############
118119
$arr = [];
119-
if (!file_exists($this->getPath($this->qualifyClass($modelA)))){
120+
if (! file_exists($this->getPath($this->qualifyClass($modelA)))) {
120121
array_push($arr, $modelA);
121122
}
122-
if (!file_exists($this->getPath($this->qualifyClass($modelB)))){
123+
if (! file_exists($this->getPath($this->qualifyClass($modelB)))) {
123124
array_push($arr, $modelB);
124125
}
125126

0 commit comments

Comments
 (0)