Permalink
Browse files

QA: Fixing lines where length > 100 chars.

  • Loading branch information...
1 parent 9985943 commit ea227fa095742bb848e10321ca6b2f5fa1296554 @davidpersson davidpersson committed with nateabele Jan 30, 2011
View
2 libraries/lithium/analysis/Logger.php
@@ -114,7 +114,7 @@ public static function write($priority, $message, array $options = array()) {
foreach ($methods as $name => $method) {
$params = compact('priority', 'message', 'options');
$config = static::_config($name);
- $result = $result && static::_filter(__FUNCTION__, $params, $method, $config['filters']);
+ $result &= static::_filter(__FUNCTION__, $params, $method, $config['filters']);
}
return $methods ? $result : false;
}
View
3 libraries/lithium/g11n/catalog/adapter/Gettext.php
@@ -92,7 +92,8 @@ public function __construct(array $config = array()) {
protected function _init() {
parent::_init();
if (!is_dir($this->_config['path'])) {
- throw new ConfigException("Gettext directory does not exist at `{$this->_config['path']}`");
+ $message = "Gettext directory does not exist at `{$this->_config['path']}`";
+ throw new ConfigException($message);
}
}
View
4 libraries/lithium/template/Helper.php
@@ -140,7 +140,9 @@ protected function _render($method, $string, $params, array $options = array())
if ($this->_context) {
foreach ($params as $key => $value) {
- $params[$key] = $this->_context->applyHandler($this, $method, $key, $value, $options);
+ $params[$key] = $this->_context->applyHandler(
+ $this, $method, $key, $value, $options
+ );
}
$strings = $this->_context->strings();
}
View
6 libraries/lithium/tests/cases/template/helper/FormTest.php
@@ -96,7 +96,11 @@ public function testFormCreation() {
$result = $this->form->create(null, array('id' => 'Registration'));
$this->assertTags($result, array(
- 'form' => array('action' => "{$this->base}posts", 'method' => 'post', 'id' => 'Registration')
+ 'form' => array(
+ 'action' => "{$this->base}posts",
+ 'method' => 'post',
+ 'id' => 'Registration'
+ )
));
}

0 comments on commit ea227fa

Please sign in to comment.