Skip to content

Commit 08d5d8f

Browse files
authored
Merge pull request #213 from phpcr/analysis-NAr7gv
Apply fixes from StyleCI
2 parents 78dd89c + 0634086 commit 08d5d8f

File tree

86 files changed

+214
-107
lines changed

Some content is hidden

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

86 files changed

+214
-107
lines changed

spec/PHPCR/Shell/Event/ProfileInitEventSpec.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ public function let(
3030
OutputInterface $output
3131
) {
3232
$this->beConstructedWith(
33-
$profile, $input, $output
33+
$profile,
34+
$input,
35+
$output
3436
);
3537
}
3638

spec/PHPCR/Shell/Serializer/YamlEncoderSpec.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,13 @@ public function it_is_initializable()
2424
public function it_should_encode_to_yaml()
2525
{
2626
$data = ['foobar' => 'barfoo', 'barfoo' => 'foobar'];
27-
$this->encode($data, 'yaml')->shouldReturn(<<<'EOT'
27+
$this->encode($data, 'yaml')->shouldReturn(
28+
<<<'EOT'
2829
foobar: barfoo
2930
barfoo: foobar
3031

3132
EOT
32-
);
33+
);
3334
}
3435

3536
public function is_should_decode_yaml()

src/PHPCR/Shell/Config/Profile.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ protected function validateDomain($domain)
4444
if (!array_key_exists($domain, $this->profile)) {
4545
throw new \InvalidArgumentException(sprintf(
4646
'Unknown profile domain "%s", can only use one of: %s',
47-
$domain, implode(', ', array_keys($this->profile))
47+
$domain,
48+
implode(', ', array_keys($this->profile))
4849
));
4950
}
5051
}
@@ -87,7 +88,8 @@ public function get($domain, $key = null)
8788
if (!isset($this->profile[$domain][$key])) {
8889
throw new \InvalidArgumentException(sprintf(
8990
'Unknown key "%s" for profile domain "%s"',
90-
$key, $domain
91+
$key,
92+
$domain
9193
));
9294
}
9395

src/PHPCR/Shell/Config/ProfileLoader.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,10 @@ public function loadProfile(Profile $profile)
6969
$path = $this->getProfilePath($profile->getName());
7070

7171
if (!file_exists($path)) {
72-
throw new \InvalidArgumentException(sprintf('Profile "%s" does not exist, expected to find it in "%s"',
73-
$profile->getName(), $path
72+
throw new \InvalidArgumentException(sprintf(
73+
'Profile "%s" does not exist, expected to find it in "%s"',
74+
$profile->getName(),
75+
$path
7476
));
7577
}
7678

@@ -99,7 +101,8 @@ public function saveProfile(Profile $profile, $overwrite = false)
99101

100102
if (false === $overwrite && file_exists($path)) {
101103
throw new FileExistsException(sprintf(
102-
'Profile already exists at "%s"', $path
104+
'Profile already exists at "%s"',
105+
$path
103106
));
104107
}
105108

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ protected function configure()
2727
$this->setDescription('List the privileges of the repository or a specific node');
2828
$this->addArgument('absPath', InputArgument::OPTIONAL, 'Absolute path for node, optional.');
2929
$this->addOption('supported', null, InputOption::VALUE_NONE, 'List privileges supported by repository rather than current session.');
30-
$this->setHelp(<<<'HERE'
30+
$this->setHelp(
31+
<<<'HERE'
3132
NOTE: This command is not supported by Jackrabbit.
3233
3334
List the privileges of the current session or the node at the given path.
@@ -49,7 +50,7 @@ protected function configure()
4950
list the privileges held by the current session, but rather the privileges
5051
supported by the repository.
5152
HERE
52-
);
53+
);
5354

5455
$this->requiresDescriptor(RepositoryInterface::OPTION_ACCESS_CONTROL_SUPPORTED, true);
5556
}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ protected function configure()
2525
$this->setName('lock:info');
2626
$this->setDescription('Show details of the lock that applies to the specified node path');
2727
$this->addArgument('path', InputArgument::REQUIRED, 'Path of locked node');
28-
$this->setHelp(<<<'HERE'
28+
$this->setHelp(
29+
<<<'HERE'
2930
Shows the details of the lock that applies to the node at the specified
3031
path.
3132

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ protected function configure()
2929
$this->addOption('session-scoped', null, InputOption::VALUE_NONE, 'If given, this lock expires with the current session; if not it expires when explicitly or automatically unlocked for some other reason');
3030
$this->addOption('timeout', null, InputOption::VALUE_REQUIRED, 'Desired lock timeout in seconds (servers are free to ignore this value). If not used lock will not timeout');
3131
$this->addOption('owner-info', null, InputOption::VALUE_REQUIRED, ' string containing owner information supplied by the client; servers are free to ignore this value. If none is specified, the implementation chooses one (i.e. user name of current backend authentication credentials');
32-
$this->setHelp(<<<'HERE'
32+
$this->setHelp(
33+
<<<'HERE'
3334
Places a lock on the node at <info>path</info>.
3435
3536
If successful, the node is said to hold the lock.

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ protected function configure()
2424
$this->setName('lock:refresh');
2525
$this->setDescription('Refresh the TTL of the lock of the node at the given path');
2626
$this->addArgument('path', InputArgument::REQUIRED, 'Path of node containing the lock to be refreshed');
27-
$this->setHelp(<<<'HERE'
27+
$this->setHelp(
28+
<<<'HERE'
2829
If this lock's time-to-live is governed by a timer, this command resets
2930
that timer so that the lock does not timeout and expire.
3031

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ protected function configure()
2424
$this->setName('lock:token:add');
2525
$this->setDescription('Add a lock token to the current session');
2626
$this->addArgument('lockToken', InputArgument::REQUIRED, 'Lock token');
27-
$this->setHelp(<<<'HERE'
27+
$this->setHelp(
28+
<<<'HERE'
2829
Adds the specified lock token to the current Session.
2930
3031
Holding a lock token makes the current Session the owner of the lock

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ protected function configure()
2323
{
2424
$this->setName('lock:token:list');
2525
$this->setDescription('List a lock token to the current session');
26-
$this->setHelp(<<<'HERE'
26+
$this->setHelp(
27+
<<<'HERE'
2728
Show a list of previously registered tokens.
2829
2930
Displays all lock tokens currently held by the

0 commit comments

Comments
 (0)