Skip to content

Commit 9517e1d

Browse files
authored
Merge pull request #195 from phpcr/analysis-86NpPW
Apply fixes from StyleCI
2 parents f8daa3e + 802e349 commit 9517e1d

File tree

10 files changed

+11
-6
lines changed

10 files changed

+11
-6
lines changed

spec/PHPCR/Shell/Query/UpdateParserSpec.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ public function it_should_parse_functions(
9393
$qomf->selector('a', 'dtl:article')->willReturn($source);
9494
$qomf->createQuery($source, null)->willReturn($query);
9595

96-
9796
$sql = <<<'EOT'
9897
UPDATE [dtl:article] AS a SET a.tags = array_replace(a.tags, 'asd', 'dsa')
9998
EOT;
@@ -110,7 +109,6 @@ public function it_should_parse_apply(
110109
$qomf->selector('a', 'dtl:article')->willReturn($source);
111110
$qomf->createQuery($source, null)->willReturn($query);
112111

113-
114112
$sql = <<<'EOT'
115113
UPDATE [dtl:article] AS a APPLY nodetype_add('nt:barbar')
116114
EOT;

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ private function renderChildren($currentNode, $table, $spacers, $filter = null)
176176
}
177177

178178
$primaryItemValue = '';
179+
179180
try {
180181
$primaryItem = $child->getPrimaryItem();
181182

@@ -243,6 +244,7 @@ private function renderProperties($currentNode, $table, $spacers, $filter = null
243244
$i = 0;
244245
foreach ($properties as $name => $property) {
245246
$this->nbProperties++;
247+
246248
try {
247249
$i++;
248250
if (isset($propertyNames[$name])) {

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ public function execute(InputInterface $input, OutputInterface $output)
6969
// convert path to UUID
7070
if (false === UUIDHelper::isUuid($value)) {
7171
$path = $value;
72+
7273
try {
7374
$targetNode = $session->getNode($path);
7475
$value = $targetNode->getIdentifier();

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ public function execute(InputInterface $input, OutputInterface $output)
8080
$updates = $res->offsetGet(1);
8181
$applies = $res->offsetGet(3);
8282

83-
8483
$start = microtime(true);
8584
$result = $query->execute();
8685
$rows = 0;

src/PHPCR/Shell/Console/Command/Shell/PathChangeCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ public function execute(InputInterface $input, OutputInterface $output)
3030
{
3131
$session = $this->get('phpcr.session');
3232
$path = $input->getArgument('path');
33+
3334
try {
3435
$session->chdir($path);
3536
$output->writeln('<comment>'.$session->getCwd().'</comment>');

src/PHPCR/Shell/Phpcr/PhpcrSession.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ public function autocomplete($text)
7070
{
7171
// return autocompletions for current path
7272
$cwd = $this->getCwd();
73+
7374
try {
7475
$node = $this->getNode($cwd);
7576
$list = (array) $node->getNodeNames();

src/PHPCR/Shell/Query/Validator.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
*
1111
*/
1212

13-
1413
namespace \PHPCR\Shell\Query;
1514

1615
class Validator

src/PHPCR/Shell/Subscriber/ProfileLoaderSubscriber.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
use PHPCR\Shell\Config\ProfileLoader;
1717
use PHPCR\Shell\Event\PhpcrShellEvents;
1818
use PHPCR\Shell\Event\ProfileInitEvent;
19-
use Symfony\Component\Console\Helper\QuestionHelper;
2019
use Symfony\Component\Console\Output\OutputInterface;
2120
use Symfony\Component\Console\Question\Question;
2221
use Symfony\Component\EventDispatcher\EventSubscriberInterface;

src/PHPCR/Shell/Subscriber/ProfileWriterSubscriber.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
use PHPCR\Shell\Config\ProfileLoader;
1616
use PHPCR\Shell\Event\PhpcrShellEvents;
1717
use PHPCR\Shell\Event\ProfileInitEvent;
18-
use Symfony\Component\Console\Helper\QuestionHelper;
1918
use Symfony\Component\Console\Question\ConfirmationQuestion;
2019
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
2120

src/PHPCR/Shell/Test/ContextBase.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,7 @@ public function thereShouldNotExistANamespacePrefix($arg1)
390390
public function thereShouldExistANodeAt($arg1)
391391
{
392392
$session = $this->getSession();
393+
393394
try {
394395
$session->getNode($arg1);
395396
} catch (PathNotFoundException $e) {
@@ -472,6 +473,7 @@ public function thereShouldNotExistANodeAt($arg1)
472473

473474
try {
474475
$session->getNode($arg1);
476+
475477
throw new \Exception('Node at path '.$arg1.' exists.');
476478
} catch (PathNotFoundException $e) {
477479
// good.. not does not exist
@@ -505,6 +507,7 @@ public function thereShouldNotExistAPropertyAt($arg1)
505507

506508
try {
507509
$session->getProperty($arg1);
510+
508511
throw new \Exception('Property exists at "'.$arg1.'"');
509512
} catch (PathNotFoundException $e) {
510513
// good
@@ -577,6 +580,7 @@ public function thereExistsAWorkspace($arg1)
577580
{
578581
$session = $this->getSession();
579582
$workspace = $session->getWorkspace();
583+
580584
try {
581585
$workspace->createWorkspace($arg1);
582586
} catch (\Exception $e) {
@@ -591,6 +595,7 @@ public function thereShouldNotExistAWorkspaceCalled($arg1)
591595
{
592596
try {
593597
$this->thereShouldExistAWorkspaceCalled($arg1);
598+
594599
throw new \Exception(sprintf('Workspace "%s" exists.', $arg1));
595600
} catch (\Exception $e) {
596601
}
@@ -642,6 +647,7 @@ public function thereShouldNotExistANodeTypeNamed($arg1)
642647
$session = $this->getSession();
643648
$workspace = $session->getWorkspace();
644649
$nodeTypeManager = $workspace->getNodeTypeManager();
650+
645651
try {
646652
$nodeTypeManager->getNodeType($arg1);
647653
} catch (\Exception $e) {

0 commit comments

Comments
 (0)