File tree Expand file tree Collapse file tree 5 files changed +5
-6
lines changed Expand file tree Collapse file tree 5 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 22
33namespace Bekwoh \LaravelDbDoc ;
44
5- use Illuminate \Support \Facades \Gate ;
65use Illuminate \Support \Facades \Route ;
76use Illuminate \Support \Facades \Storage ;
87use Illuminate \Support \Str ;
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ public function getStub()
3030 {
3131 $ path = file_exists (
3232 base_path ('stubs/db-doc.stub ' )
33- ) ? base_path ('stubs/db-doc.stub ' ) : __DIR__ . '/../../stubs/db-doc.stub ' ;
33+ ) ? base_path ('stubs/db-doc.stub ' ) : __DIR__ . '/../../stubs/db-doc.stub ' ;
3434
3535 return file_get_contents ($ path );
3636 }
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ public static function make(array $contents): self
1010 {
1111 return new self ($ contents );
1212 }
13-
13+
1414 public function getContents ()
1515 {
1616 return json_encode ($ this ->contents , JSON_PRETTY_PRINT );
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ public static function make(array $contents): self
1111 {
1212 return new self ($ contents );
1313 }
14-
14+
1515 public function getContents ()
1616 {
1717 $ contents = $ this ->contents ;
Original file line number Diff line number Diff line change 1111
1212it ('can generate db doc schema - markdown ' , function () {
1313 Artisan::call ('db:schema ' );
14-
14+
1515 $ this ->assertTrue (
1616 Storage::disk (LaravelDbDoc::disk ('markdown ' ))
1717 ->exists (LaravelDbDoc::filename ('markdown ' ))
2020
2121it ('can generate db doc schema - json ' , function () {
2222 Artisan::call ('db:schema --format=json ' );
23-
23+
2424 $ this ->assertTrue (
2525 Storage::disk (LaravelDbDoc::disk ('json ' ))
2626 ->exists (LaravelDbDoc::filename ('json ' ))
You can’t perform that action at this time.
0 commit comments