@@ -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 | |
@@ -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; |
@@ -155,7 +155,7 @@ |
||
| 155 | 155 | } |
| 156 | 156 | |
| 157 | 157 | $definition = new Schema($this, $typeDef); |
| 158 | - if(substr($command, -1) === '!') { |
|
| 158 | + if (substr($command, -1) === '!') { |
|
| 159 | 159 | $definition->setReadOnly(); |
| 160 | 160 | } |
| 161 | 161 | $this->definitions[$name] = $definition; |