Passed
Push — master ( 7e8ee9...1a213b )
by Mariano
07:22
created
src/MatchResult.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      */
75 75
     public function getMatchAt($index)
76 76
     {
77
-        if (! isset($this->response[$index])) {
77
+        if (!isset($this->response[$index])) {
78 78
             throw new \OutOfBoundsException('Trying to access a match at an invalid index');
79 79
         }
80 80
 
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
 
95 95
     public function next()
96 96
     {
97
-        ++ $this->current;
97
+        ++$this->current;
98 98
     }
99 99
 
100 100
     public function key()
Please login to merge, or discard this patch.
src/PregFunctions/MatchFunctions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
         $pattern = $this->getPatternByType($pattern);
60 60
         $result = @preg_match($pattern, $subject, $matches, PREG_OFFSET_CAPTURE, $offset);
61 61
         $this->checkResultIsOkOrThrowException($result, $pattern);
62
-        return $result? new Match($matches) : null;
62
+        return $result ? new Match($matches) : null;
63 63
     }
64 64
 
65 65
     /**
Please login to merge, or discard this patch.
src/Match.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -112,9 +112,9 @@
 block discarded – undo
112 112
      */
113 113
     private function validateIndex($index)
114 114
     {
115
-        if (! isset($this->element[$index]) || $index == 0) {
115
+        if (!isset($this->element[$index]) || $index == 0) {
116 116
             throw new \OutOfBoundsException(
117
-                'Trying to access invalid submatch index ' . $index . 'in match: ' . $this->getFullMatch()
117
+                'Trying to access invalid submatch index '.$index.'in match: '.$this->getFullMatch()
118 118
             );
119 119
         }
120 120
     }
Please login to merge, or discard this patch.
src/PregFunctions/BaseTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
     {
14 14
         if ($result === false) {
15 15
             throw new \RuntimeException(
16
-                'An error occurred executing the pattern ' . var_export($pattern, true)
16
+                'An error occurred executing the pattern '.var_export($pattern, true)
17 17
             );
18 18
         }
19 19
     }
Please login to merge, or discard this patch.
src/Executor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
     {
82 82
         if ($result === false) {
83 83
             throw new \RuntimeException(
84
-                'An error occurred executing the pattern ' . var_export($pattern, true)
84
+                'An error occurred executing the pattern '.var_export($pattern, true)
85 85
             );
86 86
         }
87 87
     }
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
     {
97 97
         if ($result === null) {
98 98
             throw new \RuntimeException(
99
-                'An error occurred replacing the pattern ' . var_export($pattern, true)
99
+                'An error occurred replacing the pattern '.var_export($pattern, true)
100 100
             );
101 101
         }
102 102
     }
Please login to merge, or discard this patch.