@@ -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); |
@@ -352,7 +352,7 @@ discard block |
||
352 | 352 | } |
353 | 353 | |
354 | 354 | if (!isset($options['format']) && isset($options['before'])) { |
355 | - $str = str_replace($options['escape'] . $options['before'], $options['before'], $str); |
|
355 | + $str = str_replace($options['escape'].$options['before'], $options['before'], $str); |
|
356 | 356 | } |
357 | 357 | |
358 | 358 | return $options['clean'] ? static::cleanInsert($str, $options) : $str; |
@@ -383,7 +383,7 @@ discard block |
||
383 | 383 | } |
384 | 384 | switch ($clean['method']) { |
385 | 385 | case 'html': |
386 | - $clean += [ |
|
386 | + $clean += [ |
|
387 | 387 | 'word' => '[\w,.]+', |
388 | 388 | 'andText' => true, |
389 | 389 | 'replacement' => '', |
@@ -394,7 +394,7 @@ discard block |
||
394 | 394 | $clean['word'], |
395 | 395 | preg_quote($options['after'], '/') |
396 | 396 | ); |
397 | - $str = preg_replace($kleenex, $clean['replacement'], $str); |
|
397 | + $str = preg_replace($kleenex, $clean['replacement'], $str); |
|
398 | 398 | if ($clean['andText']) { |
399 | 399 | $options['clean'] = ['method' => 'text']; |
400 | 400 | $str = static::cleanInsert($str, $options); |
@@ -418,7 +418,7 @@ discard block |
||
418 | 418 | $clean['word'], |
419 | 419 | preg_quote($options['after'], '/') |
420 | 420 | ); |
421 | - $str = preg_replace($kleenex, $clean['replacement'], $str); |
|
421 | + $str = preg_replace($kleenex, $clean['replacement'], $str); |
|
422 | 422 | break; |
423 | 423 | } |
424 | 424 | |
@@ -536,7 +536,7 @@ discard block |
||
536 | 536 | $tmpOffset += 1; |
537 | 537 | $offset = $tmpOffset; |
538 | 538 | } else { |
539 | - $results[] = $buffer . mb_substr($data, $offset); |
|
539 | + $results[] = $buffer.mb_substr($data, $offset); |
|
540 | 540 | $offset = $length + 1; |
541 | 541 | } |
542 | 542 | } |
@@ -582,7 +582,7 @@ discard block |
||
582 | 582 | */ |
583 | 583 | public static function delimit(string $string, string $delimiter = '_'): string |
584 | 584 | { |
585 | - $result = mb_strtolower(preg_replace('/(?<=\\w)([A-Z])/', $delimiter . '\\1', $string)); |
|
585 | + $result = mb_strtolower(preg_replace('/(?<=\\w)([A-Z])/', $delimiter.'\\1', $string)); |
|
586 | 586 | return $result; |
587 | 587 | } |
588 | 588 | |
@@ -600,7 +600,7 @@ discard block |
||
600 | 600 | { |
601 | 601 | $result = explode(' ', str_replace($delimiter, ' ', $string)); |
602 | 602 | foreach ($result as &$word) { |
603 | - $word = mb_strtoupper(mb_substr($word, 0, 1)) . mb_substr($word, 1); |
|
603 | + $word = mb_strtoupper(mb_substr($word, 0, 1)).mb_substr($word, 1); |
|
604 | 604 | } |
605 | 605 | $result = implode(' ', $result); |
606 | 606 | return $result; |
@@ -632,7 +632,7 @@ discard block |
||
632 | 632 | { |
633 | 633 | $camelized = static::camelize(static::underscore($string)); |
634 | 634 | $replace = strtolower(substr($camelized, 0, 1)); |
635 | - $result = $replace . substr($camelized, 1); |
|
635 | + $result = $replace.substr($camelized, 1); |
|
636 | 636 | return $result; |
637 | 637 | } |
638 | 638 | } |