src/Kunstmaan/GeneratorBundle/Helper/InputAssistant.php 1 location
|
@@ 238-245 (lines=8) @@
|
| 235 |
|
* |
| 236 |
|
* @return string |
| 237 |
|
*/ |
| 238 |
|
private function convertNamespaceToSnakeCase($namespace) |
| 239 |
|
{ |
| 240 |
|
if (is_null($namespace)) { |
| 241 |
|
return null; |
| 242 |
|
} |
| 243 |
|
|
| 244 |
|
return str_replace('/', '_', strtolower($this->fixNamespace($namespace))); |
| 245 |
|
} |
| 246 |
|
} |
| 247 |
|
|
src/Kunstmaan/GeneratorBundle/Command/KunstmaanGenerateCommand.php 1 location
|
@@ 200-207 (lines=8) @@
|
| 197 |
|
* |
| 198 |
|
* @return string |
| 199 |
|
*/ |
| 200 |
|
private function convertNamespaceToSnakeCase($namespace) |
| 201 |
|
{ |
| 202 |
|
if (is_null($namespace)) { |
| 203 |
|
return null; |
| 204 |
|
} |
| 205 |
|
|
| 206 |
|
return str_replace('/', '_', strtolower($this->fixNamespace($namespace))); |
| 207 |
|
} |
| 208 |
|
|
| 209 |
|
/** |
| 210 |
|
* Replaces '\' with '/'. |