Skip to content

Commit ff0152e

Browse files
nikophilkbond
authored andcommitted
bot: fix cs [skip ci]
1 parent 5105bdb commit ff0152e

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

src/Browser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ final public function use(callable $callback): self
409409
final public function saveSource(string $filename): self
410410
{
411411
if ($this->sourceDir) {
412-
$filename = \sprintf('%s/%s', \mb_rtrim($this->sourceDir, '/'), \mb_ltrim($filename, '/'));
412+
$filename = \sprintf('%s/%s', mb_rtrim($this->sourceDir, '/'), mb_ltrim($filename, '/'));
413413
}
414414

415415
(new Filesystem())->dumpFile($this->savedSources[] = $filename, $this->session()->source($this->sourceDebug));

src/Browser/Json.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ public function decoded()
167167
return $this->decoded;
168168
}
169169

170-
if ('' === \mb_trim($this->source)) {
170+
if ('' === mb_trim($this->source)) {
171171
return null;
172172
}
173173

src/Browser/PantherBrowser.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ final public function pause(): self
149149
final public function takeScreenshot(string $filename): self
150150
{
151151
if ($this->screenshotDir) {
152-
$filename = \sprintf('%s/%s', \mb_rtrim($this->screenshotDir, '/'), \mb_ltrim($filename, '/'));
152+
$filename = \sprintf('%s/%s', mb_rtrim($this->screenshotDir, '/'), mb_ltrim($filename, '/'));
153153
}
154154

155155
$this->client()->takeScreenshot($this->savedScreenshots[] = $filename);
@@ -160,7 +160,7 @@ final public function takeScreenshot(string $filename): self
160160
final public function saveConsoleLog(string $filename): self
161161
{
162162
if ($this->consoleLogDir) {
163-
$filename = \sprintf('%s/%s', \mb_rtrim($this->consoleLogDir, '/'), \mb_ltrim($filename, '/'));
163+
$filename = \sprintf('%s/%s', mb_rtrim($this->consoleLogDir, '/'), mb_ltrim($filename, '/'));
164164
}
165165

166166
$log = $this->client()->manage()->getLog('browser');

src/Browser/Session/Driver/BrowserKitDriver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ public function getTagName($xpath): string
215215

216216
public function getText($xpath): string
217217
{
218-
return \mb_trim($this->getFilteredCrawler($xpath)->text(null, true));
218+
return mb_trim($this->getFilteredCrawler($xpath)->text(null, true));
219219
}
220220

221221
public function getHtml($xpath): string

src/Browser/Session/Driver/PantherDriver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function getText($xpath): string
8989
return $this->client()->getTitle();
9090
}
9191

92-
return \mb_trim($crawler->text(null, true));
92+
return mb_trim($crawler->text(null, true));
9393
}
9494

9595
/**
@@ -237,7 +237,7 @@ public function executeScript($script): void
237237

238238
public function evaluateScript($script)
239239
{
240-
if (0 !== \mb_strpos(\mb_trim($script), 'return ')) {
240+
if (0 !== \mb_strpos(mb_trim($script), 'return ')) {
241241
$script = 'return '.$script;
242242
}
243243

0 commit comments

Comments
 (0)