| @@ 85-94 (lines=10) @@ | ||
| 82 | * @param Alias $alias |
|
| 83 | * @return string |
|
| 84 | */ |
|
| 85 | private function mapAlias(Alias $alias) |
|
| 86 | { |
|
| 87 | $result = ''; |
|
| 88 | foreach ($alias->toArray() as $property => $value) { |
|
| 89 | if (is_scalar($value) || is_null($value)) { |
|
| 90 | $result .= "$property: $value\n"; |
|
| 91 | } |
|
| 92 | } |
|
| 93 | return trim($result); |
|
| 94 | } |
|
| 95 | } |
|
| 96 | ||
| @@ 80-89 (lines=10) @@ | ||
| 77 | * @param Module $module |
|
| 78 | * @return string |
|
| 79 | */ |
|
| 80 | private function mapModule(Module $module) |
|
| 81 | { |
|
| 82 | $result = ''; |
|
| 83 | foreach ($module->toArray() as $property => $value) { |
|
| 84 | if (is_scalar($value) || is_null($value)) { |
|
| 85 | $result .= "$property: $value\n"; |
|
| 86 | } |
|
| 87 | } |
|
| 88 | return trim($result); |
|
| 89 | } |
|
| 90 | } |
|
| 91 | ||