original_string: public function isPublic()
      {
          $service = Service::whereName($this->storageService)->first()->toArray();
          $publicPaths = array_get($service, 'config.public_path');
  
          if (!empty($publicPaths)) {
              foreach ($publicPaths as $pp) {
                  if (trim($this->storageFolder, '/') == trim($pp, '/')) {
                      return true;
                  }
              }
          }
  
          return false;
      }
code: public function isPublic()
      {
          $service = Service::whereName($this->storageService)->first()->toArray();
          $publicPaths = array_get($service, 'config.public_path');
  
          if (!empty($publicPaths)) {
              foreach ($publicPaths as $pp) {
                  if (trim($this->storageFolder, '/') == trim($pp, '/')) {
                      return true;
                  }
              }
          }
  
          return false;
      }
code_tokens: public function isPublic ( ) { $ service = Service :: whereName ( $ this -> storageService ) -> first ( ) -> toArray ( ) ; $ publicPaths = array_get ( $ service , 'config.public_path' ) ; if ( ! empty ( $ publicPaths ) ) { foreach ( $ publicPaths as $ pp ) { if ( trim ( $ this -> storageFolder , '/' ) == trim ( $ pp , '/' ) ) { return true ; } } } return false ; }
docstring: Checks to see if the URL of the exported zip file is
  publicly accessible.
  
  @return bool
docstring_tokens: Checks to see if the URL of the exported zip file is publicly accessible .