Skip to content

Commit

Permalink
cs
Browse files Browse the repository at this point in the history
  • Loading branch information
uyab committed Jun 12, 2016
1 parent 05a37e1 commit 32703c7
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 3 deletions.
Empty file modified composer.json
100755 → 100644
Empty file.
Empty file modified readme.md
100755 → 100644
Empty file.
Empty file modified skeleton/README.md
100755 → 100644
Empty file.
Empty file modified skeleton/composer.json
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion skeleton/config/config.php
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
return [
// automatic loading of routes through main service provider
'routes' => true
];
];
Empty file modified skeleton/src/ServiceProvider.php
100755 → 100644
Empty file.
5 changes: 3 additions & 2 deletions src/PackerHelper.php
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use RuntimeException;
use Illuminate\Filesystem\Filesystem;
use Symfony\Component\Console\Helper\ProgressBar;

/**
* Helper functions for the Packager commands.
Expand Down Expand Up @@ -34,7 +35,7 @@ public function __construct(Filesystem $files)
* @param object $bar Symfony ProgressBar instance
* @return object $bar Symfony ProgressBar instance
*/
public function barSetup($bar)
public function barSetup(ProgressBar $bar)
{
// the finished part of the bar
$bar->setBarCharacter('<comment>=</comment>');
Expand All @@ -61,7 +62,7 @@ public function barSetup($bar)
*/
public function replaceAndSave($oldFile, $search, $replace, $newFile = null)
{
$newFile = ($newFile == null) ? $oldFile : $newFile ;
$newFile = ($newFile === null) ? $oldFile : $newFile ;
$file = $this->files->get($oldFile);
$replacing = str_replace($search, $replace, $file);
$this->files->put($newFile, $replacing);
Expand Down
Empty file modified src/PackerNewCommand.php
100755 → 100644
Empty file.
Empty file modified src/PackerServiceProvider.php
100755 → 100644
Empty file.

0 comments on commit 32703c7

Please sign in to comment.