Skip to content

Commit 0f08fdd

Browse files
committed
fix coding style
1 parent daa2146 commit 0f08fdd

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

Parser/Client/Browser.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,11 @@ public function parse(): ?array
357357
}
358358

359359
// This Exception should never be thrown. If so a defined browser name is missing in $availableBrowsers
360-
throw new \Exception(sprintf('Detected browser name "%s" was not found in $availableBrowsers. Tried to parse user agent: %s', $name, $this->userAgent)); // @codeCoverageIgnore
360+
throw new \Exception(sprintf(
361+
'Detected browser name "%s" was not found in $availableBrowsers. Tried to parse user agent: %s',
362+
$name,
363+
$this->userAgent
364+
)); // @codeCoverageIgnore
361365
}
362366

363367
/**

Parser/Client/Browser/Engine.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ public function parse(): ?array
8585
}
8686

8787
// This Exception should never be thrown. If so a defined browser name is missing in $availableEngines
88-
throw new \Exception(sprintf('Detected browser engine was not found in $availableEngines. Tried to parse user agent: %s', $this->userAgent)); // @codeCoverageIgnore
88+
throw new \Exception(sprintf(
89+
'Detected browser engine was not found in $availableEngines. Tried to parse user agent: %s',
90+
$this->userAgent
91+
)); // @codeCoverageIgnore
8992
}
9093
}

Parser/Device/AbstractDeviceParser.php

+7-1
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,13 @@ public function parse(): ?array
717717

718718
if (false === $brandId) {
719719
// This Exception should never be thrown. If so a defined brand name is missing in $deviceBrands
720-
throw new \Exception(sprintf("The brand with name '%s' should be listed in the deviceBrands array. Tried to parse user agent: %s", $brand, $this->userAgent)); // @codeCoverageIgnore
720+
throw new \Exception(
721+
sprintf(
722+
"The brand name '%s' needs to be in deviceBrands array. Tried parsing user agent: %s",
723+
$brand,
724+
$this->userAgent
725+
)
726+
); // @codeCoverageIgnore
721727
}
722728

723729
$this->brand = (string) $brandId;

0 commit comments

Comments
 (0)