Passed
Pull Request — master (#5)
by Radovan
01:51
created
src/Translator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 
56 56
     public function translate(string|Stringable $message, mixed ...$parameters): string
57 57
     {
58
-        $message = (string) $message;
58
+        $message = (string)$message;
59 59
 
60 60
         if (empty($message)) {
61 61
             return '';
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 
70 70
         // Plural option is returned, we need to choose the right one
71 71
         if (is_array($translation)) {
72
-            $plural = is_numeric($parameters[0] ?? null) ? $this->catalogue->plural((int) $parameters[0]) : Plural::Other;
72
+            $plural = is_numeric($parameters[0] ?? null) ? $this->catalogue->plural((int)$parameters[0]) : Plural::Other;
73 73
             $translation = $this->getVariant($message, $translation, $plural);
74 74
         }
75 75
 
Please login to merge, or discard this patch.