Passed
Branch master (d80fac)
by Christian
03:50
created
src/ExpressionLanguage/TokenStream.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -138,9 +138,9 @@
 block discarded – undo
138 138
      *
139 139
      * @param int   $offset
140 140
      * @param int   $length
141
-     * @param array $replacements
141
+     * @param \Symfony\Component\ExpressionLanguage\Token[] $replacements
142 142
      *
143
-     * @return \static
143
+     * @return TokenStream
144 144
      */
145 145
     public function splice($offset, $length, $replacements)
146 146
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@
 block discarded – undo
121 121
             throw new SyntaxError(
122 122
                 sprintf(
123 123
                     '%sUnexpected token "%s" of value "%s" ("%s" expected%s)',
124
-                    $message ? $message.'. ' : '',
124
+                    $message ? $message . '. ' : '',
125 125
                     $token->type,
126 126
                     $token->value,
127 127
                     $type,
Please login to merge, or discard this patch.
src/ExpressionLanguage/Lexer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
 
29 29
             if (preg_match('/[0-9]+(?:\.[0-9]+)?/A', $expression, $match, null, $cursor)) {
30 30
                 // numbers
31
-                $number = (float) $match[0];  // floats
31
+                $number = (float) $match[0]; // floats
32 32
                 if (ctype_digit($match[0]) && $number <= PHP_INT_MAX) {
33 33
                     $number = (int) $match[0]; // integers lower than the maximum
34 34
                 }
Please login to merge, or discard this patch.