From e52a5d8353eabbce2f707ae6722433368964ee8d Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Wed, 4 Sep 2019 01:44:59 +0200 Subject: [PATCH] Apply fixes from StyleCI (#1867) [ci skip] [skip ci] --- .../core/src/Foundation/ErrorHandling/JsonApiFormatter.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/framework/core/src/Foundation/ErrorHandling/JsonApiFormatter.php b/framework/core/src/Foundation/ErrorHandling/JsonApiFormatter.php index 4196012e2..863c9cbe9 100644 --- a/framework/core/src/Foundation/ErrorHandling/JsonApiFormatter.php +++ b/framework/core/src/Foundation/ErrorHandling/JsonApiFormatter.php @@ -37,7 +37,9 @@ class JsonApiFormatter implements HttpFormatter $document->setErrors([$data]); } else { $document->setErrors(array_map( - function ($row) use ($data) { return array_merge($data, $row); }, + function ($row) use ($data) { + return array_merge($data, $row); + }, $details )); }