@@ -115,7 +115,7 @@ |
||
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) { |
@@ -50,7 +50,7 @@ discard block |
||
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 |
||
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 | /** |
@@ -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); |