@@ -33,7 +33,7 @@ |
||
| 33 | 33 | /** @param mixed[] $configuration */ |
| 34 | 34 | public function __construct(array $configuration) |
| 35 | 35 | { |
| 36 | - $recursive = (bool) ($configuration['recursive'] ?? false); |
|
| 36 | + $recursive = (bool)($configuration['recursive'] ?? false); |
|
| 37 | 37 | $this->codeFinder = $recursive ? SourceCodeFinder::recursive() : SourceCodeFinder::nonRecursive(); |
| 38 | 38 | $this->codeParser = CodeParser::fromConfiguration(new CodeParserConfiguration($configuration)); |
| 39 | 39 | $this->graphvizProcessor = GraphvizProcessor::fromConfiguration(new GraphvizConfiguration($configuration)); |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | /** @param mixed[] $configuration */ |
| 30 | 30 | public function __construct(array $configuration) |
| 31 | 31 | { |
| 32 | - $recursive = (bool) ($configuration['recursive'] ?? false); |
|
| 32 | + $recursive = (bool)($configuration['recursive'] ?? false); |
|
| 33 | 33 | $this->sourceCodeFinder = $recursive ? SourceCodeFinder::recursive() : SourceCodeFinder::nonRecursive(); |
| 34 | 34 | $this->codeParser = CodeParser::fromConfiguration(new CodeParserConfiguration($configuration)); |
| 35 | 35 | $this->graphvizProcessor = GraphvizProcessor::fromConfiguration(new GraphvizConfiguration($configuration)); |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | /** @param mixed[] $configuration */ |
| 30 | 30 | public function __construct(array $configuration) |
| 31 | 31 | { |
| 32 | - $recursive = (bool) ($configuration['recursive'] ?? false); |
|
| 32 | + $recursive = (bool)($configuration['recursive'] ?? false); |
|
| 33 | 33 | $this->codeFinder = $recursive ? SourceCodeFinder::recursive() : SourceCodeFinder::nonRecursive(); |
| 34 | 34 | $this->codeParser = CodeParser::fromConfiguration(new CodeParserConfiguration($configuration)); |
| 35 | 35 | $this->statisticsProcessor = new StatisticsProcessor(new TemplateEngine()); |
@@ -19,6 +19,6 @@ |
||
| 19 | 19 | |
| 20 | 20 | public function identifier(): string |
| 21 | 21 | { |
| 22 | - return (string) $this->name(); |
|
| 22 | + return (string)$this->name(); |
|
| 23 | 23 | } |
| 24 | 24 | } |
@@ -22,11 +22,11 @@ |
||
| 22 | 22 | /** @param mixed[] $config */ |
| 23 | 23 | public function __construct(array $config) |
| 24 | 24 | { |
| 25 | - $this->extractAssociations = (bool) ($config['associations'] ?? false); |
|
| 26 | - $this->hidePrivate = (bool) ($config['hide-private'] ?? false); |
|
| 27 | - $this->hideProtected = (bool) ($config['hide-protected'] ?? false); |
|
| 28 | - $this->hideAttributes = (bool) ($config['hide-attributes'] ?? false); |
|
| 29 | - $this->hideMethods = (bool) ($config['hide-methods'] ?? false); |
|
| 25 | + $this->extractAssociations = (bool)($config['associations'] ?? false); |
|
| 26 | + $this->hidePrivate = (bool)($config['hide-private'] ?? false); |
|
| 27 | + $this->hideProtected = (bool)($config['hide-protected'] ?? false); |
|
| 28 | + $this->hideAttributes = (bool)($config['hide-attributes'] ?? false); |
|
| 29 | + $this->hideMethods = (bool)($config['hide-methods'] ?? false); |
|
| 30 | 30 | } |
| 31 | 31 | |
| 32 | 32 | public function extractAssociations(): bool |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | |
| 27 | 27 | public function addExternalDefinitionsTo(Codebase $codebase): void |
| 28 | 28 | { |
| 29 | - array_map(static fn (RelationshipsResolver $resolver) => $resolver->resolve($codebase), $this->resolvers); |
|
| 29 | + array_map(static fn(RelationshipsResolver $resolver) => $resolver->resolve($codebase), $this->resolvers); |
|
| 30 | 30 | } |
| 31 | 31 | |
| 32 | 32 | /** @param RelationshipsResolver[] $resolvers */ |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | { |
| 73 | 73 | $process = new Process([$this->name->command(), '-Tpng', '-o', $outputFile, $inputFile]); |
| 74 | 74 | $process->run(); |
| 75 | - if (! $process->isSuccessful()) { |
|
| 75 | + if (!$process->isSuccessful()) { |
|
| 76 | 76 | throw ImageGenerationFailure::withOutput($process->getErrorOutput()); |
| 77 | 77 | } |
| 78 | 78 | } |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | |
| 17 | 17 | public function __construct(string $name) |
| 18 | 18 | { |
| 19 | - if (! \in_array($name, self::$names, true)) { |
|
| 19 | + if (!\in_array($name, self::$names, true)) { |
|
| 20 | 20 | throw UnknownImageProcessor::named($name, self::$names); |
| 21 | 21 | } |
| 22 | 22 | $this->name = $name; |
@@ -22,10 +22,10 @@ |
||
| 22 | 22 | /** @param mixed[] $configuration */ |
| 23 | 23 | public function __construct(array $configuration) |
| 24 | 24 | { |
| 25 | - $extractAssociations = (bool) ($configuration['associations'] ?? false); |
|
| 25 | + $extractAssociations = (bool)($configuration['associations'] ?? false); |
|
| 26 | 26 | $this->associationsBuilder = $extractAssociations ? new EdgesBuilder() : new NoAssociationsBuilder(); |
| 27 | 27 | $theme = new ThemeName($configuration['theme']); |
| 28 | - $hideEmptyBlocks = (bool) ($configuration['hide-empty-blocks'] ?? false); |
|
| 28 | + $hideEmptyBlocks = (bool)($configuration['hide-empty-blocks'] ?? false); |
|
| 29 | 29 | $this->digraphStyle = $hideEmptyBlocks |
| 30 | 30 | ? DigraphStyle::withoutEmptyBlocks($theme) |
| 31 | 31 | : DigraphStyle::default($theme); |