chore: coding style changes

This commit is contained in:
nuno maduro
2026-08-07 14:52:56 +01:00
parent eb88513baf
commit 42d9b777bf
221 changed files with 139 additions and 3086 deletions
@@ -15,8 +15,6 @@ final class HigherOrderMessageCollection
private array $messages = [];
/**
* Adds a new higher order message to the collection.
*
* @param array<int, mixed>|null $arguments
*/
public function add(string $filename, int $line, string $name, ?array $arguments): void
@@ -25,8 +23,6 @@ final class HigherOrderMessageCollection
}
/**
* Adds a new higher order message to the collection if the callable condition is does not return false.
*
* @param array<int, mixed>|null $arguments
*/
public function addWhen(callable $condition, string $filename, int $line, string $name, ?array $arguments): void
@@ -34,9 +30,6 @@ final class HigherOrderMessageCollection
$this->messages[] = new HigherOrderMessage($filename, $line, $name, $arguments)->when($condition);
}
/**
* Proxy all the messages starting from the target.
*/
public function chain(object $target): void
{
foreach ($this->messages as $message) {
@@ -44,9 +37,6 @@ final class HigherOrderMessageCollection
}
}
/**
* Proxy all the messages to the target.
*/
public function proxy(object $target): void
{
foreach ($this->messages as $message) {
@@ -55,8 +45,6 @@ final class HigherOrderMessageCollection
}
/**
* Count the number of messages with the given name.
*
* @param string $name A higher order message name (usually a method name)
*/
public function count(string $name): int