File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -408,10 +408,10 @@ public function crypto($name = null): AbstractPdfCrypto
408408
409409 $ engineClassName = App::className ($ name , 'Pdf/Crypto ' , 'Crypto ' );
410410 if ($ engineClassName === null || !class_exists ($ engineClassName )) {
411- throw new Exception ('Pdf crypto "%s" not found ' , $ name );
411+ throw new Exception (sprintf ( 'Pdf crypto `%s` not found ' , $ name) );
412412 }
413- if (!is_subclass_of ($ engineClassName , ' CakePdf\Pdf\Crypto\ AbstractPdfCrypto' )) {
414- throw new Exception ('Crypto engine must extend " AbstractPdfCrypto" ' );
413+ if (!is_subclass_of ($ engineClassName , AbstractPdfCrypto::class )) {
414+ throw new Exception ('Crypto engine must extend ` AbstractPdfCrypto` ' );
415415 }
416416 $ this ->_cryptoClass = new $ engineClassName ($ this );
417417 $ this ->_cryptoClass ->config ($ config );
You can’t perform that action at this time.
0 commit comments