@@ -323,12 +323,12 @@ private static function decryptFileInternal($inputFilename, $outputFilename, Key
323323 */
324324 private static function encryptResourceInternal ($ inputHandle , $ outputHandle , KeyOrPassword $ secret )
325325 {
326- if (! \ is_resource ($ inputHandle )) {
326+ if (! is_resource ($ inputHandle )) {
327327 throw new Ex \IOException (
328328 'Input handle must be a resource! '
329329 );
330330 }
331- if (! \ is_resource ($ outputHandle )) {
331+ if (! is_resource ($ outputHandle )) {
332332 throw new Ex \IOException (
333333 'Output handle must be a resource! '
334334 );
@@ -348,7 +348,7 @@ private static function encryptResourceInternal($inputHandle, $outputHandle, Key
348348 /* Initialize a streaming HMAC state. */
349349 /** @var resource $hmac */
350350 $ hmac = \hash_init (Core::HASH_FUNCTION_NAME , HASH_HMAC , $ akey );
351- if (!\ is_resource ($ hmac ) && !\ is_object ($ hmac )) {
351+ if (!is_resource ($ hmac ) && !is_object ($ hmac )) {
352352 throw new Ex \EnvironmentIsBrokenException (
353353 'Cannot initialize a hash context '
354354 );
@@ -444,12 +444,12 @@ private static function encryptResourceInternal($inputHandle, $outputHandle, Key
444444 */
445445 public static function decryptResourceInternal ($ inputHandle , $ outputHandle , KeyOrPassword $ secret )
446446 {
447- if (! \ is_resource ($ inputHandle )) {
447+ if (! is_resource ($ inputHandle )) {
448448 throw new Ex \IOException (
449449 'Input handle must be a resource! '
450450 );
451451 }
452- if (! \ is_resource ($ outputHandle )) {
452+ if (! is_resource ($ outputHandle )) {
453453 throw new Ex \IOException (
454454 'Output handle must be a resource! '
455455 );
@@ -518,7 +518,7 @@ public static function decryptResourceInternal($inputHandle, $outputHandle, KeyO
518518 /* Initialize a streaming HMAC state. */
519519 /** @var resource $hmac */
520520 $ hmac = \hash_init (Core::HASH_FUNCTION_NAME , HASH_HMAC , $ akey );
521- if (!\ is_resource ($ hmac ) && !\ is_object ($ hmac )) {
521+ if (!is_resource ($ hmac ) && !is_object ($ hmac )) {
522522 throw new Ex \EnvironmentIsBrokenException (
523523 'Cannot initialize a hash context '
524524 );
@@ -576,7 +576,7 @@ public static function decryptResourceInternal($inputHandle, $outputHandle, KeyO
576576 /* Remember this buffer-sized chunk's HMAC. */
577577 /** @var resource $chunk_mac */
578578 $ chunk_mac = \hash_copy ($ hmac );
579- if (!\ is_resource ($ chunk_mac ) && !\ is_object ($ chunk_mac )) {
579+ if (!is_resource ($ chunk_mac ) && !is_object ($ chunk_mac )) {
580580 throw new Ex \EnvironmentIsBrokenException (
581581 'Cannot duplicate a hash context '
582582 );
@@ -634,7 +634,7 @@ public static function decryptResourceInternal($inputHandle, $outputHandle, KeyO
634634 \hash_update ($ hmac2 , $ read );
635635 /** @var resource $calc_mac */
636636 $ calc_mac = \hash_copy ($ hmac2 );
637- if (!\ is_resource ($ calc_mac ) && !\ is_object ($ calc_mac )) {
637+ if (!is_resource ($ calc_mac ) && !is_object ($ calc_mac )) {
638638 throw new Ex \EnvironmentIsBrokenException (
639639 'Cannot duplicate a hash context '
640640 );
0 commit comments