Skip to content

Commit 338359c

Browse files
rozkladlene
authored andcommitted
fix phpcs violations
Signed-off-by: rozklad <jan.rozklad@gmail.com>
1 parent af3e750 commit 338359c

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

php/src/Traits/DecodableTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public static function decodeChar(string $char): string
113113
$charcode = mb_ord($char);
114114
$decoded = self::DECODING_TABLE[$charcode - 45];
115115
} catch (Exception $e) {
116-
throw new Exception('Char ' . $char . ' could not be decoded charcode: ' . $charcode . ' using index ' . ($charcode - 45));
116+
throw new Exception('Char could not be decoded');
117117
}
118118

119119
return $decoded;

php/src/Traits/EncodableTrait.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,12 @@
1313
trait EncodableTrait
1414
{
1515

16-
public static function encode(array $coordinates, int $precision = null, int $thirdDim = null, int $thirdDimPrecision = 0): string
17-
{
16+
public static function encode(
17+
array $coordinates,
18+
int $precision = null,
19+
int $thirdDim = null,
20+
int $thirdDimPrecision = 0
21+
): string {
1822
if (is_null($precision)) {
1923
$precision = self::DEFAULT_PRECISION;
2024
}

0 commit comments

Comments
 (0)