rspec/rules/S107/php/split-example.adoc

12 lines
265 B
Plaintext
Raw Normal View History

2023-08-10 16:54:47 +02:00
[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) {
// ...
}
----