Skip to content

Commit a8301d9

Browse files
authored
Merge pull request #218 from phpcr/semantic-branch-naming
adjust to semantic branch naming
2 parents 8131524 + 958f041 commit a8301d9

File tree

7 files changed

+28
-19
lines changed

7 files changed

+28
-19
lines changed

.github/workflows/test-application.yaml

+14
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,13 @@ jobs:
4949
- name: Checkout project
5050
uses: actions/checkout@v2
5151

52+
# default java installation not able to run jackrabbit. use same as jackalope-jackrabbit action
53+
- name: Install and configure Java
54+
uses: actions/setup-java@v3
55+
with:
56+
distribution: temurin
57+
java-version: '8'
58+
5259
- name: Install and configure PHP
5360
uses: shivammathur/setup-php@v2
5461
with:
@@ -61,6 +68,13 @@ jobs:
6168
dependency-versions: ${{ matrix.dependencies }}
6269
composer-options: ${{ matrix.composer-options }}
6370

71+
- name: Cache Jackrabbit
72+
id: cache-jackrabbit
73+
uses: actions/cache@v3
74+
with:
75+
path: vendor/jackalope/jackalope-jackrabbit/bin/jackrabbit-standalone-*
76+
key: jackrabbit
77+
6478
- name: Start Jackrabbit
6579
run: |
6680
JACKRABBIT_VERSION=2.21.10 tests/bin/travis_jackrabbit.sh

composer.json

+1-6
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,5 @@
4040
"autoload": {
4141
"psr-0": {"": "src"}
4242
},
43-
"bin": ["bin/phpcrsh"],
44-
"extra": {
45-
"branch-alias": {
46-
"dev-master": "1.x-dev"
47-
}
48-
}
43+
"bin": ["bin/phpcrsh"]
4944
}

spec/PHPCR/Shell/Config/ProfileLoaderSpec.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public function it_should_save_a_given_profile(
8888
password: leech
8989

9090
EOT
91-
, 0600)->shouldBeCalled();
91+
, 0600)->shouldBeCalled();
9292
$this->saveProfile($profile);
9393
}
9494
}

src/PHPCR/Shell/Config/Profile.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ protected function validateDomain($domain)
5353
/**
5454
* Set a domain configuration.
5555
*
56-
* @param string $domain
57-
* @param $key
56+
* @param string $domain
57+
* @param $key
5858
* @param array|null $value
5959
*/
6060
public function set($domain, $key, $value = null)

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

+5-5
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,11 @@ public function execute(InputInterface $input, OutputInterface $output)
137137
if ($config['show_execution_time_list']) {
138138
$output->writeln(
139139
sprintf(
140-
'%s nodes, %s properties in set (%s sec)',
141-
$this->nbNodes,
142-
$this->nbProperties,
143-
number_format($this->time, $config['execution_time_expansion'])
144-
)
140+
'%s nodes, %s properties in set (%s sec)',
141+
$this->nbNodes,
142+
$this->nbProperties,
143+
number_format($this->time, $config['execution_time_expansion'])
144+
)
145145
);
146146
}
147147

src/PHPCR/Shell/Console/Helper/ResultFormatterHelper.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@ public function formatQueryResult(QueryResultInterface $result, OutputInterface
9292
if (true === $this->config['show_execution_time_query']) {
9393
$output->writeln(
9494
sprintf(
95-
'%s rows in set (%s sec)',
96-
count($result->getRows()),
97-
number_format($elapsed, $this->config['execution_time_expansion'])
98-
)
95+
'%s rows in set (%s sec)',
96+
count($result->getRows()),
97+
number_format($elapsed, $this->config['execution_time_expansion'])
98+
)
9999
);
100100
}
101101
}

tests/PHPCR/Shell/Helper/EditorHelperTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function testFromValue()
4040
Two
4141
Three
4242
EOT
43-
,
43+
,
4444
$res
4545
);
4646
}

0 commit comments

Comments
 (0)