@@ -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)) { |