Skip to content

Commit

Permalink
Use PHPCS for linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Anahkiasen committed Jul 10, 2016
1 parent 50ba623 commit 0eb5f52
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
},
"scripts": {
"test": "phpunit",
"lint": "php-cs-fixer fix -vvv",
"lint": "phpcs",
"build": "box build --verbose"
},
"bin": [
Expand Down
1 change: 1 addition & 0 deletions phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<arg name="colors"/>
<arg value="p"/>
<rule ref="vendor/escapestudios/symfony2-coding-standard/Symfony2">
<exclude name="Symfony2.Arrays.MultiLineArrayComma.Invalid" />
<exclude name="Symfony2.Commenting.ClassComment.Missing" />
<exclude name="Symfony2.Functions.ScopeOrder.Invalid" />
</rule>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function register()
$this->container->share(Coordinator::class)->withArgument($this->container);
$this->container->share(CredentialsGatherer::class)->withArgument($this->container);

$this->container->share(CredentialsHandler::class, function() {
$this->container->share(CredentialsHandler::class, function () {
$handler = new CredentialsHandler($this->container);
$handler->register(new ConnectionsKeychain());
$handler->register(new RepositoriesKeychain());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ public function __get($name)
public function __set($name, $value)
{
if (in_array($name, $this->informations, true)) {
return parent::__set($name, $value);
parent::__set($name, $value);
} else {
$this->attributes['servers'][$this->server][$name] = $value;
}

$this->attributes['servers'][$this->server][$name] = $value;
}

//////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit 0eb5f52

Please sign in to comment.