@@ -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 | } |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | */ |
| 46 | 46 | public static function instance($filename = null) |
| 47 | 47 | { |
| 48 | - return parent::instance(empty($filename) ? dirname(__FILE__) . '/../resources/config/xsd_types.yml' : $filename); |
|
| 48 | + return parent::instance(empty($filename) ? dirname(__FILE__).'/../resources/config/xsd_types.yml' : $filename); |
|
| 49 | 49 | } |
| 50 | 50 | /** |
| 51 | 51 | * @param string $xsdType |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | */ |
| 62 | 62 | public static function isAnonymous($xsdType) |
| 63 | 63 | { |
| 64 | - return (bool) preg_match(self::ANONYMOUS_TYPE, $xsdType); |
|
| 64 | + return (bool)preg_match(self::ANONYMOUS_TYPE, $xsdType); |
|
| 65 | 65 | } |
| 66 | 66 | /** |
| 67 | 67 | * @param string $xsdType |
@@ -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 |
@@ -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)) { |