Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit e8140f7

Browse files
authored
Apply fixes from StyleCI (#222)
[ci skip] [skip ci]
1 parent 8ac1db9 commit e8140f7

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/Adapter/PhpcrOdmAdapter.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ class PhpcrOdmAdapter implements AdapterInterface
3030
const TAG_NO_MULTILANG = 'no-multilang';
3131

3232
protected $dm;
33+
3334
protected $baseRoutePath;
35+
3436
protected $autoRouteFqcn;
3537

3638
/**
@@ -215,7 +217,7 @@ public function compareAutoRouteLocale(AutoRouteInterface $autoRoute, $locale)
215217
{
216218
$autoRouteLocale = $autoRoute->getLocale();
217219

218-
if ($autoRouteLocale === self::TAG_NO_MULTILANG) {
220+
if (self::TAG_NO_MULTILANG === $autoRouteLocale) {
219221
$autoRouteLocale = null;
220222
}
221223

tests/Unit/Adapter/PhpcrOdmAdapterTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,11 @@ class PhpcrOdmAdapterTest extends \PHPUnit_Framework_TestCase
3939
private $metadata;
4040

4141
private $contentDocument;
42+
4243
private $contentDocument2;
44+
4345
private $baseNode;
46+
4447
private $parentRoute;
4548

4649
/**
@@ -62,6 +65,7 @@ class PhpcrOdmAdapterTest extends \PHPUnit_Framework_TestCase
6265
* @var NodeInterface|ObjectProphecy
6366
*/
6467
private $phpcrRootNode;
68+
6569
private $baseRoutePath;
6670

6771
/**

0 commit comments

Comments
 (0)