Skip to content

Commit 9a81f0e

Browse files
patinthehatactions-user
authored andcommitted
Fix styling
1 parent 1baf5c1 commit 9a81f0e

8 files changed

+8
-11
lines changed

src/Results/Nodes/ClassMethodNode.php

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace Permafrost\PhpCodeSearch\Results\Nodes;
44

5-
use Permafrost\PhpCodeSearch\Code\GenericCodeLocation;
65
use Permafrost\PhpCodeSearch\Results\Nodes\Traits\BootsTraits;
76
use Permafrost\PhpCodeSearch\Results\Nodes\Traits\HasLocation;
87
use Permafrost\PhpCodeSearch\Results\Nodes\Traits\HasName;

src/Results/Nodes/ClassPropertyNode.php

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace Permafrost\PhpCodeSearch\Results\Nodes;
44

5-
use Permafrost\PhpCodeSearch\Code\GenericCodeLocation;
65
use Permafrost\PhpCodeSearch\Results\Nodes\Traits\BootsTraits;
76
use Permafrost\PhpCodeSearch\Results\Nodes\Traits\HasLocation;
87
use Permafrost\PhpCodeSearch\Results\Nodes\Traits\HasName;

src/Results/Nodes/FunctionCallNode.php

-2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22

33
namespace Permafrost\PhpCodeSearch\Results\Nodes;
44

5-
use Permafrost\PhpCodeSearch\Code\GenericCodeLocation;
65
use Permafrost\PhpCodeSearch\Results\Nodes\Traits\BootsTraits;
76
use Permafrost\PhpCodeSearch\Results\Nodes\Traits\HasLocation;
87
use Permafrost\PhpCodeSearch\Results\Nodes\Traits\HasName;
9-
use Permafrost\PhpCodeSearch\Results\Nodes\Traits\TransformsArguments;
108
use Permafrost\PhpCodeSearch\Support\ExpressionTransformer;
119
use PhpParser\Node;
1210

src/Results/Nodes/FunctionDefinitionNode.php

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace Permafrost\PhpCodeSearch\Results\Nodes;
44

5-
use Permafrost\PhpCodeSearch\Code\GenericCodeLocation;
65
use Permafrost\PhpCodeSearch\Results\Nodes\Traits\BootsTraits;
76
use Permafrost\PhpCodeSearch\Results\Nodes\Traits\HasLocation;
87
use Permafrost\PhpCodeSearch\Results\Nodes\Traits\HasName;

src/Results/Nodes/Traits/BootsTraits.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,15 @@ protected function bootTraits($node): void
1111
$reflectionObject = new \ReflectionObject($this);
1212

1313
collect($reflectionObject->getTraitNames())
14-
->map(function(string $name){
14+
->map(function (string $name) {
1515
if (strpos($name, __NAMESPACE__) === false) {
1616
return null;
1717
}
18+
1819
return Arr::last(explode('\\', $name));
1920
})
2021
->filter()
21-
->each(function(string $name) use ($node) {
22+
->each(function (string $name) use ($node) {
2223
$bootMethodName = 'boot'.$name;
2324

2425
if (method_exists($this, $bootMethodName)) {

src/Results/Nodes/Traits/HasVisibility.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
namespace Permafrost\PhpCodeSearch\Results\Nodes\Traits;
44

5-
trait HasVisibility {
5+
trait HasVisibility
6+
{
67

78
/** @var string */
89
public $visibility = 'unknown';
@@ -20,9 +21,10 @@ protected function initVisibilityAttribute($node): void
2021
'isProtected' => 'protected',
2122
];
2223

23-
foreach($visibilityMap as $method => $visibility) {
24+
foreach ($visibilityMap as $method => $visibility) {
2425
if ($node->$method()) {
2526
$this->visibility = $visibility;
27+
2628
return;
2729
}
2830
}

src/Support/Collections/Collection.php

-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ public function first(callable $callback = null, $default = null)
5858
return Arr::first($this->items, $callback, $default);
5959
}
6060

61-
6261
public function get($key, $default = null)
6362
{
6463
if (array_key_exists($key, $this->items)) {

src/Support/NameResolver.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public static function resolve($node)
6464

6565
public static function resolveAll(array $nodes): array
6666
{
67-
return collect($nodes)->each(function($node) {
67+
return collect($nodes)->each(function ($node) {
6868
return self::resolve($node);
6969
})->filter()->all();
7070
}

0 commit comments

Comments
 (0)