/**
  * Print the method, property or class modifiers.
  *
  * Technically this should be a trait. Can't wait for 5.4 :)
  *
  * @param \Reflector $reflector
  *
  * @return string Formatted modifiers.
  */
 private static function formatModifiers(\Reflector $reflector)
 {
     return implode(' ', array_map(function ($modifier) {
         return sprintf('<keyword>%s</keyword>', $modifier);
     }, \Reflection::getModifierNames($reflector->getModifiers())));
 }