mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 23:45:10 +00:00
Reformat various code.
This commit is contained in:
@@ -60,21 +60,21 @@ class RuleTransformer extends AbstractTransformer
|
||||
$this->ruleRepository->setUser($rule->user);
|
||||
|
||||
return [
|
||||
'id' => (string)$rule->id,
|
||||
'created_at' => $rule->created_at->toAtomString(),
|
||||
'updated_at' => $rule->updated_at->toAtomString(),
|
||||
'rule_group_id' => (string)$rule->rule_group_id,
|
||||
'rule_group_title' => (string)$rule->ruleGroup->title,
|
||||
'title' => $rule->title,
|
||||
'description' => $rule->description,
|
||||
'order' => (int)$rule->order,
|
||||
'active' => $rule->active,
|
||||
'strict' => $rule->strict,
|
||||
'stop_processing' => $rule->stop_processing,
|
||||
'trigger' => $this->getRuleTrigger($rule),
|
||||
'triggers' => $this->triggers($rule),
|
||||
'actions' => $this->actions($rule),
|
||||
'links' => [
|
||||
'id' => (string) $rule->id,
|
||||
'created_at' => $rule->created_at->toAtomString(),
|
||||
'updated_at' => $rule->updated_at->toAtomString(),
|
||||
'rule_group_id' => (string) $rule->rule_group_id,
|
||||
'rule_group_title' => (string) $rule->ruleGroup->title,
|
||||
'title' => $rule->title,
|
||||
'description' => $rule->description,
|
||||
'order' => (int) $rule->order,
|
||||
'active' => $rule->active,
|
||||
'strict' => $rule->strict,
|
||||
'stop_processing' => $rule->stop_processing,
|
||||
'trigger' => $this->getRuleTrigger($rule),
|
||||
'triggers' => $this->triggers($rule),
|
||||
'actions' => $this->actions($rule),
|
||||
'links' => [
|
||||
[
|
||||
'rel' => 'self',
|
||||
'uri' => '/rules/' . $rule->id,
|
||||
@@ -121,7 +121,7 @@ class RuleTransformer extends AbstractTransformer
|
||||
continue;
|
||||
}
|
||||
$result[] = [
|
||||
'id' => (string)$ruleTrigger->id,
|
||||
'id' => (string) $ruleTrigger->id,
|
||||
'created_at' => $ruleTrigger->created_at->toAtomString(),
|
||||
'updated_at' => $ruleTrigger->updated_at->toAtomString(),
|
||||
'type' => $ruleTrigger->trigger_type,
|
||||
@@ -147,7 +147,7 @@ class RuleTransformer extends AbstractTransformer
|
||||
/** @var RuleAction $ruleAction */
|
||||
foreach ($actions as $ruleAction) {
|
||||
$result[] = [
|
||||
'id' => (string)$ruleAction->id,
|
||||
'id' => (string) $ruleAction->id,
|
||||
'created_at' => $ruleAction->created_at->toAtomString(),
|
||||
'updated_at' => $ruleAction->updated_at->toAtomString(),
|
||||
'type' => $ruleAction->action_type,
|
||||
|
Reference in New Issue
Block a user