Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@..
Decoded Output download
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace RectorPrefix202406\Symfony\Component\Console\Completion\Output;
use RectorPrefix202406\Symfony\Component\Console\Completion\CompletionSuggestions;
use RectorPrefix202406\Symfony\Component\Console\Output\OutputInterface;
/**
* @author Jitendra A <[email protected]>
*/
class ZshCompletionOutput implements CompletionOutputInterface
{
public function write(CompletionSuggestions $suggestions, OutputInterface $output) : void
{
$values = [];
foreach ($suggestions->getValueSuggestions() as $value) {
$values[] = $value->getValue() . ($value->getDescription() ? " " . $value->getDescription() : '');
}
foreach ($suggestions->getOptionSuggestions() as $option) {
$values[] = '--' . $option->getName() . ($option->getDescription() ? " " . $option->getDescription() : '');
if ($option->isNegatable()) {
$values[] = '--no-' . $option->getName() . ($option->getDescription() ? " " . $option->getDescription() : '');
}
}
$output->write(\implode("
", $values) . "
");
}
}
?>
Did this file decode correctly?
Original Code
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace RectorPrefix202406\Symfony\Component\Console\Completion\Output;
use RectorPrefix202406\Symfony\Component\Console\Completion\CompletionSuggestions;
use RectorPrefix202406\Symfony\Component\Console\Output\OutputInterface;
/**
* @author Jitendra A <[email protected]>
*/
class ZshCompletionOutput implements CompletionOutputInterface
{
public function write(CompletionSuggestions $suggestions, OutputInterface $output) : void
{
$values = [];
foreach ($suggestions->getValueSuggestions() as $value) {
$values[] = $value->getValue() . ($value->getDescription() ? "\t" . $value->getDescription() : '');
}
foreach ($suggestions->getOptionSuggestions() as $option) {
$values[] = '--' . $option->getName() . ($option->getDescription() ? "\t" . $option->getDescription() : '');
if ($option->isNegatable()) {
$values[] = '--no-' . $option->getName() . ($option->getDescription() ? "\t" . $option->getDescription() : '');
}
}
$output->write(\implode("\n", $values) . "\n");
}
}
Function Calls
None |
Stats
MD5 | 0aec9dde45cca423edcb72074e67cc0c |
Eval Count | 0 |
Decode Time | 97 ms |