Test Failed
Push — master ( 236186...ccbf48 )
by noitran
02:29
created
src/Console/TransformDocsCommand.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -34,16 +34,16 @@  discard block
 block discarded – undo
34 34
         $this->info('Transforming yaml to json.');
35 35
         $settings = config('opendox.documentation_source');
36 36
 
37
-        if ($settings['extension'] === 'json') {
37
+        if ($settings[ 'extension' ] === 'json') {
38 38
             $this->info(
39 39
                 'Documentation source file in opendox.php is set to "json". conversion will be skipped. Just copying...'
40 40
             );
41 41
         }
42 42
 
43 43
         $this->convert(
44
-            $settings['path'],
45
-            $settings['filename'],
46
-            $settings['extension']
44
+            $settings[ 'path' ],
45
+            $settings[ 'filename' ],
46
+            $settings[ 'extension' ]
47 47
         );
48 48
     }
49 49
 
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
         $contents = $this->transform($pathTo . $fileName . '.' . $fileExtension);
60 60
         $saveToPath = config('opendox.documentation_source.save_to');
61 61
 
62
-        if (! file_exists($saveToPath)) {
62
+        if (!file_exists($saveToPath)) {
63 63
             mkdir($saveToPath);
64 64
         }
65 65
 
Please login to merge, or discard this patch.
src/routes.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
     config('opendox.routing.docs.route'),
6 6
     [
7 7
         'as' => 'opendox.docs',
8
-        'middleware' => config('opendox.routing.docs.middleware', []),
8
+        'middleware' => config('opendox.routing.docs.middleware', [ ]),
9 9
         'uses' => 'Http\Controllers\DocumentationController@index',
10 10
     ]
11 11
 );
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
         config('opendox.routing.ui.route'),
16 16
         [
17 17
             'as' => 'opendox.ui',
18
-            'middleware' => config('opendox.routing.ui.middleware', []),
18
+            'middleware' => config('opendox.routing.ui.middleware', [ ]),
19 19
             'uses' => 'Http\Controllers\UiController@index',
20 20
         ]
21 21
     );
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
         config('opendox.routing.console.route'),
27 27
         [
28 28
             'as' => 'opendox.console',
29
-            'middleware' => config('opendox.routing.console.middleware', []),
29
+            'middleware' => config('opendox.routing.console.middleware', [ ]),
30 30
             'uses' => 'Http\Controllers\ConsoleController@index',
31 31
         ]
32 32
     );
Please login to merge, or discard this patch.
src/Http/Controllers/ConsoleController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
     public function index(): View
17 17
     {
18 18
         $settings = config('opendox.documentation_source');
19
-        $filePath = url('api-docs/' . $settings['filename'] . '.json');
19
+        $filePath = url('api-docs/' . $settings[ 'filename' ] . '.json');
20 20
         $version = config('opendox.frontend.swagger.version');
21 21
 
22 22
         return view('opendox::swagger.index', [
Please login to merge, or discard this patch.
src/Http/Controllers/DocumentationController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,9 +16,9 @@
 block discarded – undo
16 16
     public function index(): JsonResponse
17 17
     {
18 18
         $settings = config('opendox.documentation_source');
19
-        $filePath = $settings['save_to'] . '/' . $settings['filename'] . '.json';
19
+        $filePath = $settings[ 'save_to' ] . '/' . $settings[ 'filename' ] . '.json';
20 20
 
21
-        if (! file_exists($filePath)) {
21
+        if (!file_exists($filePath)) {
22 22
             abort(404, 'Cannot find ' . $filePath);
23 23
         }
24 24
 
Please login to merge, or discard this patch.
src/Http/Controllers/UiController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
     public function index(): View
17 17
     {
18 18
         $settings = config('opendox.documentation_source');
19
-        $filePath = url('api-docs/' . $settings['filename'] . '.json');
19
+        $filePath = url('api-docs/' . $settings[ 'filename' ] . '.json');
20 20
         $version = config('opendox.frontend.redoc.version');
21 21
 
22 22
         return view('opendox::redoc.index', [
Please login to merge, or discard this patch.
src/ServiceProvider.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -33,19 +33,19 @@  discard block
 block discarded – undo
33 33
      */
34 34
     public function boot()
35 35
     {
36
-        $viewPath = __DIR__.'/../resources/views';
36
+        $viewPath = __DIR__ . '/../resources/views';
37 37
         $this->loadViewsFrom($viewPath, 'opendox');
38 38
 
39
-        $configPath = __DIR__.'/../config/opendox.php';
39
+        $configPath = __DIR__ . '/../config/opendox.php';
40 40
         if (function_exists('config_path')) {
41 41
             $publishPath = config_path('opendox.php');
42 42
         } else {
43 43
             $publishPath = base_path('config/opendox.php');
44 44
         }
45
-        $this->publishes([$configPath => $publishPath], 'config');
45
+        $this->publishes([ $configPath => $publishPath ], 'config');
46 46
 
47
-        $this->app->router->group(['namespace' => 'Noitran\Opendox'], function ($router) {
48
-            require __DIR__.'/routes.php';
47
+        $this->app->router->group([ 'namespace' => 'Noitran\Opendox' ], function($router) {
48
+            require __DIR__ . '/routes.php';
49 49
         });
50 50
     }
51 51
 
@@ -56,10 +56,10 @@  discard block
 block discarded – undo
56 56
      */
57 57
     public function register()
58 58
     {
59
-        $configPath = __DIR__.'/../config/opendox.php';
59
+        $configPath = __DIR__ . '/../config/opendox.php';
60 60
         $this->mergeConfigFrom($configPath, 'opendox');
61 61
 
62
-        $this->app->singleton('command.opendox.transform-docs', function () {
62
+        $this->app->singleton('command.opendox.transform-docs', function() {
63 63
             return new TransformDocsCommand();
64 64
         });
65 65
 
Please login to merge, or discard this patch.