File tree Expand file tree Collapse file tree 6 files changed +5
-56
lines changed
Expand file tree Collapse file tree 6 files changed +5
-56
lines changed Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ public function url(
4040 string $ url ,
4141 string $ username ,
4242 string $ password ,
43- ? string $ passphrase = null
43+ string $ passphrase
4444 ): DocuWareUrl {
4545 return new DocuWareUrl (
4646 url: $ url ,
Original file line number Diff line number Diff line change 44
55use Carbon \Carbon ;
66use CodebarAg \DocuWare \Exceptions \UnableToMakeUrl ;
7- use CodebarAg \DocuWare \Support \EnsureValidCredentials ;
8- use CodebarAg \DocuWare \Support \EnsureValidPassphrase ;
97use CodebarAg \DocuWare \Support \URL ;
108
119class DocuWareUrl
@@ -22,7 +20,7 @@ public function __construct(
2220 public string $ url ,
2321 public string $ username ,
2422 public string $ password ,
25- public ? string $ passphrase ,
23+ public string $ passphrase ,
2624 ) {}
2725
2826 public function fileCabinet (string $ fileCabinetId ): self
@@ -107,10 +105,6 @@ public function make(): string
107105
108106 protected function guard (): void
109107 {
110- EnsureValidCredentials::check ();
111-
112- EnsureValidPassphrase::check ();
113-
114108 throw_if (
115109 is_null ($ this ->documentId ),
116110 UnableToMakeUrl::documentNotSet (),
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1616 url: config ('laravel-docuware.credentials.url ' ),
1717 username: config ('laravel-docuware.credentials.username ' ),
1818 password: config ('laravel-docuware.credentials.password ' ),
19- passphrase: config ('laravel-docuware.credentials. passphrase ' ),
19+ passphrase: config ('laravel-docuware.passphrase ' ),
2020 )
2121 ->fileCabinet ($ fileCabinetId )
2222 ->document ($ documentId )
4545 url: config ('laravel-docuware.credentials.url ' ),
4646 username: config ('laravel-docuware.credentials.username ' ),
4747 password: config ('laravel-docuware.credentials.password ' ),
48- passphrase: config ('laravel-docuware.credentials. passphrase ' ),
48+ passphrase: config ('laravel-docuware.passphrase ' ),
4949 )
5050 ->basket ($ basketId )
5151 ->document ($ documentId )
You can’t perform that action at this time.
0 commit comments