summaryrefslogtreecommitdiff
path: root/app/Api/Action.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-10-17 10:09:03 -0400
committerFrederic Guillot <fred@kanboard.net>2015-10-17 10:09:03 -0400
commit8c532efd5f02f7a7e5ea322a07ddcf49d130a8ec (patch)
tree289222e21420b8d0092f06de097090f179202f6b /app/Api/Action.php
parentb40190ee9fd557d86e594208ed77fa762c7dcfb7 (diff)
Run php-cs-fixer on the code base
Diffstat (limited to 'app/Api/Action.php')
-rw-r--r--app/Api/Action.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/app/Api/Action.php b/app/Api/Action.php
index eab20a6c..0ae91f10 100644
--- a/app/Api/Action.php
+++ b/app/Api/Action.php
@@ -35,10 +35,9 @@ class Action extends \Kanboard\Core\Base
$actions = $this->action->getAllByProject($project_id);
foreach ($actions as $index => $action) {
-
$params = array();
- foreach($action['params'] as $param) {
+ foreach ($action['params'] as $param) {
$params[$param['name']] = $param['value'];
}
@@ -57,7 +56,7 @@ class Action extends \Kanboard\Core\Base
'params' => $params,
);
- list($valid,) = $this->action->validateCreation($values);
+ list($valid, ) = $this->action->validateCreation($values);
if (! $valid) {
return false;
@@ -80,14 +79,14 @@ class Action extends \Kanboard\Core\Base
$required_params = $action->getActionRequiredParameters();
// Check missing parameters
- foreach($required_params as $param => $value) {
+ foreach ($required_params as $param => $value) {
if (! isset($params[$param])) {
return false;
}
}
// Check extra parameters
- foreach($params as $param => $value) {
+ foreach ($params as $param => $value) {
if (! isset($required_params[$param])) {
return false;
}