@@ -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 | |
@@ -146,7 +146,7 @@ |
||
| 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); |
@@ -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; |