Exemplo n.º 1
0
 /**
  * Search for the method within the string
  * and route it if we find one.
  *
  * @param  string $method
  * @param  string $name
  *
  * @return string The new string without the executed method.
  */
 protected function parseStyleMethod($method, $name)
 {
     // If the name starts with this method string...
     if (substr($name, 0, strlen($method)) == $method) {
         // ...remove the method name from the beginning of the string...
         $name = substr($name, strlen($method));
         // ...and trim off any of those underscores hanging around
         $name = ltrim($name, '_');
         $this->style->set($method);
     }
     return $name;
 }