Skip to content

Commit a4baec7

Browse files
committed
cs fixes
1 parent dcb1cc6 commit a4baec7

File tree

59 files changed

+116
-149
lines changed

Some content is hidden

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

59 files changed

+116
-149
lines changed

inc/FixtureLoaderInterface.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,8 @@ interface FixtureLoaderInterface
1515
*
1616
* Default fixtures in the jcr system view format live folder fixtures/
1717
*
18-
* @param string $fixture the fixtures "name", i.e. "general/base"
18+
* @param string $fixture the fixtures "name", i.e. "general/base"
1919
* @param string $workspaceKey the config key for the target workspace, optional
20-
*
21-
* @return void
2220
*/
2321
public function import($fixture, $workspaceKey = 'workspace');
2422
}

tests/04_Connecting/SimpleCredentialsTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ protected function assertSimpleCredentials($user, $password)
2222
{
2323
$cr = new \PHPCR\SimpleCredentials($user, $password);
2424
$this->assertInstanceOf('PHPCR\CredentialsInterface', $cr);
25+
2526
return $cr;
2627
}
2728

tests/04_Connecting/WorkspaceReadMethodsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class WorkspaceReadMethodsTest extends \PHPCR\Test\BaseCase
1717

1818
//4.5 Workspace Read Methods
1919

20-
function setUp()
20+
public function setUp()
2121
{
2222
parent::setUp();
2323
$this->workspace = $this->sharedFixture['session']->getWorkspace();

tests/05_Reading/EncodingTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
class EncodingTest extends \PHPCR\Test\BaseCase
1111
{
1212

13-
static public function setupBeforeClass($fixtures = '05_Reading/encoding')
13+
public static function setupBeforeClass($fixtures = '05_Reading/encoding')
1414
{
1515
parent::setupBeforeClass($fixtures);
1616
}

tests/05_Reading/NodeReadMethodsTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ public function testGetNodes()
155155
$this->assertInstanceOf('Countable', $iterator);
156156

157157
$this->assertCount(8, $iterator);
158-
foreach($iterator as $node) {
158+
foreach ($iterator as $node) {
159159
$this->assertInstanceOf('PHPCR\NodeInterface', $node);
160160
}
161161
}
@@ -245,7 +245,7 @@ public function testGetNodeNames()
245245
$this->assertInstanceOf('Iterator', $iterator);
246246

247247
$names = array();
248-
foreach($iterator as $name) {
248+
foreach ($iterator as $name) {
249249
$names[] = $name;
250250
}
251251

tests/05_Reading/PropertyReadMethodsTest.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function setUp()
5555
}
5656

5757
/*** item base methods for property ***/
58-
function testGetAncestor()
58+
public function testGetAncestor()
5959
{
6060
$ancestor = $this->dateProperty->getAncestor(0);
6161
$this->assertNotNull($ancestor);
@@ -73,7 +73,7 @@ function testGetAncestor()
7373
$this->assertInstanceOf('PHPCR\PropertyInterface', $ancestor);
7474
$this->assertTrue($this->dateProperty->isSame($ancestor));
7575
}
76-
function testGetDepthProperty()
76+
public function testGetDepthProperty()
7777
{
7878
$this->assertEquals(2, $this->createdProperty->getDepth());
7979
$this->assertEquals(4, $this->dateProperty->getDepth());
@@ -115,7 +115,7 @@ public function testAccept()
115115
$this->createdProperty->accept($mock);
116116
}
117117

118-
function testGetPropertyName()
118+
public function testGetPropertyName()
119119
{
120120
$name = $this->createdProperty->getName();
121121
$this->assertEquals('jcr:created', $name);
@@ -452,7 +452,6 @@ public function testGetLength()
452452
$this->assertEquals(29, $this->dateProperty->getLength());
453453
}
454454

455-
456455
//binary length is tested in BinaryReadMethodsTest
457456

458457
// testGetLengthUnsuccessfull (return -1 on getLength) "should never happen" so no test

tests/05_Reading/SessionReadMethodsTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@ public function testGetPropertiesInvalidArgument()
179179
$this->sharedFixture['session']->getProperties('no iterable thing');
180180
}
181181

182-
183182
/**
184183
* it is forbidden to call getItem on the session with a relative path
185184
* @expectedException \PHPCR\PathNotFoundException
@@ -227,7 +226,6 @@ public function testItemExistsInvalidPath()
227226
$this->sharedFixture['session']->itemExists('//');
228227
}
229228

230-
231229
public function testNodeExists()
232230
{
233231
$this->assertTrue($this->sharedFixture['session']->nodeExists('/'));

tests/06_Query/CharacterTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
require_once(__DIR__ . '/../../inc/BaseCase.php');
88

9-
109
class CharacterTest extends \PHPCR\Test\BaseCase
1110
{
1211
public static function setupBeforeClass($fixtures = '06_Query/characters')
@@ -113,4 +112,4 @@ public function testQueryWithColon()
113112
QueryInterface::JCR_SQL2
114113
)->execute();
115114
}
116-
}
115+
}

tests/06_Query/NodeViewTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
namespace PHPCR\Tests\Query;
33

4-
require_once('QueryBaseCase.php');
4+
require_once 'QueryBaseCase.php';
55

66
/**
77
* test the query result node view $ 6.11.2

tests/06_Query/QOM/ConvertQueriesBackAndForthTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
namespace PHPCR\Tests\Query\QOM;
33

44
require_once(__DIR__ . '/../../../inc/BaseCase.php');
5-
require_once('Sql2TestQueries.php');
6-
require_once('QomTestQueries.php');
5+
require_once 'Sql2TestQueries.php';
6+
require_once 'QomTestQueries.php';
77

88
use PHPCR\Util\QOM\Sql2Generator;
99
use PHPCR\Util\QOM\Sql2ToQomQueryConverter;
@@ -43,7 +43,7 @@ public function setUp()
4343

4444
try {
4545
$this->sql2Parser = new Sql2ToQomQueryConverter($factory);
46-
} catch(\PHPCR\UnsupportedRepositoryOperationException $e) {
46+
} catch (\PHPCR\UnsupportedRepositoryOperationException $e) {
4747
$this->markTestSkipped('Repository does not support the QOM factory');
4848
}
4949
}

0 commit comments

Comments
 (0)