Skip to content

Commit

Permalink
php-cs-fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed Oct 5, 2015
1 parent 6f3e334 commit a96c530
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/goals/ComposerGoal.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public function init()
public function getNamespace()
{
$this->config->get('composer.json')->actionLoad();

return @trim(key($this->config->get('composer.json')->getFile()->get('autoload')['psr-4']), '\\');
}
}
2 changes: 1 addition & 1 deletion src/goals/ComposerJsonGoal.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public function getAuthors()

public function getAutoload()
{
$autoload = $this->rawItem('autoload');
$autoload = $this->rawItem('autoload');
$autoload['psr-4'] = [
$this->package->namespace . '\\' => $this->package->src,
];
Expand Down
1 change: 0 additions & 1 deletion src/goals/InitGoal.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

namespace hidev\goals;

use hidev\helpers\Helper;
use yii\base\InvalidParamException;

/**
Expand Down
1 change: 0 additions & 1 deletion src/goals/VendorGoal.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

namespace hidev\goals;

use Yii;
use hidev\helpers\Helper;

/**
Expand Down

0 comments on commit a96c530

Please sign in to comment.