File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 88use Illuminate \Http \Request ;
99use Throwable ;
1010
11- use function Pest \Laravel \json ;
12-
1311class 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 }
You can’t perform that action at this time.
0 commit comments