| 1 | <?php | ||
| 6 | final class PropertyFormatter | ||
| 7 | { | ||
| 8 | /** | ||
| 9 | * @var PropertyHolder | ||
| 10 | */ | ||
| 11 | private $propertyHolder; | ||
| 12 | |||
| 13 | /** | ||
| 14 | * class constructor | ||
| 15 | * | ||
| 16 | * @param PropertyHolder $propertyHolder | ||
| 17 | */ | ||
| 18 | public function __construct(PropertyHolder $propertyHolder) | ||
| 22 | |||
| 23 | /** | ||
| 24 | * formats the name of a property | ||
| 25 | * | ||
| 26 | * @param string|bool $value | ||
| 27 | * @param string $property | ||
| 28 | * | ||
| 29 | * @return string|bool | ||
| 30 | * @throws \Exception | ||
| 31 | */ | ||
| 32 | public function formatPropertyValue($value, string $property) | ||
| 52 | } | ||
| 53 | 
The break statement is not necessary if it is preceded for example by a return statement:
If you would like to keep this construct to be consistent with other case statements, you can safely mark this issue as a false-positive.