Permalink
Browse files

[ZF2-549][#2342] CS fixes

- Trailing whitespace
  • Loading branch information...
1 parent f292d0a commit 272c704ea46881031c79c1af4b0abb4e3bc8ec09 @weierophinney weierophinney committed Sep 13, 2012
@@ -35,20 +35,20 @@ public function format($event)
if (isset($event['timestamp']) && $event['timestamp'] instanceof DateTime) {
$event['timestamp'] = $event['timestamp']->format($this->getDateTimeFormat());
}
-
+
foreach ($this->buildReplacementsFromArray($event) as $name => $value) {
$output = str_replace("%$name%", $value, $output);
}
-
+
return $output;
}
/**
* Flatten the multi-dimensional $event array into a single dimensional
* array
*
- * @param array $event
- * @param string $key
+ * @param array $event
+ * @param string $key
* @return array
*/
protected function buildReplacementsFromArray ($event, $key = null)
@@ -36,7 +36,7 @@ public function testFormat()
'errno' => 1,
'file' => 'test.php',
'line' => 1,
- 'context' => array('object' => new DateTime(), 'string' => 'test')
+ 'context' => array('object' => new DateTime(), 'string' => 'test')
)
);
$formatter = new ErrorHandler();
@@ -82,6 +82,6 @@ public function testComplexEvent ()
$output = $formatter->format($event);
$this->assertEquals($stringObject->__toString() .' %extra[context][object2]% test1 %extra[context][array]% test2', $output);
}
-
-
+
+
}

0 comments on commit 272c704

Please sign in to comment.