| 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 bool|string $value  | 
            ||
| 27 | * @param string $property  | 
            ||
| 28 | *  | 
            ||
| 29 | * @throws \Exception  | 
            ||
| 30 | *  | 
            ||
| 31 | * @return bool|string  | 
            ||
| 32 | */  | 
            ||
| 33 | public function formatPropertyValue($value, string $property)  | 
            ||
| 55 | }  | 
            ||
| 56 | 
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.