original_string: public function resolveProfilePath($path, $profile)
      {
          $path = $this->resolvePath($path);
          return preg_replace_callback('|\[\[([\w\_/]+)\]\]|', function ($matches) use ($profile) {
              $name = $matches[1];
              switch ($name) {
                  case 'profile':
                      return $profile;
              }
              return '[[' . $name . ']]';
          }, $path);
      }
code: public function resolveProfilePath($path, $profile)
      {
          $path = $this->resolvePath($path);
          return preg_replace_callback('|\[\[([\w\_/]+)\]\]|', function ($matches) use ($profile) {
              $name = $matches[1];
              switch ($name) {
                  case 'profile':
                      return $profile;
              }
              return '[[' . $name . ']]';
          }, $path);
      }
code_tokens: public function resolveProfilePath ( $ path , $ profile ) { $ path = $ this -> resolvePath ( $ path ) ; return preg_replace_callback ( '|\[\[([\w\_/]+)\]\]|' , function ( $ matches ) use ( $ profile ) { $ name = $ matches [ 1 ] ; switch ( $ name ) { case 'profile' : return $ profile ; } return '[[' . $ name . ']]' ; } , $ path ) ; }
docstring: Resolves profile path for thumbnail profile.
  
  @param string $path
  @param string $profile
  @return string
docstring_tokens: Resolves profile path for thumbnail profile .