| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 34 | private function computeExchangeName($exchangeName) |
||
| 35 | { |
||
| 36 | $exchangeParts = []; |
||
| 37 | |||
| 38 | if(! empty($this->exchangesPrefix)) |
||
| 39 | { |
||
| 40 | $exchangeParts[] = trim($this->exchangesPrefix); |
||
| 41 | } |
||
| 42 | |||
| 43 | $exchangeParts[] = $exchangeName; |
||
| 44 | |||
| 45 | return trim(implode(self::DELIMITER, $exchangeParts)); |
||
| 46 | |||
| 47 | } |
||
| 48 | |||
| 59 |
Only declaring a single property per statement allows you to later on add doc comments more easily.
It is also recommended by PSR2, so it is a common style that many people expect.