Completed
Pull Request — master (#26)
by
unknown
02:32
created
example/api/autoloader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-	spl_autoload_register(function ($classname) {
3
+	spl_autoload_register(function($classname) {
4 4
 		$file = __DIR__ . '/../../' . $classname . '.php';
5 5
 		if (is_file($file)) {
6 6
 			include_once $file;
Please login to merge, or discard this patch.
example/api/swagger.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,9 +2,9 @@
 block discarded – undo
2 2
 
3 3
 	require_once __DIR__ . '/autoloader.php';
4 4
 
5
-	$files		= array('Example.class.php');
5
+	$files = array('Example.class.php');
6 6
 
7
-	$SwaggerGen = new \SwaggerGen\SwaggerGen($_SERVER['HTTP_HOST'],  dirname($_SERVER['REQUEST_URI']));
7
+	$SwaggerGen = new \SwaggerGen\SwaggerGen($_SERVER['HTTP_HOST'], dirname($_SERVER['REQUEST_URI']));
8 8
 	//$SwaggerGen->define('admin');
9 9
 	//$SwaggerGen->define('root');
10 10
 	
Please login to merge, or discard this patch.
SwaggerGen/Swagger/Swagger.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@
 block discarded – undo
146 146
 			case 'definition':
147 147
             case 'definition!':
148 148
 				$definition = new Schema($this);
149
-				if(substr($command, -1) === '!') {
149
+				if (substr($command, -1) === '!') {
150 150
 				    $definition->setReadOnly();
151 151
                 }
152 152
 				$name = self::wordShift($data);
Please login to merge, or discard this patch.
tests/Parser/Php/ParserTest/testParse_MethodNonDoc.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,8 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
tests/Parser/Php/ParserTest/testParse_InMethod.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,8 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
tests/Parser/Php/ParserTest/testParse_NoMethods.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,8 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
tests/Parser/Php/ParserTest/testParse_WithMethod.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,8 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
tests/Parser/Php/ParserTest/testParse_InClass.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,8 @@
 block discarded – undo
15 15
 	/**
16 16
 	 * @rest\version 2
17 17
 	 */
18
-	public function Method1() {
18
+	public function Method1()
19
+	{
19 20
 
20 21
 	}
21 22
 
Please login to merge, or discard this patch.
tests/Parser/Php/ParserTest/testParse_CurlyBraceFunction.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,8 @@
 block discarded – undo
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
Please login to merge, or discard this patch.