Skip to content

Commit

Permalink
Apply fixes from StyleCI (#132)
Browse files Browse the repository at this point in the history
Co-authored-by: Eric Tucker <[email protected]>
  • Loading branch information
Tucker-Eric and Tucker-Eric authored Sep 7, 2020
1 parent 3749243 commit fe52f96
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Commands/MakeEloquentFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,15 @@ public function compileStub()
{
if ($this->files->exists($path = $this->getPath())) {
$this->error("\n\n\t".$path.' Already Exists!'."\n");
die;
exit;
}
$this->makeDirectory($path);

$stubPath = config('eloquentfilter.generator.stub', __DIR__.'/../stubs/modelfilter.stub');

if (! $this->files->exists($stubPath) || ! is_readable($stubPath)) {
$this->error(sprintf('File "%s" does not exist or is unreadable.', $stubPath));
die;
exit;
}

$tmp = $this->applyValuesToStub($this->files->get($stubPath));
Expand Down Expand Up @@ -141,7 +141,7 @@ public function makeClassName()

if (class_exists($fqClass)) {
$this->error("\n\n\t$fqClass Already Exists!\n");
die;
exit;
}

$this->setClassName($fqClass);
Expand Down

0 comments on commit fe52f96

Please sign in to comment.