@@ -11,7 +11,7 @@ |
||
11 | 11 | use Rector\Set\ValueObject\SetList; |
12 | 12 | use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; |
13 | 13 | |
14 | -return static function (ContainerConfigurator $containerConfigurator): void { |
|
14 | +return static function(ContainerConfigurator $containerConfigurator): void { |
|
15 | 15 | // get parameters |
16 | 16 | $parameters = $containerConfigurator->parameters(); |
17 | 17 |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | { |
58 | 58 | $edges = []; |
59 | 59 | foreach ($variables as $parameter) { |
60 | - if (! $this->needAssociation($class, $parameter)) { |
|
60 | + if (!$this->needAssociation($class, $parameter)) { |
|
61 | 61 | continue; |
62 | 62 | } |
63 | 63 | $edges[] = $this->addAssociation($class, $parameter, $codebase); |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | |
75 | 75 | private function needAssociation(ClassDefinition $class, HasType $attribute): bool |
76 | 76 | { |
77 | - return $attribute->isAReference() && ! $this->isAssociationResolved($class, $attribute); |
|
77 | + return $attribute->isAReference() && !$this->isAssociationResolved($class, $attribute); |
|
78 | 78 | } |
79 | 79 | |
80 | 80 | private function isAssociationResolved(ClassDefinition $class, HasType $attribute): bool |
@@ -36,6 +36,6 @@ |
||
36 | 36 | |
37 | 37 | public function id(): string |
38 | 38 | { |
39 | - return sha1((string) mt_rand()); |
|
39 | + return sha1((string)mt_rand()); |
|
40 | 40 | } |
41 | 41 | } |
@@ -22,17 +22,17 @@ |
||
22 | 22 | |
23 | 23 | public function add(Definition $definition): void |
24 | 24 | { |
25 | - $this->definitions[(string) $definition->name()] = $definition; |
|
25 | + $this->definitions[(string)$definition->name()] = $definition; |
|
26 | 26 | } |
27 | 27 | |
28 | 28 | public function has(Name $name): bool |
29 | 29 | { |
30 | - return isset($this->definitions[(string) $name]); |
|
30 | + return isset($this->definitions[(string)$name]); |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | public function get(Name $name): Definition |
34 | 34 | { |
35 | - return $this->definitions[(string) $name]; |
|
35 | + return $this->definitions[(string)$name]; |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | /** @return Definition[] */ |
@@ -15,7 +15,7 @@ |
||
15 | 15 | /** @see HasType::isAReference() for more details */ |
16 | 16 | public function isAReference(): bool |
17 | 17 | { |
18 | - return $this->hasTypeDeclaration() && ! $this->type->isBuiltIn(); |
|
18 | + return $this->hasTypeDeclaration() && !$this->type->isBuiltIn(); |
|
19 | 19 | } |
20 | 20 | |
21 | 21 | /** @see HasType::hasTypeDeclaration() for more details */ |
@@ -32,7 +32,7 @@ |
||
32 | 32 | |
33 | 33 | public function leaveNode(Node $node) |
34 | 34 | { |
35 | - if ($node instanceof Class_ && ! $node->isAnonymous()) { |
|
35 | + if ($node instanceof Class_ && !$node->isAnonymous()) { |
|
36 | 36 | $this->codebase->add($this->builder->build($node)); |
37 | 37 | } |
38 | 38 | return null; |
@@ -16,7 +16,7 @@ |
||
16 | 16 | |
17 | 17 | public function __construct(string $name) |
18 | 18 | { |
19 | - if (! \in_array($name, self::$validNames, true)) { |
|
19 | + if (!\in_array($name, self::$validNames, true)) { |
|
20 | 20 | throw UnknownTheme::named($name, self::$validNames); |
21 | 21 | } |
22 | 22 | $this->name = $name; |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | |
22 | 22 | public function absolutePath(): string |
23 | 23 | { |
24 | - return (string) $this->directory->getRealPath(); |
|
24 | + return (string)$this->directory->getRealPath(); |
|
25 | 25 | } |
26 | 26 | |
27 | 27 | private function setDirectory(string $path): void |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | 'The directory with the code to be scanned cannot be empty' |
32 | 32 | ); |
33 | 33 | $directory = new SplFileInfo($path); |
34 | - if (! $directory->isDir()) { |
|
34 | + if (!$directory->isDir()) { |
|
35 | 35 | throw InvalidDirectory::notFoundAt($directory); |
36 | 36 | } |
37 | 37 | $this->directory = $directory; |
@@ -22,7 +22,7 @@ |
||
22 | 22 | if ($member instanceof ClassConst |
23 | 23 | || $member instanceof ClassMethod |
24 | 24 | || $member instanceof Property) { |
25 | - return ! $member->isProtected(); |
|
25 | + return !$member->isProtected(); |
|
26 | 26 | } |
27 | 27 | |
28 | 28 | return false; |