Skip to content

Commit b6197fa

Browse files
committed
coding style: fixes in code
1 parent bb87b2a commit b6197fa

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

tests/ComponentModel/Container.attached.phpt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,37 +13,37 @@ require __DIR__ . '/../bootstrap.php';
1313

1414
class TestClass extends Container implements ArrayAccess
1515
{
16-
function attached($obj)
16+
public function attached($obj)
1717
{
1818
Notes::add(get_class($this) . '::ATTACHED(' . get_class($obj) . ')');
1919
}
2020

2121

22-
function detached($obj)
22+
public function detached($obj)
2323
{
2424
Notes::add(get_class($this) . '::detached(' . get_class($obj) . ')');
2525
}
2626

2727

28-
function offsetSet($name, $component)
28+
public function offsetSet($name, $component)
2929
{
3030
$this->addComponent($component, $name);
3131
}
3232

3333

34-
function offsetGet($name)
34+
public function offsetGet($name)
3535
{
3636
return $this->getComponent($name, true);
3737
}
3838

3939

40-
function offsetExists($name)
40+
public function offsetExists($name)
4141
{
4242
return $this->getComponent($name) !== null;
4343
}
4444

4545

46-
function offsetUnset($name)
46+
public function offsetUnset($name)
4747
{
4848
$this->removeComponent($this->getComponent($name, true));
4949
}

tests/ComponentModel/Container.clone.phpt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,37 +14,37 @@ require __DIR__ . '/../bootstrap.php';
1414

1515
class TestClass extends Container implements ArrayAccess
1616
{
17-
function attached($obj)
17+
public function attached($obj)
1818
{
1919
Notes::add(get_class($this) . '::ATTACHED(' . get_class($obj) . ')');
2020
}
2121

2222

23-
function detached($obj)
23+
public function detached($obj)
2424
{
2525
Notes::add(get_class($this) . '::detached(' . get_class($obj) . ')');
2626
}
2727

2828

29-
function offsetSet($name, $component)
29+
public function offsetSet($name, $component)
3030
{
3131
$this->addComponent($component, $name);
3232
}
3333

3434

35-
function offsetGet($name)
35+
public function offsetGet($name)
3636
{
3737
return $this->getComponent($name, true);
3838
}
3939

4040

41-
function offsetExists($name)
41+
public function offsetExists($name)
4242
{
4343
return $this->getComponent($name) !== null;
4444
}
4545

4646

47-
function offsetUnset($name)
47+
public function offsetUnset($name)
4848
{
4949
$this->removeComponent($this->getComponent($name, true));
5050
}
@@ -60,7 +60,7 @@ function export($obj)
6060
}
6161
}
6262
return $res;
63-
};
63+
}
6464

6565

6666
class A extends TestClass

0 commit comments

Comments
 (0)