Completed
Pull Request — master (#6)
by Lucas
02:21
created
src/Mpociot/ApiDoc/Commands/GenerateDocumentation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
         }
64 64
 
65 65
         if ($actAs !== null) {
66
-            if (version_compare($this->laravel->version(),'5.2.0', '<')) {
66
+            if (version_compare($this->laravel->version(), '5.2.0', '<')) {
67 67
                 $userModel = config('auth.model');
68 68
                 $user = $userModel::find($actAs);
69 69
                 $this->laravel['auth']->setUser($user);
Please login to merge, or discard this patch.
src/Mpociot/ApiDoc/ApiDocGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@
 block discarded – undo
115 115
      */
116 116
     protected function fancyImplode($arr, $first, $last)
117 117
     {
118
-        $arr = array_map(function ($value) {
118
+        $arr = array_map(function($value) {
119 119
             return '`' . $value . '`';
120 120
         }, $arr);
121 121
         array_push($arr, implode($last, array_splice($arr, -2)));
Please login to merge, or discard this patch.
src/Mpociot/ApiDoc/Commands/UpdateDocumentation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
         $documentarian = new Documentarian();
51 51
 
52 52
         if (!is_dir($outputPath)) {
53
-            $this->error('There is no generated documentation available at '.$outputPath.'.');
53
+            $this->error('There is no generated documentation available at ' . $outputPath . '.');
54 54
             return false;
55 55
         }
56 56
         $this->info('Updating API HTML code');
Please login to merge, or discard this patch.
src/Mpociot/ApiDoc/ApiDocGeneratorServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
      */
17 17
     public function boot()
18 18
     {
19
-        $this->loadViewsFrom(__DIR__.'/../../resources/views/', 'apidoc');
19
+        $this->loadViewsFrom(__DIR__ . '/../../resources/views/', 'apidoc');
20 20
     }
21 21
 
22 22
     /**
@@ -24,10 +24,10 @@  discard block
 block discarded – undo
24 24
      */
25 25
     public function register()
26 26
     {
27
-        $this->app['apidoc.generate'] = $this->app->share(function () {
27
+        $this->app['apidoc.generate'] = $this->app->share(function() {
28 28
             return new GenerateDocumentation();
29 29
         });
30
-        $this->app['apidoc.update'] = $this->app->share(function () {
30
+        $this->app['apidoc.update'] = $this->app->share(function() {
31 31
             return new UpdateDocumentation();
32 32
         });
33 33
 
Please login to merge, or discard this patch.