Skip to content

Commit

Permalink
Code style
Browse files Browse the repository at this point in the history
  • Loading branch information
eiriksm committed Jan 25, 2019
1 parent d4c105c commit c04f6ac
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/Unit/DummyNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ class DummyNode

private $owner;

public function getOwner() {
public function getOwner()
{
// Since a user and a node shares alot of getters and so on, we fake an
// owner on the class itself.
return $this;
}

public function get($field) {
public function get($field)
{
if (!empty($this->{$field})) {
return $this->{$field};
}
Expand All @@ -35,7 +37,8 @@ public function id()
return $this->nid;
}

public function set($field, $value) {
public function set($field, $value)
{
if ($field === 'nid') {
$this->nid = $value;
return;
Expand Down

0 comments on commit c04f6ac

Please sign in to comment.