Skip to content

Commit

Permalink
coding style: fixes in code
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Jul 11, 2017
1 parent bb87b2a commit b6197fa
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
12 changes: 6 additions & 6 deletions tests/ComponentModel/Container.attached.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -13,37 +13,37 @@ require __DIR__ . '/../bootstrap.php';

class TestClass extends Container implements ArrayAccess
{
function attached($obj)
public function attached($obj)
{
Notes::add(get_class($this) . '::ATTACHED(' . get_class($obj) . ')');
}


function detached($obj)
public function detached($obj)
{
Notes::add(get_class($this) . '::detached(' . get_class($obj) . ')');
}


function offsetSet($name, $component)
public function offsetSet($name, $component)
{
$this->addComponent($component, $name);
}


function offsetGet($name)
public function offsetGet($name)
{
return $this->getComponent($name, true);
}


function offsetExists($name)
public function offsetExists($name)
{
return $this->getComponent($name) !== null;
}


function offsetUnset($name)
public function offsetUnset($name)
{
$this->removeComponent($this->getComponent($name, true));
}
Expand Down
14 changes: 7 additions & 7 deletions tests/ComponentModel/Container.clone.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -14,37 +14,37 @@ require __DIR__ . '/../bootstrap.php';

class TestClass extends Container implements ArrayAccess
{
function attached($obj)
public function attached($obj)
{
Notes::add(get_class($this) . '::ATTACHED(' . get_class($obj) . ')');
}


function detached($obj)
public function detached($obj)
{
Notes::add(get_class($this) . '::detached(' . get_class($obj) . ')');
}


function offsetSet($name, $component)
public function offsetSet($name, $component)
{
$this->addComponent($component, $name);
}


function offsetGet($name)
public function offsetGet($name)
{
return $this->getComponent($name, true);
}


function offsetExists($name)
public function offsetExists($name)
{
return $this->getComponent($name) !== null;
}


function offsetUnset($name)
public function offsetUnset($name)
{
$this->removeComponent($this->getComponent($name, true));
}
Expand All @@ -60,7 +60,7 @@ function export($obj)
}
}
return $res;
};
}


class A extends TestClass
Expand Down

0 comments on commit b6197fa

Please sign in to comment.