diff --git a/src/Storage.php b/src/Storage.php
index 19b2924c44cfe935ac8ec64428c4515c4dfd8b56..64e5e2db12f3fb94cb94f7356781a88cdd8d6965 100644
--- a/src/Storage.php
+++ b/src/Storage.php
@@ -18,7 +18,7 @@ class Storage {
    *
    * @var string
    */
-  const LOCAL_FOLDER = 'private://data_pipelines_sftp/cache';
+  const string LOCAL_FOLDER = 'private://data_pipelines_sftp/cache';
 
   /**
    * A method to get the local path for storage.
@@ -99,8 +99,9 @@ class Storage {
    *   The resource of the local file.
    */
   public function getLocalCopy(string $path): mixed {
-    if (is_readable($this->getLocalPath($path))) {
-      if ($stream = fopen($path, 'r')) {
+    $local_path = $this->getLocalPath($path);
+    if (is_readable($local_path)) {
+      if ($stream = fopen($local_path, 'r')) {
         rewind($stream);
         return $stream;
       }