Test Setup Failed
Push — master ( dae5b9...d54cec )
by Martijn
02:12
created
src/Vanderlee/Comprehend/Parser/Stub.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
     public function __toString()
58 58
     {
59 59
         /** @noinspection HtmlUnknownTag */
60
-        return $this->parser ? (string)$this->parser : '<undefined>';
60
+        return $this->parser ? (string) $this->parser : '<undefined>';
61 61
     }
62 62
 
63 63
 }
Please login to merge, or discard this patch.
src/Vanderlee/Comprehend/Parser/Terminal/Set.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
         }
39 39
 
40 40
         $this->set     = count_chars($set, 3);
41
-        $this->include = (bool)$include;
41
+        $this->include = (bool) $include;
42 42
     }
43 43
 
44 44
     protected function parse(&$input, $offset, Context $context)
Please login to merge, or discard this patch.
src/Vanderlee/Comprehend/Parser/Terminal/Range.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
 
28 28
         $this->first = $first === null ? null : self::parseCharacter($first);
29 29
         $this->last  = $last === null ? null : self::parseCharacter($last);
30
-        $this->in    = (bool)$in;
30
+        $this->in    = (bool) $in;
31 31
     }
32 32
 
33 33
     protected function parse(&$input, $offset, Context $context)
Please login to merge, or discard this patch.
src/Vanderlee/Comprehend/Parser/Terminal/Regex.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
 
51 51
     public function __toString()
52 52
     {
53
-        return (string)$this->pattern;
53
+        return (string) $this->pattern;
54 54
     }
55 55
 
56 56
 }
Please login to merge, or discard this patch.
src/Vanderlee/Comprehend/Parser/Structure/Sequence.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         $total = 0;
33 33
         /** @var Parser $parser */
34 34
         foreach ($this->parsers as $parser) {
35
-           if ($total > 0) {
35
+            if ($total > 0) {
36 36
                 $skip = $context->skipSpacing($input, $offset + $total);
37 37
                 if ($skip === false) {
38 38
                     return $this->failure($input, $offset, $total);
Please login to merge, or discard this patch.
src/Vanderlee/Comprehend/Parser/Output/ResultTrait.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      */
33 33
     public function setResult($key = null, $value = null)
34 34
     {
35
-        $this->resultCallbacks[] = function (&$results, $text) use (&$key, &$value) {
35
+        $this->resultCallbacks[] = function(&$results, $text) use (&$key, &$value) {
36 36
             if (is_callable($value)) {
37 37
                 $text = $value($text);
38 38
             } elseif ($value !== null) {
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      */
56 56
     public function concatResult($key = null, $value = null)
57 57
     {
58
-        $this->resultCallbacks[] = function (&$results, $text) use (&$key, &$value) {
58
+        $this->resultCallbacks[] = function(&$results, $text) use (&$key, &$value) {
59 59
             if (is_callable($value)) {
60 60
                 $text = $value($text);
61 61
             } elseif ($value !== null) {
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
             }
64 64
 
65 65
             if (!isset($results[$key])) {
66
-                $results[$key] = (string)$text;
66
+                $results[$key] = (string) $text;
67 67
             } elseif (is_array($results[$key])) {
68 68
                 $results[$key][] = array_pop($results[$key]) . $text;
69 69
             } else {
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      */
84 84
     public function pushResult($key = null, $value = null)
85 85
     {
86
-        $this->resultCallbacks[] = function (&$results, $text) use (&$key, &$value) {
86
+        $this->resultCallbacks[] = function(&$results, $text) use (&$key, &$value) {
87 87
             if (is_callable($value)) {
88 88
                 $text = $value($text);
89 89
             } elseif ($value !== null) {
Please login to merge, or discard this patch.
src/Vanderlee/Comprehend/Parser/Output/AssignTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
      */
37 37
     public function assignTo(&$variable)
38 38
     {
39
-        $this->assignCallbacks[] = function ($text) use (&$variable) {
39
+        $this->assignCallbacks[] = function($text) use (&$variable) {
40 40
             $variable = $text;
41 41
         };
42 42
 
Please login to merge, or discard this patch.
src/Vanderlee/Comprehend/Match/Match.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
      * @param mixed $default
70 70
      * @return mixed
71 71
      */
72
-    public function getResult($name =  null, $default = null)
72
+    public function getResult($name = null, $default = null)
73 73
     {
74 74
         return $default;
75 75
     }
Please login to merge, or discard this patch.
src/Vanderlee/Comprehend/Core/Context/CaseSensitiveContextTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 
9 9
     public function pushCaseSensitivity($case_sensitive = true)
10 10
     {
11
-        array_push($this->case_sensitivity, (bool)$case_sensitive);
11
+        array_push($this->case_sensitivity, (bool) $case_sensitive);
12 12
     }
13 13
 
14 14
     public function popCaseSensitivity()
Please login to merge, or discard this patch.