Skip to content

Commit c8d957f

Browse files
tanhongitgithub-actions[bot]
authored andcommitted
Fix styling
1 parent 2cb1d3c commit c8d957f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/Actions/GenerateCommentAction.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
use Illuminate\Http\Request;
99
use Throwable;
1010

11-
use function Pest\Laravel\json;
12-
1311
class GenerateCommentAction
1412
{
1513
protected WebhookService $webhookService;
@@ -59,7 +57,7 @@ public function __invoke(Request $request, bool $validate = true): JsonResponse
5957
'success' => true,
6058
'message' => __('github-project::github-project.success.message'),
6159
'comment' => $comment,
62-
'execution_time' => round((microtime(true) - $startTime) * 1000, 2) . 'ms'
60+
'execution_time' => round((microtime(true) - $startTime) * 1000, 2) . 'ms',
6361
]);
6462
} catch (\Exception $e) {
6563
return response()->json([
@@ -70,9 +68,9 @@ public function __invoke(Request $request, bool $validate = true): JsonResponse
7068
'type' => get_class($e),
7169
'file' => $e->getFile(),
7270
'line' => $e->getLine(),
73-
'trace' => explode("\n", $e->getTraceAsString())
71+
'trace' => explode("\n", $e->getTraceAsString()),
7472
],
75-
'execution_time' => round((microtime(true) - $startTime) * 1000, 2) . 'ms'
73+
'execution_time' => round((microtime(true) - $startTime) * 1000, 2) . 'ms',
7674
], 500);
7775
}
7876
}

0 commit comments

Comments
 (0)