Passed
Pull Request — master (#144)
by
unknown
10:06
created
src/IntString.php 2 patches
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@
 block discarded – undo
115 115
             throw new InvalidArgumentException($msg, 1, $e);
116 116
         }
117 117
 
118
-        $stringValue = ltrim($obj, "${intValue}");
118
+        $stringValue = ltrim($obj, "${intvalue}");
119 119
 
120 120
         // Validate that 0 (zero) is not interpreted as '' (empty string)
121 121
         if ($stringValue === $obj) {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
         if (!typeof($stringValue)->canBeString()) {
51 51
             $args = [
52 52
                 'position' => '2nd',
53
-                'expected' => typeof('string') . '", "' . typeof(null) . '" or "any object convertible to string',
53
+                'expected' => typeof('string').'", "'.typeof(null).'" or "any object convertible to string',
54 54
                 'actual'   => typeof($stringValue),
55 55
             ];
56 56
 
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
      */
155 155
     public function toString(): string
156 156
     {
157
-        return $this->getIntValue() . $this->getStringValue();
157
+        return $this->getIntValue().$this->getStringValue();
158 158
     }
159 159
 
160 160
     /**
Please login to merge, or discard this patch.
tests/DataProviders/ExampleClass/ToString.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,6 +57,6 @@
 block discarded – undo
57 57
      */
58 58
     public function toString()
59 59
     {
60
-        return $this->x . ', ' . $this->y;
60
+        return $this->x.', '.$this->y;
61 61
     }
62 62
 }
Please login to merge, or discard this patch.
tests/DataProviders/ExampleClass/WithSomeMethodsClass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,6 +57,6 @@
 block discarded – undo
57 57
             return 'string';
58 58
         }
59 59
 
60
-        throw new BadMethodCallException($name . ' method do not exists.');
60
+        throw new BadMethodCallException($name.' method do not exists.');
61 61
     }
62 62
 }
Please login to merge, or discard this patch.
tests/Helpers/ImplementsIConvertibleToString.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,6 +78,6 @@
 block discarded – undo
78 78
         /** @var TestCase $this */
79 79
         $this->assertSame($expected, $obj->toString(), 'Failed explicit conversion to string');
80 80
 
81
-        $this->assertSame($expected, $obj . '', 'Failed implicit conversion to string');
81
+        $this->assertSame($expected, $obj.'', 'Failed implicit conversion to string');
82 82
     }
83 83
 }
Please login to merge, or discard this patch.
tests/Helpers/ExporterPlugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
                         if (is_object($value)) {
81 81
                             $sclass = static::getClass($value, $short);
82 82
 
83
-                            $sVal = $sclass . '({...})';
83
+                            $sVal = $sclass.'({...})';
84 84
                         } elseif (is_array($value)) {
85 85
                             $sVal = '[...]';
86 86
                         } else {
Please login to merge, or discard this patch.
tests/TestCase/VersionTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
93 93
             ]
94 94
         );
95 95
 
96
-        $this->assertIsBool($actual, $message . ' # Should return a boolean #');
96
+        $this->assertIsBool($actual, $message.' # Should return a boolean #');
97 97
 
98 98
         if ($expected === true) {
99 99
             $this->assertTrue($actual, $message);
Please login to merge, or discard this patch.
tests/TestCase/VersionComponentTest.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -108,20 +108,20 @@  discard block
 block discarded – undo
108 108
 
109 109
         foreach ($actuals as $method => $actual) {
110 110
             // Pre-tests for returning type
111
-            $this->assertIsBool($actual, $messages[$method] . ' # Should return a boolean #');
111
+            $this->assertIsBool($actual, $messages[$method].' # Should return a boolean #');
112 112
         }
113 113
 
114 114
         // Pre-tests for different values
115 115
         $this->assertNotEquals(
116 116
             $actuals['isDefault'],
117 117
             $actuals['isNotDefault'],
118
-            $messages['isDefault'] . PHP_EOL . $messages['isNotDefault']
118
+            $messages['isDefault'].PHP_EOL.$messages['isNotDefault']
119 119
         );
120 120
 
121 121
         $this->assertNotEquals(
122 122
             $actuals['isNull'],
123 123
             $actuals['isNotNull'],
124
-            $messages['isNull'] . PHP_EOL . $messages['isNotNull']
124
+            $messages['isNull'].PHP_EOL.$messages['isNotNull']
125 125
         );
126 126
 
127 127
 
@@ -133,8 +133,8 @@  discard block
 block discarded – undo
133 133
             $this->assertNotEquals(
134 134
                 $actuals['isNull'],
135 135
                 $actuals['isDefault'],
136
-                '#Can\'t be both, DEFAULT and NULL, at the same time' . PHP_EOL .
137
-                $messages['isDefault'] . PHP_EOL .
136
+                '#Can\'t be both, DEFAULT and NULL, at the same time'.PHP_EOL.
137
+                $messages['isDefault'].PHP_EOL.
138 138
                 $messages['isNull']
139 139
             );
140 140
         } elseif ($expected === 'null') {
@@ -144,8 +144,8 @@  discard block
 block discarded – undo
144 144
             $this->assertNotEquals(
145 145
                 $actuals['isNull'],
146 146
                 $actuals['isDefault'],
147
-                '#Can\'t be both, NULL and DEFAULT, at the same time' . PHP_EOL .
148
-                $messages['isNull'] . PHP_EOL .
147
+                '#Can\'t be both, NULL and DEFAULT, at the same time'.PHP_EOL.
148
+                $messages['isNull'].PHP_EOL.
149 149
                 $messages['isDefault']
150 150
             );
151 151
         } else {
Please login to merge, or discard this patch.
config/bootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,4 +19,4 @@
 block discarded – undo
19 19
  * */
20 20
 
21 21
 // Set the path of translations
22
-bindtextdomain(NML_GETTEXT_DOMAIN, __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'Locale');
22
+bindtextdomain(NML_GETTEXT_DOMAIN, __DIR__.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'Locale');
Please login to merge, or discard this patch.
src/VersionComponent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
                         $middle = '([a-z]|[0-9]|-)*';
74 74
                         $end    = '([a-z]|[0-9])$~';
75 75
 
76
-                        $pattern = $start . $middle . $end;
76
+                        $pattern = $start.$middle.$end;
77 77
                     }
78 78
 
79 79
                     $correct = (bool) preg_match($pattern, $stringValue);
Please login to merge, or discard this patch.