mirror of
https://github.com/pestphp/pest.git
synced 2026-03-11 02:07:23 +01:00
chore: style changes
This commit is contained in:
@ -28,8 +28,8 @@ trait HigherOrderable
|
||||
*/
|
||||
private function bootHigherOrderable(): void
|
||||
{
|
||||
$this->chains = new HigherOrderMessageCollection();
|
||||
$this->factoryProxies = new HigherOrderMessageCollection();
|
||||
$this->proxies = new HigherOrderMessageCollection();
|
||||
$this->chains = new HigherOrderMessageCollection;
|
||||
$this->factoryProxies = new HigherOrderMessageCollection;
|
||||
$this->proxies = new HigherOrderMessageCollection;
|
||||
}
|
||||
}
|
||||
|
||||
@ -154,7 +154,7 @@ final class TestCaseFactory
|
||||
foreach ($classAvailableAttributes as $attribute) {
|
||||
$classAttributes = array_reduce(
|
||||
$methods,
|
||||
fn (array $carry, TestCaseMethodFactory $methodFactory): array => (new $attribute())->__invoke($methodFactory, $carry),
|
||||
fn (array $carry, TestCaseMethodFactory $methodFactory): array => (new $attribute)->__invoke($methodFactory, $carry),
|
||||
$classAttributes
|
||||
);
|
||||
}
|
||||
|
||||
@ -138,11 +138,11 @@ final class TestCaseMethodFactory
|
||||
$attributes = [];
|
||||
|
||||
foreach ($annotationsToUse as $annotation) {
|
||||
$annotations = (new $annotation())->__invoke($this, $annotations);
|
||||
$annotations = (new $annotation)->__invoke($this, $annotations);
|
||||
}
|
||||
|
||||
foreach ($attributesToUse as $attribute) {
|
||||
$attributes = (new $attribute())->__invoke($this, $attributes);
|
||||
$attributes = (new $attribute)->__invoke($this, $attributes);
|
||||
}
|
||||
|
||||
if ($this->datasets !== [] || $this->repetitions > 1) {
|
||||
|
||||
Reference in New Issue
Block a user