Skip to content

Commit

Permalink
[TASK] Use composer scripts in captainhook
Browse files Browse the repository at this point in the history
  • Loading branch information
sabbelasichon committed Nov 16, 2020
1 parent d466f04 commit ed1c524
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions captainhook.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@
"conditions": []
},
{
"action": "vendor/bin/ecs check --ansi",
"action": "composer run check-style",
"options": [],
"conditions": []
},
{
"action": "vendor/bin/rector rectify --dry-run --ansi",
"action": "composer run rector",
"options": [],
"conditions": []
},
{
"action": "vendor/bin/phpstan analyse --memory-limit=-1 --ansi --error-format symplify",
"action": "composer run analyze",
"options": [],
"conditions": []
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ private function addAdditionalArgumentIfNeeded(Node $node): ?Node
return null;
}

if (! $this->isMakeInstanceCall($node) && ! $this->isObjectMangerCall($node)) {
if (! $this->isMakeInstanceCall($node) && ! $this->isObjectManagerCall($node)) {
return null;
}

Expand All @@ -139,7 +139,7 @@ private function isMakeInstanceCall(Node $node): bool
return $this->isName($node->name, 'makeInstance');
}

private function isObjectMangerCall(Node $node): bool
private function isObjectManagerCall(Node $node): bool
{
if (! $node instanceof MethodCall) {
return false;
Expand Down

0 comments on commit ed1c524

Please sign in to comment.