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

Commit acb9bf9

Browse files
committed
Move to PSR-1 and PSR-2.
1 parent 7402da3 commit acb9bf9

4 files changed

Lines changed: 22 additions & 36 deletions

File tree

Element.php

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
* New BSD License
1010
*
11-
* Copyright © 2007-2015, Ivan Enderlin. All rights reserved.
11+
* Copyright © 2007-2015, Hoa community. All rights reserved.
1212
*
1313
* Redistribution and use in source and binary forms, with or without
1414
* modification, are permitted provided that the following conditions are met:
@@ -41,23 +41,18 @@
4141
*
4242
* Interface to visit an element.
4343
*
44-
* @author Ivan Enderlin <ivan.enderlin@hoa-project.net>
45-
* @copyright Copyright © 2007-2015 Ivan Enderlin.
44+
* @copyright Copyright © 2007-2015 Hoa community
4645
* @license New BSD License
4746
*/
48-
49-
interface Element {
50-
47+
interface Element
48+
{
5149
/**
5250
* Accept a visitor.
5351
*
54-
* @access public
5552
* @param \Hoa\Visitor\Visit $visitor Visitor.
5653
* @param mixed &$handle Handle (refence).
5754
* @param mixed $eldnah Handle (no reference).
5855
* @return mixed
5956
*/
60-
public function accept ( Visit $visitor,
61-
&$handle = null,
62-
$eldnah = null );
57+
public function accept(Visit $visitor, &$handle = null, $eldnah = null);
6358
}

Test/Unit/Element.php

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
* New BSD License
1010
*
11-
* Copyright © 2007-2015, Ivan Enderlin. All rights reserved.
11+
* Copyright © 2007-2015, Hoa community. All rights reserved.
1212
*
1313
* Redistribution and use in source and binary forms, with or without
1414
* modification, are permitted provided that the following conditions are met:
@@ -43,15 +43,13 @@
4343
*
4444
* Test suite of the interface.
4545
*
46-
* @author Ivan Enderlin <ivan.enderlin@hoa-project.net>
47-
* @copyright Copyright © 2007-2015 Ivan Enderlin.
46+
* @copyright Copyright © 2007-2015 Hoa community
4847
* @license New BSD License
4948
*/
50-
51-
class Element extends Test\Unit\Suite {
52-
53-
public function case_interface ( ) {
54-
49+
class Element extends Test\Unit\Suite
50+
{
51+
public function case_interface()
52+
{
5553
$this
5654
->when($result = new \Mock\Hoa\Visitor\Element())
5755
->object($result)

Test/Unit/Visit.php

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
* New BSD License
1010
*
11-
* Copyright © 2007-2015, Ivan Enderlin. All rights reserved.
11+
* Copyright © 2007-2015, Hoa community. All rights reserved.
1212
*
1313
* Redistribution and use in source and binary forms, with or without
1414
* modification, are permitted provided that the following conditions are met:
@@ -43,15 +43,13 @@
4343
*
4444
* Test suite of the interface.
4545
*
46-
* @author Ivan Enderlin <ivan.enderlin@hoa-project.net>
47-
* @copyright Copyright © 2007-2015 Ivan Enderlin.
46+
* @copyright Copyright © 2007-2015 Hoa community
4847
* @license New BSD License
4948
*/
50-
51-
class Visit extends Test\Unit\Suite {
52-
53-
public function case_interface ( ) {
54-
49+
class Visit extends Test\Unit\Suite
50+
{
51+
public function case_interface()
52+
{
5553
$this
5654
->when($result = new \Mock\Hoa\Visitor\Visit())
5755
->object($result)

Visit.php

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
* New BSD License
1010
*
11-
* Copyright © 2007-2015, Ivan Enderlin. All rights reserved.
11+
* Copyright © 2007-2015, Hoa community. All rights reserved.
1212
*
1313
* Redistribution and use in source and binary forms, with or without
1414
* modification, are permitted provided that the following conditions are met:
@@ -41,23 +41,18 @@
4141
*
4242
* Visitor interface.
4343
*
44-
* @author Ivan Enderlin <ivan.enderlin@hoa-project.net>
45-
* @copyright Copyright © 2007-2015 Ivan Enderlin.
44+
* @copyright Copyright © 2007-2015 Hoa community
4645
* @license New BSD License
4746
*/
48-
49-
interface Visit {
50-
47+
interface Visit
48+
{
5149
/**
5250
* Visit an element.
5351
*
54-
* @access public
5552
* @param \Hoa\Visitor\Element $element Element to visit.
5653
* @param mixed &$handle Handle (reference).
5754
* @param mixed $eldnah Handle (not reference).
5855
* @return mixed
5956
*/
60-
public function visit ( Element $element,
61-
&$handle = null,
62-
$eldnah = null );
57+
public function visit(Element $element, &$handle = null, $eldnah = null);
6358
}

0 commit comments

Comments
 (0)