X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=vendor%2Fsymfony%2Fconsole%2FDescriptor%2FTextDescriptor.php;fp=vendor%2Fsymfony%2Fconsole%2FDescriptor%2FTextDescriptor.php;h=04dd22598d6e00caa0e037d8e05bd4f8e2904cf8;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hp=a79df7e230d8542d2fbf6a25d9c09a8a508e95e6;hpb=74df008bdbb3a11eeea356744f39b802369bda3c;p=yaffs-website
diff --git a/vendor/symfony/console/Descriptor/TextDescriptor.php b/vendor/symfony/console/Descriptor/TextDescriptor.php
index a79df7e23..04dd22598 100644
--- a/vendor/symfony/console/Descriptor/TextDescriptor.php
+++ b/vendor/symfony/console/Descriptor/TextDescriptor.php
@@ -33,14 +33,14 @@ class TextDescriptor extends Descriptor
*/
protected function describeInputArgument(InputArgument $argument, array $options = array())
{
- if (null !== $argument->getDefault() && (!is_array($argument->getDefault()) || count($argument->getDefault()))) {
+ if (null !== $argument->getDefault() && (!\is_array($argument->getDefault()) || \count($argument->getDefault()))) {
$default = sprintf(' [default: %s]', $this->formatDefaultValue($argument->getDefault()));
} else {
$default = '';
}
$totalWidth = isset($options['total_width']) ? $options['total_width'] : Helper::strlen($argument->getName());
- $spacingWidth = $totalWidth - strlen($argument->getName());
+ $spacingWidth = $totalWidth - \strlen($argument->getName());
$this->writeText(sprintf(' %s %s%s%s',
$argument->getName(),
@@ -56,7 +56,7 @@ class TextDescriptor extends Descriptor
*/
protected function describeInputOption(InputOption $option, array $options = array())
{
- if ($option->acceptValue() && null !== $option->getDefault() && (!is_array($option->getDefault()) || count($option->getDefault()))) {
+ if ($option->acceptValue() && null !== $option->getDefault() && (!\is_array($option->getDefault()) || \count($option->getDefault()))) {
$default = sprintf(' [default: %s]', $this->formatDefaultValue($option->getDefault()));
} else {
$default = '';
@@ -117,7 +117,7 @@ class TextDescriptor extends Descriptor
$this->writeText('Options:', $options);
foreach ($definition->getOptions() as $option) {
- if (strlen($option->getShortcut()) > 1) {
+ if (\strlen($option->getShortcut()) > 1) {
$laterOptions[] = $option;
continue;
}
@@ -202,7 +202,7 @@ class TextDescriptor extends Descriptor
}
// calculate max. width based on available commands per namespace
- $width = $this->getColumnWidth(call_user_func_array('array_merge', array_map(function ($namespace) use ($commands) {
+ $width = $this->getColumnWidth(\call_user_func_array('array_merge', array_map(function ($namespace) use ($commands) {
return array_intersect($namespace['commands'], array_keys($commands));
}, $namespaces)));
@@ -280,11 +280,11 @@ class TextDescriptor extends Descriptor
return 'INF';
}
- if (is_string($default)) {
+ if (\is_string($default)) {
$default = OutputFormatter::escape($default);
- } elseif (is_array($default)) {
+ } elseif (\is_array($default)) {
foreach ($default as $key => $value) {
- if (is_string($value)) {
+ if (\is_string($value)) {
$default[$key] = OutputFormatter::escape($value);
}
}