fixed CS
This commit is contained in:
parent
da0194b235
commit
128140eccf
@ -113,7 +113,7 @@ class MarkdownDescriptor extends Descriptor
|
||||
} elseif ($service instanceof Definition) {
|
||||
$this->describeContainerDefinition($service, $childOptions);
|
||||
} else {
|
||||
$this->write(sprintf("**`%s`:** `%s`", $options['id'], get_class($service)));
|
||||
$this->write(sprintf('**`%s`:** `%s`', $options['id'], get_class($service)));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -212,7 +212,7 @@ class TextDescriptor extends Descriptor
|
||||
foreach ($definition->getTag($showTag) as $key => $tag) {
|
||||
$tagValues = array();
|
||||
foreach ($tagsNames as $tagName) {
|
||||
$tagValues[] = isset($tag[$tagName]) ? $tag[$tagName] : "";
|
||||
$tagValues[] = isset($tag[$tagName]) ? $tag[$tagName] : '';
|
||||
}
|
||||
if (0 === $key) {
|
||||
$table->addRow(array_merge(array($serviceId), $tagValues, array($definition->getClass())));
|
||||
@ -225,10 +225,10 @@ class TextDescriptor extends Descriptor
|
||||
}
|
||||
} elseif ($definition instanceof Alias) {
|
||||
$alias = $definition;
|
||||
$table->addRow(array_merge(array($serviceId, sprintf('alias for "%s"', $alias)), $tagsCount ? array_fill(0, $tagsCount, "") : array()));
|
||||
$table->addRow(array_merge(array($serviceId, sprintf('alias for "%s"', $alias)), $tagsCount ? array_fill(0, $tagsCount, '') : array()));
|
||||
} else {
|
||||
// we have no information (happens with "service_container")
|
||||
$table->addRow(array_merge(array($serviceId, get_class($definition)), $tagsCount ? array_fill(0, $tagsCount, "") : array()));
|
||||
$table->addRow(array_merge(array($serviceId, get_class($definition)), $tagsCount ? array_fill(0, $tagsCount, '') : array()));
|
||||
}
|
||||
}
|
||||
|
||||
@ -245,7 +245,7 @@ class TextDescriptor extends Descriptor
|
||||
: array();
|
||||
|
||||
$description[] = sprintf('<comment>Service Id</comment> %s', isset($options['id']) ? $options['id'] : '-');
|
||||
$description[] = sprintf('<comment>Class</comment> %s', $definition->getClass() ?: "-");
|
||||
$description[] = sprintf('<comment>Class</comment> %s', $definition->getClass() ?: '-');
|
||||
|
||||
$tags = $definition->getTags();
|
||||
if (count($tags)) {
|
||||
|
@ -114,6 +114,7 @@ class ObjectsProvider
|
||||
|
||||
/**
|
||||
* @deprecated since version 2.7, to be removed in 3.0
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
public static function getLegacyContainerDefinitions()
|
||||
|
Reference in New Issue
Block a user