@@ -26,6 +26,6 @@ |
||
26 | 26 | */ |
27 | 27 | public static function getDefaultArrayConfigurationPath() |
28 | 28 | { |
29 | - return dirname(__FILE__) . '/../resources/config/struct_array_reserved_keywords.yml'; |
|
29 | + return dirname(__FILE__).'/../resources/config/struct_array_reserved_keywords.yml'; |
|
30 | 30 | } |
31 | 31 | } |
@@ -18,6 +18,6 @@ |
||
18 | 18 | */ |
19 | 19 | public static function getDefaultConfigurationPath() |
20 | 20 | { |
21 | - return dirname(__FILE__) . '/../resources/config/struct_reserved_keywords.yml'; |
|
21 | + return dirname(__FILE__).'/../resources/config/struct_reserved_keywords.yml'; |
|
22 | 22 | } |
23 | 23 | } |
@@ -18,6 +18,6 @@ |
||
18 | 18 | */ |
19 | 19 | public static function getDefaultConfigurationPath() |
20 | 20 | { |
21 | - return dirname(__FILE__) . '/../resources/config/php_reserved_keywords.yml'; |
|
21 | + return dirname(__FILE__).'/../resources/config/php_reserved_keywords.yml'; |
|
22 | 22 | } |
23 | 23 | } |
@@ -18,6 +18,6 @@ |
||
18 | 18 | */ |
19 | 19 | public static function getDefaultConfigurationPath() |
20 | 20 | { |
21 | - return dirname(__FILE__) . '/../resources/config/service_reserved_keywords.yml'; |
|
21 | + return dirname(__FILE__).'/../resources/config/service_reserved_keywords.yml'; |
|
22 | 22 | } |
23 | 23 | } |
@@ -119,7 +119,7 @@ |
||
119 | 119 | */ |
120 | 120 | public static function getDefaultConfigurationPath() |
121 | 121 | { |
122 | - return dirname(__FILE__) . '/../resources/config/generator_options.yml'; |
|
122 | + return dirname(__FILE__).'/../resources/config/generator_options.yml'; |
|
123 | 123 | } |
124 | 124 | /** |
125 | 125 | * Get category option value |
@@ -398,15 +398,15 @@ discard block |
||
398 | 398 | { |
399 | 399 | if (PhpReservedKeyword::instance()->is($keyword)) { |
400 | 400 | if ($context !== null) { |
401 | - $keywordKey = $keyword . '_' . $context; |
|
401 | + $keywordKey = $keyword.'_'.$context; |
|
402 | 402 | if (!array_key_exists($keywordKey, self::$replacedPhpReservedKeywords)) { |
403 | 403 | self::$replacedPhpReservedKeywords[$keywordKey] = 0; |
404 | 404 | } else { |
405 | 405 | self::$replacedPhpReservedKeywords[$keywordKey]++; |
406 | 406 | } |
407 | - return '_' . $keyword . (self::$replacedPhpReservedKeywords[$keywordKey] ? '_' . self::$replacedPhpReservedKeywords[$keywordKey] : ''); |
|
407 | + return '_'.$keyword.(self::$replacedPhpReservedKeywords[$keywordKey] ? '_'.self::$replacedPhpReservedKeywords[$keywordKey] : ''); |
|
408 | 408 | } else { |
409 | - return '_' . $keyword; |
|
409 | + return '_'.$keyword; |
|
410 | 410 | } |
411 | 411 | } else { |
412 | 412 | return $keyword; |
@@ -433,15 +433,15 @@ discard block |
||
433 | 433 | { |
434 | 434 | if ($this->getReservedMethodsInstance()->is($methodName)) { |
435 | 435 | if ($context !== null) { |
436 | - $methodKey = $methodName . '_' . $context; |
|
436 | + $methodKey = $methodName.'_'.$context; |
|
437 | 437 | if (!array_key_exists($methodKey, $this->replacedReservedMethods)) { |
438 | 438 | $this->replacedReservedMethods[$methodKey] = 0; |
439 | 439 | } else { |
440 | 440 | $this->replacedReservedMethods[$methodKey]++; |
441 | 441 | } |
442 | - return '_' . $methodName . ($this->replacedReservedMethods[$methodKey] ? '_' . $this->replacedReservedMethods[$methodKey] : ''); |
|
442 | + return '_'.$methodName.($this->replacedReservedMethods[$methodKey] ? '_'.$this->replacedReservedMethods[$methodKey] : ''); |
|
443 | 443 | } else { |
444 | - return '_' . $methodName; |
|
444 | + return '_'.$methodName; |
|
445 | 445 | } |
446 | 446 | } else { |
447 | 447 | return $methodName; |
@@ -456,8 +456,8 @@ discard block |
||
456 | 456 | */ |
457 | 457 | protected static function uniqueName($name, $context) |
458 | 458 | { |
459 | - $insensitiveKey = strtolower($name . '_' . $context); |
|
460 | - $sensitiveKey = $name . '_' . $context; |
|
459 | + $insensitiveKey = strtolower($name.'_'.$context); |
|
460 | + $sensitiveKey = $name.'_'.$context; |
|
461 | 461 | if (array_key_exists($sensitiveKey, self::$uniqueNames)) { |
462 | 462 | return self::$uniqueNames[$sensitiveKey]; |
463 | 463 | } elseif (!array_key_exists($insensitiveKey, self::$uniqueNames)) { |
@@ -465,7 +465,7 @@ discard block |
||
465 | 465 | } else { |
466 | 466 | self::$uniqueNames[$insensitiveKey]++; |
467 | 467 | } |
468 | - $uniqueName = $name . (self::$uniqueNames[$insensitiveKey] ? '_' . self::$uniqueNames[$insensitiveKey] : ''); |
|
468 | + $uniqueName = $name.(self::$uniqueNames[$insensitiveKey] ? '_'.self::$uniqueNames[$insensitiveKey] : ''); |
|
469 | 469 | self::$uniqueNames[$sensitiveKey] = $uniqueName; |
470 | 470 | return $uniqueName; |
471 | 471 | } |
@@ -82,7 +82,7 @@ |
||
82 | 82 | if (is_string($this->getParameterType())) { |
83 | 83 | $methodName .= ucfirst($this->getParameterType()); |
84 | 84 | } else { |
85 | - $methodName .= '_' . md5(var_export($this->getParameterType(), true)); |
|
85 | + $methodName .= '_'.md5(var_export($this->getParameterType(), true)); |
|
86 | 86 | } |
87 | 87 | } |
88 | 88 | $context = $this->getOwner()->getPackagedName(); |
@@ -61,11 +61,11 @@ discard block |
||
61 | 61 | public function getCleanName($keepMultipleUnderscores = false) |
62 | 62 | { |
63 | 63 | if ($this->getGenerator()->getOptionGenericConstantsNames()) { |
64 | - return 'ENUM_VALUE_' . $this->getIndex(); |
|
64 | + return 'ENUM_VALUE_'.$this->getIndex(); |
|
65 | 65 | } else { |
66 | 66 | $nameWithSeparatedWords = $this->getNameWithSeparatedWords($keepMultipleUnderscores); |
67 | 67 | $key = self::constantSuffix($this->getOwner()->getName(), $nameWithSeparatedWords, $this->getIndex()); |
68 | - return 'VALUE_' . strtoupper($nameWithSeparatedWords . ($key ? '_' . $key : '')); |
|
68 | + return 'VALUE_'.strtoupper($nameWithSeparatedWords.($key ? '_'.$key : '')); |
|
69 | 69 | } |
70 | 70 | } |
71 | 71 | /** |
@@ -118,8 +118,8 @@ discard block |
||
118 | 118 | */ |
119 | 119 | private static function constantSuffix($structName, $value, $index) |
120 | 120 | { |
121 | - $key = strtoupper($structName . '_' . $value); |
|
122 | - $indexedKey = $key . '_' . $index; |
|
121 | + $key = strtoupper($structName.'_'.$value); |
|
122 | + $indexedKey = $key.'_'.$index; |
|
123 | 123 | if (array_key_exists($indexedKey, self::$uniqueConstants)) { |
124 | 124 | return self::$uniqueConstants[$indexedKey]; |
125 | 125 | } elseif (!array_key_exists($key, self::$uniqueConstants)) { |