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