Skip to content

Commit 135e6b3

Browse files
driesvintsgithub-actions[bot]
authored andcommitted
Fix code styling
1 parent 1d95ca6 commit 135e6b3

32 files changed

+40
-107
lines changed

src/Actions/CallHook.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ class CallHook implements Action
1313
/**
1414
* Create a new action instance.
1515
*/
16-
public function __construct(protected string $hookName)
17-
{
18-
}
16+
public function __construct(protected string $hookName) {}
1917

2018
/**
2119
* {@inheritDoc}

src/Actions/CallListener.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ class CallListener implements Action
1212
/**
1313
* Create a new action instance.
1414
*/
15-
public function __construct(protected string $eventName)
16-
{
17-
}
15+
public function __construct(protected string $eventName) {}
1816

1917
/**
2018
* {@inheritDoc}

src/Actions/CallMethod.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ class CallMethod implements Action
1515
/**
1616
* Create a new action instance.
1717
*/
18-
public function __construct(protected string $methodName)
19-
{
20-
}
18+
public function __construct(protected string $methodName) {}
2119

2220
/**
2321
* {@inheritDoc}

src/Actions/CallPropertyHook.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ class CallPropertyHook implements Action
1212
/**
1313
* Create a new action instance.
1414
*/
15-
public function __construct(protected string $hookName, protected string $propertyName)
16-
{
17-
}
15+
public function __construct(protected string $hookName, protected string $propertyName) {}
1816

1917
/**
2018
* {@inheritDoc}

src/CompiledComponentFile.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ class CompiledComponentFile
1414
/**
1515
* Create a new component file instance.
1616
*/
17-
public function __construct(protected string $originalPath, protected ?string $componentName = null)
18-
{
19-
}
17+
public function __construct(protected string $originalPath, protected ?string $componentName = null) {}
2018

2119
/**
2220
* Determine if the compiled component exists.

src/ComponentFactory.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ class ComponentFactory
1515
/**
1616
* Create a new component factory instance.
1717
*/
18-
public function __construct(protected MountedDirectories $mountedDirectories)
19-
{
20-
}
18+
public function __construct(protected MountedDirectories $mountedDirectories) {}
2119

2220
/**
2321
* Make a new component instance from the given path.

src/ComponentResolver.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ class ComponentResolver
1111
*/
1212
public function __construct(
1313
protected ComponentFactory $factory
14-
) {
15-
}
14+
) {}
1615

1716
/**
1817
* Attempt to resolve the given component name into a Volt component class name.

src/ExtractedFragment.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ class ExtractedFragment
1313
public function __construct(
1414
protected string $componentName,
1515
protected string $componentPath
16-
) {
17-
}
16+
) {}
1817

1918
/**
2019
* Resolve an extracted fragmnet instance from a given alias.

src/Methods/Method.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ protected function __construct(
1717
protected Closure $closure,
1818
protected string $visibility = 'public',
1919
protected array $attributes = [],
20-
) {
21-
}
20+
) {}
2221

2322
/**
2423
* Add an attribute to the method.

src/Methods/ReflectionMethod.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ public function __construct(
1313
public Closure $closure,
1414
public string $visibility,
1515
public array $attributes,
16-
) {
17-
}
16+
) {}
1817

1918
/**
2019
* Determine if the method is public.

0 commit comments

Comments
 (0)