@@ -49,11 +49,17 @@ |
||
49 | 49 | $this->dirs = $dirs; |
50 | 50 | } |
51 | 51 | |
52 | + /** |
|
53 | + * @param string $name |
|
54 | + */ |
|
52 | 55 | public function define($name, $value = 1) |
53 | 56 | { |
54 | 57 | $this->defines[$name] = $value; |
55 | 58 | } |
56 | 59 | |
60 | + /** |
|
61 | + * @param string $name |
|
62 | + */ |
|
57 | 63 | public function undefine($name) |
58 | 64 | { |
59 | 65 | unset($this->defines[$name]); |
@@ -14,7 +14,8 @@ |
||
14 | 14 | class testParse_MethodNonDoc |
15 | 15 | { |
16 | 16 | // @rest\method get something |
17 | - public function Method1() { |
|
17 | + public function Method1() |
|
18 | + { |
|
18 | 19 | |
19 | 20 | } |
20 | 21 | } |
@@ -17,7 +17,8 @@ |
||
17 | 17 | * Description of method |
18 | 18 | * @rest\description some description |
19 | 19 | */ |
20 | - public function Method1() { |
|
20 | + public function Method1() |
|
21 | + { |
|
21 | 22 | // @rest\method get something |
22 | 23 | } |
23 | 24 | } |
@@ -17,7 +17,8 @@ |
||
17 | 17 | * Description of method |
18 | 18 | * @rest\description some description |
19 | 19 | */ |
20 | - public function Method1() { |
|
20 | + public function Method1() |
|
21 | + { |
|
21 | 22 | |
22 | 23 | } |
23 | 24 | } |
@@ -18,7 +18,8 @@ |
||
18 | 18 | * @rest\description some description |
19 | 19 | * @rest\method get something |
20 | 20 | */ |
21 | - public function Method1() { |
|
21 | + public function Method1() |
|
22 | + { |
|
22 | 23 | |
23 | 24 | } |
24 | 25 | } |
@@ -15,7 +15,8 @@ |
||
15 | 15 | /** |
16 | 16 | * @rest\version 2 |
17 | 17 | */ |
18 | - public function Method1() { |
|
18 | + public function Method1() |
|
19 | + { |
|
19 | 20 | |
20 | 21 | } |
21 | 22 |
@@ -7,7 +7,8 @@ |
||
7 | 7 | * @rest\title CurlyBraceFunction |
8 | 8 | * @rest\api MyApi Example |
9 | 9 | */ |
10 | -class testParse_CurlyBraces { |
|
10 | +class testParse_CurlyBraces |
|
11 | +{ |
|
11 | 12 | |
12 | 13 | /** |
13 | 14 | * @rest\endpoint /endpoint |
@@ -1,6 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -class Issue0005Test extends SwaggerGen_TestCase { |
|
3 | +class Issue0005Test extends SwaggerGen_TestCase |
|
4 | +{ |
|
4 | 5 | |
5 | 6 | /** |
6 | 7 | * @covers \SwaggerGen\Swagger\Swagger::__construct |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -spl_autoload_register(function ($classname) { |
|
3 | +spl_autoload_register(function($classname) { |
|
4 | 4 | $file = dirname(__DIR__) . DIRECTORY_SEPARATOR . str_replace('\\', DIRECTORY_SEPARATOR, $classname) . '.php'; |
5 | 5 | if (is_file($file)) { |
6 | 6 | require_once $file; |