diff --git a/src/Monolog/Formatter/JsonFormatter.php b/src/Monolog/Formatter/JsonFormatter.php index 7963dbf1..e5a1d2c4 100644 --- a/src/Monolog/Formatter/JsonFormatter.php +++ b/src/Monolog/Formatter/JsonFormatter.php @@ -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 diff --git a/src/Monolog/Handler/BrowserConsoleHandler.php b/src/Monolog/Handler/BrowserConsoleHandler.php index 43190b92..bee69034 100644 --- a/src/Monolog/Handler/BrowserConsoleHandler.php +++ b/src/Monolog/Handler/BrowserConsoleHandler.php @@ -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: * diff --git a/src/Monolog/Handler/HipChatHandler.php b/src/Monolog/Handler/HipChatHandler.php index c4d6c18d..0e05a6f9 100644 --- a/src/Monolog/Handler/HipChatHandler.php +++ b/src/Monolog/Handler/HipChatHandler.php @@ -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); diff --git a/src/Monolog/Handler/LogEntriesHandler.php b/src/Monolog/Handler/LogEntriesHandler.php index 5ba4157e..bd56230f 100644 --- a/src/Monolog/Handler/LogEntriesHandler.php +++ b/src/Monolog/Handler/LogEntriesHandler.php @@ -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) { diff --git a/src/Monolog/Handler/NativeMailerHandler.php b/src/Monolog/Handler/NativeMailerHandler.php index bc6e7f45..5118a0e2 100644 --- a/src/Monolog/Handler/NativeMailerHandler.php +++ b/src/Monolog/Handler/NativeMailerHandler.php @@ -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) diff --git a/src/Monolog/Handler/SlackHandler.php b/src/Monolog/Handler/SlackHandler.php index 09ff0d99..7328deee 100644 --- a/src/Monolog/Handler/SlackHandler.php +++ b/src/Monolog/Handler/SlackHandler.php @@ -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 diff --git a/tests/Monolog/Handler/NewRelicHandlerTest.php b/tests/Monolog/Handler/NewRelicHandlerTest.php index 22014908..4eda6155 100644 --- a/tests/Monolog/Handler/NewRelicHandlerTest.php +++ b/tests/Monolog/Handler/NewRelicHandlerTest.php @@ -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'));