original_string: private function parseFile()
      {
          $contents = file_get_contents($this->getPath());
          $lines = new Collection(explode("\n", $contents));
          $result = new Collection();
  
          $lines->filter(function ($value) {
              return $value;
          })->each(function ($value) use ($result) {
              preg_match('/([a-zA-Z_-]+)\=(.+)/', $value, $regexResult);
  
              array_shift($regexResult);
              $result->push(new Collection($regexResult));
          });
  
          return $result;
      }
code: private function parseFile()
      {
          $contents = file_get_contents($this->getPath());
          $lines = new Collection(explode("\n", $contents));
          $result = new Collection();
  
          $lines->filter(function ($value) {
              return $value;
          })->each(function ($value) use ($result) {
              preg_match('/([a-zA-Z_-]+)\=(.+)/', $value, $regexResult);
  
              array_shift($regexResult);
              $result->push(new Collection($regexResult));
          });
  
          return $result;
      }
code_tokens: private function parseFile ( ) { $ contents = file_get_contents ( $ this -> getPath ( ) ) ; $ lines = new Collection ( explode ( "\n" , $ contents ) ) ; $ result = new Collection ( ) ; $ lines -> filter ( function ( $ value ) { return $ value ; } ) -> each ( function ( $ value ) use ( $ result ) { preg_match ( '/([a-zA-Z_-]+)\=(.+)/' , $ value , $ regexResult ) ; array_shift ( $ regexResult ) ; $ result -> push ( new Collection ( $ regexResult ) ) ; } ) ; return $ result ; }
docstring: Parse the .env file contents for easier handling.
  
  @return \Illuminate\Support\Collection
docstring_tokens: Parse the . env file contents for easier handling .