Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fixed typos #84

Merged
merged 1 commit into from

2 participants

@pborreli

No description provided.

@dcramer dcramer merged commit 1ff2d3d into from
@dcramer
Owner

English is hard :)

@pborreli pborreli deleted the branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 25, 2013
  1. @pborreli

    Fixed typos

    pborreli authored
This page is out of date. Refresh to see the latest.
View
2  README.rst
@@ -125,7 +125,7 @@ only be enabled if you need it for legacy compatibility.
``trace``
~~~~~~~~~
-Set this to ``false`` to disable reflection tracing (fuction calling arguments) in stacktraces.
+Set this to ``false`` to disable reflection tracing (function calling arguments) in stacktraces.
``logger``
View
4 lib/Raven/Client.php
@@ -130,7 +130,7 @@ public function getLastError()
*/
public function getIdent($ident)
{
- // XXX: We dont calculate checksums yet, so we only have the ident.
+ // XXX: We don't calculate checksums yet, so we only have the ident.
return $ident;
}
@@ -392,7 +392,7 @@ public function sendUnsentErrors(){
unset($this->error_data);
}
if($this->store_errors_for_bulk_send){
- //incase an error occurs after this is called, on shutdown, send any new errors.
+ //in case an error occurs after this is called, on shutdown, send any new errors.
$this->store_errors_for_bulk_send = !defined('RAVEN_CLIENT_END_REACHED');
}
}
View
5 lib/Raven/ErrorHandler.php
@@ -34,7 +34,7 @@ public function __construct($client, $send_errors_last = false)
{
$this->client = $client;
register_shutdown_function(array($this, 'detectShutdown'));
- if($send_errors_last){
+ if ($send_errors_last) {
$this->send_errors_last = true;
$this->client->store_errors_for_bulk_send = true;
register_shutdown_function(array($this->client, 'sendUnsentErrors'));
@@ -50,9 +50,8 @@ public function handleException($e, $isError = false, $vars = null)
}
}
- public function handleError($code, $message, $file='', $line=0, $context=array())
+ public function handleError($code, $message, $file = '', $line = 0, $context=array())
{
-
if (!error_reporting()) { return; }
$e = new ErrorException($message, 0, $code, $file, $line);
View
2  lib/Raven/Processor.php
@@ -12,7 +12,7 @@ public function __construct(Raven_Client $client)
}
/**
- * Process and sanitize data, modifying the existing value if nescesary.
+ * Process and sanitize data, modifying the existing value if necessary.
*/
public function process(&$data)
{
View
4 lib/Raven/Serializer.php
@@ -20,7 +20,7 @@
*
* https://github.com/facebook/phabricator
*
- * Specifically, it is an adapation of the PhutilReadableSerializer class.
+ * Specifically, it is an adaptation of the PhutilReadableSerializer class.
*
* @package raven
*/
@@ -36,7 +36,7 @@ public static function serialize($value, $max_depth=6, $_depth=0)
return self::serializeValue($value);
} elseif ($_depth < $max_depth && is_array($value)) {
$new = array();
- foreach ($value as $k=>$v) {
+ foreach ($value as $k => $v) {
$new[self::serializeValue($k)] = self::serialize($v, $max_depth, $_depth + 1);
}
View
2  lib/Raven/Stacktrace.php
@@ -27,7 +27,7 @@ public static function get_stack_info($frames, $trace=false, $shiftvars=true, $e
if (!array_key_exists('file', $frame)) {
// XXX: Disable capturing of anonymous functions until we can implement a better grouping mechanism.
- // In our examples these generally didnt help with debugging as the information was found elsewhere
+ // In our examples these generally didn't help with debugging as the information was found elsewhere
// within the exception or the stacktrace
continue;
// if (isset($frame['args'])) {
Something went wrong with that request. Please try again.