original_string: protected function findViewFromHash($hash)
      {
          $finder = app('view')->getFinder();
  
          if (isset($this->reflection['viewfinderViews'])) {
              $property = $this->reflection['viewfinderViews'];
          } else {
              $reflection = new \ReflectionClass($finder);
              $property = $reflection->getProperty('views');
              $property->setAccessible(true);
              $this->reflection['viewfinderViews'] = $property;
          }
  
          foreach ($property->getValue($finder) as $name => $path){
              if (sha1($path) == $hash || md5($path) == $hash) {
                  return $name;
              }
          }
      }
code: protected function findViewFromHash($hash)
      {
          $finder = app('view')->getFinder();
  
          if (isset($this->reflection['viewfinderViews'])) {
              $property = $this->reflection['viewfinderViews'];
          } else {
              $reflection = new \ReflectionClass($finder);
              $property = $reflection->getProperty('views');
              $property->setAccessible(true);
              $this->reflection['viewfinderViews'] = $property;
          }
  
          foreach ($property->getValue($finder) as $name => $path){
              if (sha1($path) == $hash || md5($path) == $hash) {
                  return $name;
              }
          }
      }
code_tokens: protected function findViewFromHash ( $ hash ) { $ finder = app ( 'view' ) -> getFinder ( ) ; if ( isset ( $ this -> reflection [ 'viewfinderViews' ] ) ) { $ property = $ this -> reflection [ 'viewfinderViews' ] ; } else { $ reflection = new \ ReflectionClass ( $ finder ) ; $ property = $ reflection -> getProperty ( 'views' ) ; $ property -> setAccessible ( true ) ; $ this -> reflection [ 'viewfinderViews' ] = $ property ; } foreach ( $ property -> getValue ( $ finder ) as $ name => $ path ) { if ( sha1 ( $ path ) == $ hash || md5 ( $ path ) == $ hash ) { return $ name ; } } }
docstring: Find the template name from the hash.
  
  @param  string $hash
  @return null|string
docstring_tokens: Find the template name from the hash .