Completed
Branch master (061e7a)
by Emmanuel
02:31
created
src/Transform.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
101 101
      */
102 102
     protected function addRule($ruleName, $arguments)
103 103
     {
104
-        $ruleClass = "Inet\Transformation\Rule\\" . $ruleName;
104
+        $ruleClass = "Inet\Transformation\Rule\\".$ruleName;
105 105
         if (!class_exists($ruleClass)) {
106 106
             throw new InvalidRuleException("The rule '$ruleName' does not exist");
107 107
         }
Please login to merge, or discard this patch.
src/Rule/Callback.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
         unset($arguments[0]);
46 46
         // Functions is callable ?
47 47
         if (!is_callable($callable)) {
48
-            throw new TransformationException($callable . ' is not callable');
48
+            throw new TransformationException($callable.' is not callable');
49 49
         }
50 50
 
51 51
         // Transform it by calling the method and sending arguments
Please login to merge, or discard this patch.
src/Rule/Concat.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,6 +42,6 @@
 block discarded – undo
42 42
         $before = $arguments[0];
43 43
         $after = (array_key_exists(1, $arguments) ? $arguments[1] : '');
44 44
 
45
-        return $before . $input . $after;
45
+        return $before.$input.$after;
46 46
     }
47 47
 }
Please login to merge, or discard this patch.
src/Rule/ReplaceRegexp.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
         if (is_null($output)) {
59 59
             $pregErr = preg_last_error();
60 60
             $pregMsg = array_key_exists($pregErr, $this->pregErrs) ? $this->pregErrs[$pregErr] : 'Unknown error';
61
-            $msg = 'ReplaceRegexp was not able to transform your string: ' . $pregMsg;
61
+            $msg = 'ReplaceRegexp was not able to transform your string: '.$pregMsg;
62 62
             throw new TransformationException($msg);
63 63
         }
64 64
 
Please login to merge, or discard this patch.
src/Rule/NormalizeURL.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
         $pattern = '|^(?!'.$protocol.')(.+)$|';
50 50
         preg_match($pattern, $input, $matches);
51 51
         if (!empty($matches)) {
52
-            $input = $protocol . '://' . $input;
52
+            $input = $protocol.'://'.$input;
53 53
         }
54 54
 
55 55
         return $input;
Please login to merge, or discard this patch.