original_string: private static function processContext($message, array $context = array())
      {
          $replace = array();
  
          foreach ($context as $key => $value) {
              $templated           = "{" . $key . "}";
              $replace[$templated] = $value;
          }
  
          if (self::checkContextException($context)) {
              /**
               * @var \Exception $exception
               */
              $exception = $context["exception"];
  
              $replace["{line}"]    = $exception->getLine();
              $replace["{file}"]    = $exception->getFile();
              $replace["{message}"] = $exception->getMessage();
          }
  
          return strtr($message, $replace);
      }
code: private static function processContext($message, array $context = array())
      {
          $replace = array();
  
          foreach ($context as $key => $value) {
              $templated           = "{" . $key . "}";
              $replace[$templated] = $value;
          }
  
          if (self::checkContextException($context)) {
              /**
               * @var \Exception $exception
               */
              $exception = $context["exception"];
  
              $replace["{line}"]    = $exception->getLine();
              $replace["{file}"]    = $exception->getFile();
              $replace["{message}"] = $exception->getMessage();
          }
  
          return strtr($message, $replace);
      }
code_tokens: private static function processContext ( $ message , array $ context = array ( ) ) { $ replace = array ( ) ; foreach ( $ context as $ key => $ value ) { $ templated = "{" . $ key . "}" ; $ replace [ $ templated ] = $ value ; } if ( self :: checkContextException ( $ context ) ) { /**
               * @var \Exception $exception
               */ $ exception = $ context [ "exception" ] ; $ replace [ "{line}" ] = $ exception -> getLine ( ) ; $ replace [ "{file}" ] = $ exception -> getFile ( ) ; $ replace [ "{message}" ] = $ exception -> getMessage ( ) ; } return strtr ( $ message , $ replace ) ; }
docstring: Processes context as supplied by the log method, replacing templated strings with data from the context array
  or processing exception data via checkContextException.
  
  Context array elements with the "exception" key are processed by pulling Exception line, file, and message into
  the log message provided appropriate templates within the message: {line}, {file}, and {message}, respectively.
  Note that any line, file, or message templates provided outside of an exception will be overwritten by context
  processing, and so the order in which the context array data are stacked is relevant.
  
  
  
  @param string $message   The original log message to be processed with context.
  @param array $context    An array of key => value pairs with additional data to be inserted into the log
  message provided {templated text} (i.e. surrounded by curly braces.
  
  @return string           The processed log message
docstring_tokens: Processes context as supplied by the log method replacing templated strings with data from the context array or processing exception data via checkContextException .