Skip to content

Commit 7d22add

Browse files
committed
fix PHPCS
1 parent 21c52d2 commit 7d22add

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/Datasource/EntityTrait.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,10 @@ public function set($property, $value = null, $options = []) {
230230

231231
$this->dirty($p, true);
232232

233-
if (!isset($this->_original[$p]) && isset($this->_properties[$p]) && $this->_properties[$p] !== $value) {
233+
if (!isset($this->_original[$p]) &&
234+
isset($this->_properties[$p]) &&
235+
$this->_properties[$p] !== $value
236+
) {
234237
$this->_original[$p] = $this->_properties[$p];
235238
}
236239

@@ -509,7 +512,9 @@ public function extract(array $properties, $onlyDirty = false) {
509512
public function extractOriginal(array $properties) {
510513
$result = [];
511514
foreach ($properties as $property) {
512-
if (($this->getOriginal($property) !== null) && ($this->getOriginal($property) !== $this->get($property))) {
515+
if ($this->getOriginal($property) !== null &&
516+
$this->getOriginal($property) !== $this->get($property)
517+
) {
513518
$result[$property] = $this->getOriginal($property);
514519
}
515520
}

tests/TestCase/ORM/EntityTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ public function testSetOneParamNoSetters() {
4343
$this->assertSame(1, $entity->id);
4444
$this->assertEquals(1, $entity->getOriginal('id'));
4545
$this->assertEquals('bar', $entity->getOriginal('foo'));
46-
4746
}
4847

4948
/**

0 commit comments

Comments
 (0)