This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

fixed CS

  • Loading branch information...
fabpot committed Jan 10, 2018
1 parent 26abe81 commit acf9dff95bf87b0c4c8fb19706d8d5a7ad4d3b87
@@ -151,9 +151,13 @@ public function displayParseProgress($progress, $class)
}
$this->started = true;
$this->output->isDecorated() and $this->output->write(sprintf(
$this->output->isDecorated() and $this->output->write(
sprintf(
" Parsing <comment>%s</comment>%s\033[K\n %s\033[K\n",
$this->renderProgressBar($progress, 50), count($this->errors) ? ' <fg=red>'.count($this->errors).' error'.(1 == count($this->errors) ? '' : 's').'</>' : '', $class->getName())
$this->renderProgressBar($progress, 50),
count($this->errors) ? ' <fg=red>'.count($this->errors).' error'.(1 == count($this->errors) ? '' : 's').'</>' : '',
$class->getName()
)
);
}
@@ -166,7 +170,9 @@ public function displayRenderProgress($section, $message, $progression)
$this->output->isDecorated() and $this->output->write(sprintf(
" Rendering <comment>%s</comment>\033[K\n <info>%s</info> %s\033[K\n",
$this->renderProgressBar($progression, 50), $section, $message
$this->renderProgressBar($progression, 50),
$section,
$message
));
}
@@ -220,7 +226,9 @@ public function displayRenderSummary()
$this->output->writeln('<bg=cyan;fg=white> Version </> <bg=cyan;fg=white> Updated C </> <bg=cyan;fg=white> Updated N </> <bg=cyan;fg=white> Removed C </> <bg=cyan;fg=white> Removed N </>');
foreach ($this->diffs as $version => $diff) {
$this->output->writeln(sprintf('%9s %11d %11d %11d %11d', $version,
$this->output->writeln(sprintf(
'%9s %11d %11d %11d %11d',
$version,
count($diff->getModifiedClasses()),
count($diff->getModifiedNamespaces()),
count($diff->getRemovedClasses()),
@@ -29,7 +29,8 @@ protected function configure()
$this
->setName('parse')
->setDescription('Parses a project')
->setHelp(<<<EOF
->setHelp(
<<<EOF
The <info>%command.name%</info> command parses a project and generates a database
with API information:
@@ -29,7 +29,8 @@ protected function configure()
$this
->setName('render')
->setDescription('Renders a project')
->setHelp(<<<EOF
->setHelp(
<<<EOF
The <info>%command.name%</info> command renders a project as a static set of HTML files:
<info>php %command.full_name% render config/symfony.php</info>
@@ -29,7 +29,8 @@ protected function configure()
$this
->setName('update')
->setDescription('Parses then renders a project')
->setHelp(<<<EOF
->setHelp(
<<<EOF
The <info>%command.name%</info> command parses and renders a project:
<info>php %command.full_name% config/symfony.php</info>
@@ -638,9 +638,15 @@ public function toArray()
'errors' => $this->errors,
'interfaces' => $this->interfaces,
'traits' => $this->traits,
'properties' => array_map(function ($property) { return $property->toArray(); }, $this->properties),
'methods' => array_map(function ($method) { return $method->toArray(); }, $this->methods),
'constants' => array_map(function ($constant) { return $constant->toArray(); }, $this->constants),
'properties' => array_map(function ($property) {
return $property->toArray();
}, $this->properties),
'methods' => array_map(function ($method) {
return $method->toArray();
}, $this->methods),
'constants' => array_map(function ($constant) {
return $constant->toArray();
}, $this->constants),
);
}
@@ -167,7 +167,9 @@ public function toArray()
'is_by_ref' => $this->byRef,
'exceptions' => $this->exceptions,
'errors' => $this->errors,
'parameters' => array_map(function ($parameter) { return $parameter->toArray(); }, $this->parameters),
'parameters' => array_map(function ($parameter) {
return $parameter->toArray();
}, $this->parameters),
);
}
View
@@ -11,7 +11,9 @@
;
$versions = GitVersionCollection::create($dir)
->addFromTags(function ($version) { return preg_match('/^v?4\.\d+\.\d+$/', $version); })
->addFromTags(function ($version) {
return preg_match('/^v?4\.\d+\.\d+$/', $version);
})
->add('master', 'master branch')
;

0 comments on commit acf9dff

Please sign in to comment.