@@ -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 | } |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | |
| 77 | 77 | case 'resource': |
| 78 | 78 | $shortName = get_resource_type($obj); |
| 79 | - $name = 'resource: ' . $shortName; |
|
| 79 | + $name = 'resource: '.$shortName; |
|
| 80 | 80 | break; |
| 81 | 81 | |
| 82 | 82 | default: |
@@ -295,8 +295,8 @@ discard block |
||
| 295 | 295 | $itHas = $this->reflectionObject->hasProperty($name); |
| 296 | 296 | |
| 297 | 297 | if (!$itHas && $includeMagic) { |
| 298 | - $pattern = '/\* @(?P<tag>property-read|property-write|property) +' . |
|
| 299 | - '(?P<types>([a-zA-Z]+[\[\]]*\|?)+) +(?P<property>\$' . $name . ') *(?P<description>.*)/'; |
|
| 298 | + $pattern = '/\* @(?P<tag>property-read|property-write|property) +'. |
|
| 299 | + '(?P<types>([a-zA-Z]+[\[\]]*\|?)+) +(?P<property>\$'.$name.') *(?P<description>.*)/'; |
|
| 300 | 300 | |
| 301 | 301 | $itHas = preg_match($pattern, $this->reflectionObject->getDocComment()) > 0; |
| 302 | 302 | } |
@@ -286,7 +286,7 @@ discard block |
||
| 286 | 286 | PropertyExtension::ensureIsDefined($name, $class, is_subclass_of($class, IMagicPropertiesContainer::class)); |
| 287 | 287 | |
| 288 | 288 | try { |
| 289 | - $setter = MethodExtension::ensureIsDefined($prefix . $name, $class); |
|
| 289 | + $setter = MethodExtension::ensureIsDefined($prefix.$name, $class); |
|
| 290 | 290 | } catch (InvalidArgumentException $error) { |
| 291 | 291 | if ($useCustom && is_subclass_of($class, ICustomPrefixedPropertiesContainer::class)) { |
| 292 | 292 | // If not available standard setter, check if custom available |
@@ -328,7 +328,7 @@ discard block |
||
| 328 | 328 | PropertyExtension::ensureIsDefined($name, $class, is_subclass_of($class, IMagicPropertiesContainer::class)); |
| 329 | 329 | |
| 330 | 330 | try { |
| 331 | - $getter = MethodExtension::ensureIsDefined($prefix . $name, $class); |
|
| 331 | + $getter = MethodExtension::ensureIsDefined($prefix.$name, $class); |
|
| 332 | 332 | } catch (InvalidArgumentException $error) { |
| 333 | 333 | if ($useCustom && is_subclass_of($class, ICustomPrefixedPropertiesContainer::class)) { |
| 334 | 334 | // If not available standard getter, check if custom available |
@@ -84,7 +84,7 @@ |
||
| 84 | 84 | } |
| 85 | 85 | } |
| 86 | 86 | |
| 87 | - return '{ ' . $type . ' }'; |
|
| 87 | + return '{ '.$type.' }'; |
|
| 88 | 88 | } |
| 89 | 89 | |
| 90 | 90 | /** |