| @@ -92,8 +92,8 @@ discard block | ||
| 92 | 92 | 'stdClass' => [new \stdClass()], | 
| 93 | 93 | __CLASS__ => [$this], | 
| 94 | 94 | |
| 95 | - 'string: ' . ToString::class => [ToString::class, true], | |
| 96 | - 'string: ' . stdClass::class => [stdClass::class, true], | |
| 95 | + 'string: '.ToString::class => [ToString::class, true], | |
| 96 | + 'string: '.stdClass::class => [stdClass::class, true], | |
| 97 | 97 | 'non string as `$obj` arg' => [new stdClass(), true], | 
| 98 | 98 | ]; | 
| 99 | 99 | } | 
| @@ -126,7 +126,7 @@ discard block | ||
| 126 | 126 | 'double' => [1.9999], | 
| 127 | 127 | 'string' => ['str'], | 
| 128 | 128 | ToString::class => [new ToString()], | 
| 129 | - 'string: ' . ToString::class => [ToString::class, true], | |
| 129 | + 'string: '.ToString::class => [ToString::class, true], | |
| 130 | 130 | ]; | 
| 131 | 131 | } | 
| 132 | 132 | |
| @@ -136,7 +136,7 @@ discard block | ||
| 136 | 136 | 'array' => [[]], | 
| 137 | 137 | 'stdClass' => [new \stdClass()], | 
| 138 | 138 | __CLASS__ => [$this], | 
| 139 | - 'string: ' . stdClass::class => [stdClass::class, true], | |
| 139 | + 'string: '.stdClass::class => [stdClass::class, true], | |
| 140 | 140 | ]; | 
| 141 | 141 | } | 
| 142 | 142 | |
| @@ -171,18 +171,18 @@ discard block | ||
| 171 | 171 | public function methodIsProvider(): array | 
| 172 | 172 |      { | 
| 173 | 173 | return [ | 
| 174 | - [true, (bool) true, [true, false]], | |
| 175 | - [false, (bool) false, [true, false, 0]], | |
| 176 | - [true, (int) 123, [11, 0, -34]], | |
| 177 | - [false, (int) 123, [11, 0, -34.456]], | |
| 178 | - [true, (float) 1.23, [11.0, 0.0, -34.6]], | |
| 179 | - [false, (float) 1.23, [11.0, 0, -34.4]], | |
| 180 | - [true, (string) '', ['', '0', 'i am not a string']], | |
| 181 | - [false, (string) '', [11.2, '0', true]], | |
| 182 | - [true, null, [null, null]], | |
| 183 | - [false, null, [[], null, false]], | |
| 184 | - [true, new stdClass(), [new stdClass(), new stdClass()]], | |
| 185 | - [false, new stdClass(), [[], new stdClass(), true]], | |
| 174 | + [true, (bool) true, [true, false]], | |
| 175 | + [false, (bool) false, [true, false, 0]], | |
| 176 | + [true, (int) 123, [11, 0, -34]], | |
| 177 | + [false, (int) 123, [11, 0, -34.456]], | |
| 178 | + [true, (float) 1.23, [11.0, 0.0, -34.6]], | |
| 179 | + [false, (float) 1.23, [11.0, 0, -34.4]], | |
| 180 | + [true, (string) '', ['', '0', 'i am not a string']], | |
| 181 | + [false, (string) '', [11.2, '0', true]], | |
| 182 | + [true, null, [null, null]], | |
| 183 | + [false, null, [[], null, false]], | |
| 184 | + [true, new stdClass(), [new stdClass(), new stdClass()]], | |
| 185 | + [false, new stdClass(), [[], new stdClass(), true]], | |
| 186 | 186 | ]; | 
| 187 | 187 | } | 
| 188 | 188 | |
| @@ -197,18 +197,18 @@ discard block | ||
| 197 | 197 | public function methodIsInProvider(): array | 
| 198 | 198 |      { | 
| 199 | 199 | return [ | 
| 200 | - [true, (bool) true, [true, false, 1, 'string']], | |
| 201 | - [false, (bool) false, ['true', 'false', 0, 1]], | |
| 202 | - [true, (int) 123, [11, 0, -34]], | |
| 203 | - [false, (int) 123, [11.2, '0', true]], | |
| 204 | - [true, (float) 1.23, [11, 0.5, -34]], | |
| 205 | - [false, (float) 1.23, [11, '0', true]], | |
| 206 | - [true, (string) '', [11, '0', -34]], | |
| 207 | - [false, (string) '', [11.2, 0, true]], | |
| 208 | - [true, null, [null, true, 4]], | |
| 209 | - [false, null, [[], 'null', false]], | |
| 210 | - [true, new stdClass(), [new stdClass(), new A(), 0]], | |
| 211 | - [false, new stdClass(), [[], 'stdClass', true]], | |
| 200 | + [true, (bool) true, [true, false, 1, 'string']], | |
| 201 | + [false, (bool) false, ['true', 'false', 0, 1]], | |
| 202 | + [true, (int) 123, [11, 0, -34]], | |
| 203 | + [false, (int) 123, [11.2, '0', true]], | |
| 204 | + [true, (float) 1.23, [11, 0.5, -34]], | |
| 205 | + [false, (float) 1.23, [11, '0', true]], | |
| 206 | + [true, (string) '', [11, '0', -34]], | |
| 207 | + [false, (string) '', [11.2, 0, true]], | |
| 208 | + [true, null, [null, true, 4]], | |
| 209 | + [false, null, [[], 'null', false]], | |
| 210 | + [true, new stdClass(), [new stdClass(), new A(), 0]], | |
| 211 | + [false, new stdClass(), [[], 'stdClass', true]], | |
| 212 | 212 | ]; | 
| 213 | 213 | } | 
| 214 | 214 | |
| @@ -57,6 +57,6 @@ | ||
| 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 | } | 
| @@ -57,6 +57,6 @@ | ||
| 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 | } | 
| @@ -78,6 +78,6 @@ | ||
| 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 | } | 
| @@ -80,7 +80,7 @@ | ||
| 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 { | 
| @@ -93,7 +93,7 @@ | ||
| 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); | 
| @@ -108,20 +108,20 @@ discard block | ||
| 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 | ||
| 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 | ||
| 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 { | 
| @@ -19,4 +19,4 @@ | ||
| 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'); | |
| @@ -73,7 +73,7 @@ | ||
| 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); |