Skip to content

Commit cd64ef8

Browse files
committed
Applied phpcsfixer
1 parent e61492f commit cd64ef8

File tree

73 files changed

+33
-117
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+33
-117
lines changed

src/PHPCR/Shell/Config/Config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/**
66
* Configuration profile object
77
*/
8-
class Config implements \ArrayAccess, \Iterator
8+
class Config implements \ArrayAccess, \Iterator
99
{
1010
private $data;
1111

src/PHPCR/Shell/Config/ConfigManager.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
use Symfony\Component\Yaml\Yaml;
66
use Symfony\Component\Console\Output\OutputInterface;
77
use Symfony\Component\Filesystem\Filesystem;
8-
use PHPCR\Shell\Config\Config;
98

109
/**
1110
* Configuration manager
@@ -120,7 +119,7 @@ public function loadConfig()
120119
if ($this->filesystem->exists($fullPath)) {
121120
$userConfig = Yaml::parse(file_get_contents($fullPath));
122121
}
123-
122+
124123
if ($this->filesystem->exists($fullDistPath)) {
125124
$distConfig = Yaml::parse(file_get_contents($fullDistPath));
126125
} else {

src/PHPCR/Shell/Config/ProfileLoader.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,19 @@ class ProfileLoader
1717
public function __construct(ConfigManager $config, Filesystem $filesystem = null)
1818
{
1919
$this->config = $config;
20-
$this->filesystem = $filesystem ? : new Filesystem();
20+
$this->filesystem = $filesystem ?: new Filesystem();
2121
}
2222

2323
protected function getProfileDir()
2424
{
25-
$dir = sprintf('%s/%s', $this->config->getConfigDir(), self::DIR_PROFILE);;
25+
$dir = sprintf('%s/%s', $this->config->getConfigDir(), self::DIR_PROFILE);
2626

2727
return $dir;
2828
}
2929

3030
public function getProfilePath($name)
3131
{
32-
$dir = sprintf('%s/%s/%s.yml', $this->config->getConfigDir(), self::DIR_PROFILE, $name);;
32+
$dir = sprintf('%s/%s/%s.yml', $this->config->getConfigDir(), self::DIR_PROFILE, $name);
3333

3434
return $dir;
3535
}

src/PHPCR/Shell/Console/Application/EmbeddedApplication.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@
33
namespace PHPCR\Shell\Console\Application;
44

55
use PHPCR\Shell\DependencyInjection\Container;
6-
use PHPCR\Shell\Console\Helper\PhpcrHelper;
76
use PHPCR\Shell\PhpcrShell;
8-
use PHPCR\SessionInterface;
9-
use PHPCR\Shell\Phpcr\PhpcrSession;
107

118
/**
129
* Subclass of the full ShellApplication for running as an EmbeddedApplication

src/PHPCR/Shell/Console/Application/Shell.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ private function autocompleter($text)
107107
// $info = readline_info();
108108
// $text = substr($info['line_buffer'], 0, $info['end']);
109109
$list = $this->application->getContainer()->get('console.input.autocomplete')->autocomplete('');
110+
110111
return $list;
111112
}
112113

src/PHPCR/Shell/Console/Application/ShellApplication.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,11 @@
1111
use Symfony\Component\Console\Output\OutputInterface;
1212
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
1313
use Symfony\Component\EventDispatcher\EventDispatcher;
14-
1514
use PHPCR\Shell\Console\Command\Phpcr as CommandPhpcr;
1615
use PHPCR\Shell\Console\Command\Shell as CommandShell;
17-
1816
use PHPCR\Shell\Event;
1917
use PHPCR\Shell\Event\ApplicationInitEvent;
2018
use PHPCR\Shell\Event\PhpcrShellEvents;
21-
use PHPCR\Shell\Console\Command\Phpcr\PhpcrShellCommand;
2219
use PHPCR\Shell\Config\Profile;
2320
use PHPCR\Shell\PhpcrShell;
2421
use PHPCR\Shell\Console\Command\Phpcr\BasePhpcrCommand;
@@ -58,7 +55,7 @@ class ShellApplication extends Application
5855
public function __construct($container)
5956
{
6057
parent::__construct(PhpcrShell::APP_NAME, PhpcrShell::APP_VERSION);
61-
$this->dispatcher = $container->get('event.dispatcher') ? : new EventDispatcher();
58+
$this->dispatcher = $container->get('event.dispatcher') ?: new EventDispatcher();
6259
$this->setDispatcher($this->dispatcher);
6360
$this->container = $container;
6461
}
@@ -319,5 +316,4 @@ public function setDebug($debug)
319316
{
320317
$this->debug = $debug;
321318
}
322-
323319
}

src/PHPCR/Shell/Console/Command/Phpcr/AccessControlPrivilegeListCommand.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace PHPCR\Shell\Console\Command\Phpcr;
44

55
use Symfony\Component\Console\Input\InputInterface;
6-
76
use Symfony\Component\Console\Output\OutputInterface;
87
use Symfony\Component\Console\Input\InputArgument;
98
use Symfony\Component\Console\Input\InputOption;

src/PHPCR/Shell/Console/Command/Phpcr/LockInfoCommand.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace PHPCR\Shell\Console\Command\Phpcr;
44

5-
use Symfony\Component\Console\Command\Command;
65
use Symfony\Component\Console\Input\InputInterface;
76
use Symfony\Component\Console\Output\OutputInterface;
87
use Symfony\Component\Console\Input\InputArgument;

src/PHPCR/Shell/Console/Command/Phpcr/LockLockCommand.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace PHPCR\Shell\Console\Command\Phpcr;
44

5-
use Symfony\Component\Console\Command\Command;
65
use Symfony\Component\Console\Input\InputInterface;
76
use Symfony\Component\Console\Output\OutputInterface;
87
use Symfony\Component\Console\Input\InputArgument;

src/PHPCR/Shell/Console/Command/Phpcr/LockRefreshCommand.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ public function execute(InputInterface $input, OutputInterface $output)
3737
$nodes = $session->findNodes($path);
3838

3939
foreach ($nodes as $node) {
40-
4140
$lock = $lockManager->getLock($node->getPath());
4241
$lock->refresh();
4342
}

0 commit comments

Comments
 (0)