@@ -77,7 +77,7 @@ public function __construct($customerId, array $clientOptions = array(), $wsdl =
7777 {
7878 $ this ->_customerId = $ customerId ;
7979 $ this ->_clientOptions = $ clientOptions ;
80- $ this ->_wsdl = $ wsdl === null ? dirname ( __FILE__ ) . '/aisService.wsdl ' : $ wsdl ;
80+ $ this ->_wsdl = $ wsdl === null ? __DIR__ . '/aisService.wsdl ' : $ wsdl ;
8181 }
8282
8383 /**
@@ -196,7 +196,7 @@ public function updateDss(SetaPDF_Core_Document $document, $fieldName)
196196 }
197197
198198 $ dss = new SetaPDF_Signer_DocumentSecurityStore ($ document );
199- $ dss ->addValidationRelatedInfoByField ($ fieldName , $ crls , $ ocsps , $ certificates );
199+ $ dss ->addValidationRelatedInfoByFieldName ($ fieldName , $ crls , $ ocsps , $ certificates );
200200 }
201201
202202 /**
@@ -209,9 +209,9 @@ protected function _getHash($data)
209209 {
210210 if ($ data instanceof SetaPDF_Core_Reader_FilePath) {
211211 return hash_file ($ this ->getDigest (), $ data ->getPath (), true );
212- } else {
213- return hash ($ this ->getDigest (), $ data , true );
214212 }
213+
214+ return hash ($ this ->getDigest (), $ data , true );
215215 }
216216
217217 /**
@@ -247,7 +247,7 @@ protected function _generateTransactionId()
247247 $ maxLen = strlen ($ pattern ) - 1 ;
248248 $ id = '' ;
249249 for ($ i = 1 ; $ i <= 6 ; $ i ++) {
250- $ id .= $ pattern{ mt_rand (0 , $ maxLen )} ;
250+ $ id .= $ pattern[ mt_rand (0 , $ maxLen )] ;
251251 }
252252
253253 return $ id ;
0 commit comments