Skip to content

Commit

Permalink
CS fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeroen committed Oct 30, 2018
1 parent b7f738a commit 0534bb2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Commands/NewPackage.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public function handle()
$this->wrapping->fill($this->conveyor->packagePath());

// Make sure to remove the rule files to avoid clutter.
if($manifest !== null) {
if ($manifest !== null) {
$this->conveyor->cleanUpRules();
}

Expand Down
2 changes: 1 addition & 1 deletion src/Commands/PublishPackage.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function handle()
$this->conveyor->vendor($this->argument('vendor'));
$this->conveyor->package($this->argument('name'));

$this->info('Initialising Git if not already done so...');
$this->info('Initialising Git if not already done so...');
if (! file_exists($this->conveyor->packagePath().'/.git/')) {
exec('cd '.$this->conveyor->packagePath().' && git init && git add --all && git commit -m "Initial commit"');
}
Expand Down
7 changes: 3 additions & 4 deletions src/FileHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,14 +173,13 @@ public function renameFiles($manifest = null)
}
}


public function cleanUpRules()
{
$ruleFiles = ['rules.php', 'rewriteRules.php'];

foreach($ruleFiles as $file) {
if(file_exists($this->packagePath(). '/' .$file)) {
unlink($this->packagePath(). '/' .$file);
foreach ($ruleFiles as $file) {
if (file_exists($this->packagePath().'/'.$file)) {
unlink($this->packagePath().'/'.$file);
}
}
}
Expand Down

0 comments on commit 0534bb2

Please sign in to comment.