Skip to content

Commit 7788806

Browse files
committed
fix coding style
1 parent 81cd99e commit 7788806

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

Parser/Client/Browser.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,11 @@ public function parse(): ?array
370370
}
371371

372372
// This Exception should never be thrown. If so a defined browser name is missing in $availableBrowsers
373-
throw new \Exception(sprintf('Detected browser name "%s" was not found in $availableBrowsers. Tried to parse user agent: %s', $name, $this->userAgent)); // @codeCoverageIgnore
373+
throw new \Exception(sprintf(
374+
'Detected browser name "%s" was not found in $availableBrowsers. Tried to parse user agent: %s',
375+
$name,
376+
$this->userAgent
377+
)); // @codeCoverageIgnore
374378
}
375379

376380
/**

Parser/Client/Browser/Engine.php

Lines changed: 4 additions & 1 deletion
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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,13 @@ public function parse(): ?array
735735

736736
if (false === $brandId) {
737737
// This Exception should never be thrown. If so a defined brand name is missing in $deviceBrands
738-
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
738+
throw new \Exception(
739+
sprintf(
740+
"The brand name '%s' needs to be in deviceBrands array. Tried parsing user agent: %s",
741+
$brand,
742+
$this->userAgent
743+
)
744+
); // @codeCoverageIgnore
739745
}
740746

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

0 commit comments

Comments
 (0)