From 869a01941115c258d0c2b8dccea58028b430bfd2 Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Wed, 3 Apr 2024 08:25:14 +0000 Subject: [PATCH] Apply fixes from StyleCI --- .../Shell/DependencyInjection/Container.php | 50 +++++++++---------- src/PHPCR/Shell/Phpcr/PhpcrSession.php | 2 +- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/src/PHPCR/Shell/DependencyInjection/Container.php b/src/PHPCR/Shell/DependencyInjection/Container.php index 6997557..e5d0083 100644 --- a/src/PHPCR/Shell/DependencyInjection/Container.php +++ b/src/PHPCR/Shell/DependencyInjection/Container.php @@ -12,38 +12,38 @@ namespace PHPCR\Shell\DependencyInjection; -use PHPCR\Shell\PhpcrShell; -use Symfony\Component\DependencyInjection\ContainerBuilder; -use Symfony\Component\DependencyInjection\Reference; -use PHPCR\Shell\Transport\Transport\DoctrineDbal; -use PHPCR\Shell\Transport\Transport\Jackrabbit; -use PHPCR\Shell\Transport\Transport\JackalopeFs; -use PHPCR\Shell\Query\UpdateProcessor; -use Symfony\Component\ExpressionLanguage\ExpressionLanguage; -use PHPCR\Shell\Console\Input\AutoComplete; +use DTL\Glob\GlobHelper; +use PHPCR\Shell\Config\Config; +use PHPCR\Shell\Config\ConfigManager; +use PHPCR\Shell\Config\Profile; +use PHPCR\Shell\Config\ProfileLoader; use PHPCR\Shell\Console\Application\EmbeddedApplication; use PHPCR\Shell\Console\Application\ShellApplication; -use Symfony\Component\EventDispatcher\EventDispatcher; -use PHPCR\Shell\Subscriber\ExceptionSubscriber; +use PHPCR\Shell\Console\Helper\EditorHelper; +use PHPCR\Shell\Console\Helper\NodeHelper; +use PHPCR\Shell\Console\Helper\PathHelper; +use PHPCR\Shell\Console\Helper\RepositoryHelper; +use PHPCR\Shell\Console\Helper\ResultFormatterHelper; +use PHPCR\Shell\Console\Helper\TextHelper; +use PHPCR\Shell\Console\Input\AutoComplete; +use PHPCR\Shell\Phpcr\SessionManager; +use PHPCR\Shell\PhpcrShell; +use PHPCR\Shell\Query\UpdateProcessor; use PHPCR\Shell\Subscriber\AliasSubscriber; use PHPCR\Shell\Subscriber\ConfigInitSubscriber; -use PHPCR\Shell\Subscriber\ProfileWriterSubscriber; -use PHPCR\Shell\Subscriber\ProfileLoaderSubscriber; +use PHPCR\Shell\Subscriber\ExceptionSubscriber; use PHPCR\Shell\Subscriber\ProfileFromSessionInputSubscriber; -use DTL\Glob\GlobHelper; -use PHPCR\Shell\Phpcr\SessionManager; +use PHPCR\Shell\Subscriber\ProfileLoaderSubscriber; +use PHPCR\Shell\Subscriber\ProfileWriterSubscriber; +use PHPCR\Shell\Transport\Transport\DoctrineDbal; +use PHPCR\Shell\Transport\Transport\JackalopeFs; +use PHPCR\Shell\Transport\Transport\Jackrabbit; use PHPCR\Shell\Transport\TransportRegistry; -use PHPCR\Shell\Config\Config; -use PHPCR\Shell\Config\ProfileLoader; -use PHPCR\Shell\Config\Profile; -use PHPCR\Shell\Config\ConfigManager; -use PHPCR\Shell\Console\Helper\ResultFormatterHelper; -use PHPCR\Shell\Console\Helper\NodeHelper; -use PHPCR\Shell\Console\Helper\TextHelper; -use PHPCR\Shell\Console\Helper\RepositoryHelper; -use PHPCR\Shell\Console\Helper\PathHelper; -use PHPCR\Shell\Console\Helper\EditorHelper; use Symfony\Component\Console\Helper\QuestionHelper; +use Symfony\Component\DependencyInjection\ContainerBuilder; +use Symfony\Component\DependencyInjection\Reference; +use Symfony\Component\EventDispatcher\EventDispatcher; +use Symfony\Component\ExpressionLanguage\ExpressionLanguage; class Container extends ContainerBuilder { diff --git a/src/PHPCR/Shell/Phpcr/PhpcrSession.php b/src/PHPCR/Shell/Phpcr/PhpcrSession.php index d48616c..61c9d9f 100644 --- a/src/PHPCR/Shell/Phpcr/PhpcrSession.php +++ b/src/PHPCR/Shell/Phpcr/PhpcrSession.php @@ -99,7 +99,7 @@ public function chdir($path) $newPath = $path; } elseif ($path === '..') { $newPath = dirname($cwd); - } else if ($this->cwd === '/') { + } elseif ($this->cwd === '/') { $newPath = sprintf('/%s', $path); } else { $newPath = sprintf('%s/%s', $cwd, $path);