original_string: public function getMediaUri()
      {
         $folder = $this->getMediaFolder();
  
         if (strpos($folder, '://')) {
             return $folder;
         }
  
         /** @var UniformResourceLocator $locator */
         $locator = Grav::instance()['locator'];
         $user = $locator->findResource('user://');
         if (strpos($folder, $user) === 0) {
             return 'user://' . substr($folder, \strlen($user)+1);
         }
  
         return null;
      }
code: public function getMediaUri()
      {
         $folder = $this->getMediaFolder();
  
         if (strpos($folder, '://')) {
             return $folder;
         }
  
         /** @var UniformResourceLocator $locator */
         $locator = Grav::instance()['locator'];
         $user = $locator->findResource('user://');
         if (strpos($folder, $user) === 0) {
             return 'user://' . substr($folder, \strlen($user)+1);
         }
  
         return null;
      }
code_tokens: public function getMediaUri ( ) { $ folder = $ this -> getMediaFolder ( ) ; if ( strpos ( $ folder , '://' ) ) { return $ folder ; } /** @var UniformResourceLocator $locator */ $ locator = Grav :: instance ( ) [ 'locator' ] ; $ user = $ locator -> findResource ( 'user://' ) ; if ( strpos ( $ folder , $ user ) === 0 ) { return 'user://' . substr ( $ folder , \ strlen ( $ user ) + 1 ) ; } return null ; }
docstring: Get URI ot the associated media. Method will return null if path isn't URI.
  
  @return null|string
docstring_tokens: Get URI ot the associated media . Method will return null if path isn t URI .