Skip to content

Commit 27e3b22

Browse files
committed
Code formatting
1 parent e310910 commit 27e3b22

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

src/MyCLabs/Enum/Enum.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
22
/**
33
* @link http://github.com/myclabs/php-enum
4-
* @author Matthieu Napoli <[email protected]>
54
* @license http://www.opensource.org/licenses/mit-license.php MIT (see the LICENSE file)
65
*/
76

@@ -11,10 +10,11 @@
1110
* Base Enum class
1211
*
1312
* Create an enum by implementing this class and adding class constants.
13+
*
14+
* @author Matthieu Napoli <[email protected]>
1415
*/
1516
abstract class Enum
1617
{
17-
1818
/**
1919
* Enum value
2020
* @var mixed
@@ -85,5 +85,4 @@ public static function __callStatic($name, $arguments)
8585
}
8686
throw new \BadMethodCallException("No static method or enum constant '$name' in class " . get_called_class());
8787
}
88-
8988
}

tests/EnumTest.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
*/
1616
class EnumTest extends \PHPUnit_Framework_TestCase
1717
{
18-
1918
/**
2019
* getValue()
2120
*/
@@ -103,20 +102,18 @@ public function testBadStaticAccess()
103102
{
104103
EnumFixture::UNKNOWN();
105104
}
106-
107105
}
108106

109107
/**
110108
* Fixture class
109+
*
111110
* @method static EnumFixture FOO()
112111
* @method static EnumFixture BAR()
113112
* @method static EnumFixture NUMBER()
114113
*/
115114
class EnumFixture extends Enum
116115
{
117-
118116
const FOO = "foo";
119117
const BAR = "bar";
120118
const NUMBER = 42;
121-
122119
}

0 commit comments

Comments
 (0)