@@ -1,6 +1,6 @@ |
||
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; |
@@ -2,9 +2,9 @@ |
||
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 |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | |
158 | 158 | $stacktrace = array(); |
159 | 159 | foreach ($stack as $object) { |
160 | - $stacktrace[] = (string)$object; |
|
160 | + $stacktrace[] = (string) $object; |
|
161 | 161 | } |
162 | 162 | $messages[] = join(", \n", $stacktrace); |
163 | 163 | |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | break; |
175 | 175 | |
176 | 176 | case self::FORMAT_JSON_PRETTY: |
177 | - $flags = (defined('JSON_PRETTY_PRINT') ? JSON_PRETTY_PRINT : 0); // Since PHP 5.4.0 |
|
177 | + $flags = (defined('JSON_PRETTY_PRINT') ? JSON_PRETTY_PRINT : 0); // Since PHP 5.4.0 |
|
178 | 178 | $output = json_encode($output, $flags); |
179 | 179 | break; |
180 | 180 |
@@ -58,7 +58,7 @@ |
||
58 | 58 | if (!$this->handle($match[1], $match[2]) && $this->getState()) { |
59 | 59 | $output .= $line; |
60 | 60 | } else { |
61 | - $output .= str_replace('@'.$this->getPrefix(), '!'.$this->getPrefix(), $line); |
|
61 | + $output .= str_replace('@' . $this->getPrefix(), '!' . $this->getPrefix(), $line); |
|
62 | 62 | } |
63 | 63 | } else { |
64 | 64 | $output .= $line; |
@@ -153,9 +153,9 @@ |
||
153 | 153 | $commandLineNumber = $lineNumber; |
154 | 154 | } elseif ($command) { |
155 | 155 | if ($lineNumber < count($commentLines) - 1) { |
156 | - $data.= ' ' . $line; |
|
156 | + $data .= ' ' . $line; |
|
157 | 157 | } else { |
158 | - $data.= preg_replace('~\s*\**\/\s*$~', '', $line); |
|
158 | + $data .= preg_replace('~\s*\**\/\s*$~', '', $line); |
|
159 | 159 | } |
160 | 160 | } |
161 | 161 | } |
@@ -184,7 +184,7 @@ |
||
184 | 184 | } |
185 | 185 | |
186 | 186 | if (!isset($this->Paths[$path])) { |
187 | - $this->Paths[$path] = new Path($this, $Tag ? : $this->defaultTag); |
|
187 | + $this->Paths[$path] = new Path($this, $Tag ?: $this->defaultTag); |
|
188 | 188 | } |
189 | 189 | return $this->Paths[$path]; |
190 | 190 |