From 640f23d87b579412b7db7fb3cf59638cb5acfc85 Mon Sep 17 00:00:00 2001 From: davert Date: Tue, 22 Oct 2024 02:25:21 +0300 Subject: [PATCH] fixed codestyle --- src/Playwright.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Playwright.php b/src/Playwright.php index bcfbe66..df36246 100644 --- a/src/Playwright.php +++ b/src/Playwright.php @@ -73,7 +73,9 @@ public function _before(TestInterface $test): void $this->testId = uniqid(); $this->currentTest = null; $this->testHasFailed = false; - $this->sendCommand('before', [ + $this->sendCommand( + 'before', + [ 'id' => $this->testId, 'title' => $test->getMetadata()->getName(), ], @@ -97,11 +99,10 @@ public function _after(TestInterface $test): void ], 'hook'); if ($this->currentTest) { - $this->debugSection('Test', $this->currentTest); if (isset($this->currentTest['artifacts'])) { - foreach ($this->currentTest['artifacts'] as $artifact => $file) { + foreach ($this->currentTest['artifacts'] as $artifact => $file) { $test->getMetadata()->addReport($artifact, $file); } }