1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-06 05:07:36 +02:00

Merge pull request #524 from pborreli/typos-2

Fixed typos
This commit is contained in:
Jordi Boggiano
2015-03-05 01:23:59 +00:00
7 changed files with 9 additions and 9 deletions

View File

@@ -39,7 +39,7 @@ class JsonFormatter implements FormatterInterface
* The batch mode option configures the formatting style for
* multiple records. By default, multiple records will be
* formatted as a JSON-encoded array. However, for
* compatibility with some API endpoints, alternive styles
* compatibility with some API endpoints, alternative styles
* are available.
*
* @return int

View File

@@ -26,7 +26,7 @@ class BrowserConsoleHandler extends AbstractProcessingHandler
/**
* {@inheritDoc}
*
* Formatted output may contain some formatting markers to be transfered to `console.log` using the %c format.
* Formatted output may contain some formatting markers to be transferred to `console.log` using the %c format.
*
* Example of formatted string:
*

View File

@@ -234,19 +234,19 @@ class HipChatHandler extends SocketHandler
}
$messages[] = $record['message'];
$messgeStr = implode(PHP_EOL, $messages);
$messageStr = implode(PHP_EOL, $messages);
$formattedMessages[] = $this->getFormatter()->format($record);
$formattedMessageStr = implode('', $formattedMessages);
$batchRecord = array(
'message' => $messgeStr,
'message' => $messageStr,
'formatted' => $formattedMessageStr,
'context' => array(),
'extra' => array(),
);
if (!$this->validateStringLength($batchRecord['formatted'], static::MAXIMUM_MESSAGE_LENGTH)) {
// Pop the last message and implode the remainging messages
// Pop the last message and implode the remaining messages
$lastMessage = array_pop($messages);
$lastFormattedMessage = array_pop($formattedMessages);
$batchRecord['message'] = implode(PHP_EOL, $messages);

View File

@@ -29,7 +29,7 @@ class LogEntriesHandler extends SocketHandler
* @param int $level The minimum logging level to trigger this handler
* @param boolean $bubble Whether or not messages that are handled should bubble up the stack.
*
* @throws MissingExtensionExcpetion If SSL encryption is set to true and OpenSSL is missing
* @throws MissingExtensionException If SSL encryption is set to true and OpenSSL is missing
*/
public function __construct($token, $useSSL = true, $level = Logger::DEBUG, $bubble = true)
{

View File

@@ -101,7 +101,7 @@ class NativeMailerHandler extends MailHandler
/**
* Add parameters to the message
*
* @param string|array $arguments Custom added parameters
* @param string|array $parameters Custom added parameters
* @return self
*/
public function addParameter($parameters)

View File

@@ -260,7 +260,7 @@ class SlackHandler extends SocketHandler
}
/**
* Stringifys an array of key/value pairs to be used in attachment fields
* Stringifies an array of key/value pairs to be used in attachment fields
*
* @param array $fields
* @access protected

View File

@@ -136,7 +136,7 @@ class NewRelicHandlerTest extends TestCase
$this->assertEquals(null, self::$transactionName);
}
public function testTheTransactionNameCanBeInjectedFromtheConstructor()
public function testTheTransactionNameCanBeInjectedFromTheConstructor()
{
$handler = new StubNewRelicHandler(Logger::DEBUG, false, null, false, 'myTransaction');
$handler->handle($this->getRecord(Logger::ERROR, 'log message'));