rspec/rules/S107/php/split-example.adoc
2023-08-10 16:54:47 +02:00

12 lines
265 B
Plaintext

[source,php]
----
// Each function does a part of what the original setCoordinates function was doing, so confusion risks are lower
function setOrigin(int $x, int $y, int $z) {
// ...
}
function setSize(int $width, int $height, float $depth) {
// ...
}
----