Skip to content
This repository
Browse code

QA: Fixing lines where length > 100 chars.

  • Loading branch information...
commit ea227fa095742bb848e10321ca6b2f5fa1296554 1 parent 9985943
David Persson davidpersson authored nateabele committed
2  libraries/lithium/analysis/Logger.php
@@ -114,7 +114,7 @@ public static function write($priority, $message, array $options = array()) {
114 114 foreach ($methods as $name => $method) {
115 115 $params = compact('priority', 'message', 'options');
116 116 $config = static::_config($name);
117   - $result = $result && static::_filter(__FUNCTION__, $params, $method, $config['filters']);
  117 + $result &= static::_filter(__FUNCTION__, $params, $method, $config['filters']);
118 118 }
119 119 return $methods ? $result : false;
120 120 }
3  libraries/lithium/g11n/catalog/adapter/Gettext.php
@@ -92,7 +92,8 @@ public function __construct(array $config = array()) {
92 92 protected function _init() {
93 93 parent::_init();
94 94 if (!is_dir($this->_config['path'])) {
95   - throw new ConfigException("Gettext directory does not exist at `{$this->_config['path']}`");
  95 + $message = "Gettext directory does not exist at `{$this->_config['path']}`";
  96 + throw new ConfigException($message);
96 97 }
97 98 }
98 99
4 libraries/lithium/template/Helper.php
@@ -140,7 +140,9 @@ protected function _render($method, $string, $params, array $options = array())
140 140
141 141 if ($this->_context) {
142 142 foreach ($params as $key => $value) {
143   - $params[$key] = $this->_context->applyHandler($this, $method, $key, $value, $options);
  143 + $params[$key] = $this->_context->applyHandler(
  144 + $this, $method, $key, $value, $options
  145 + );
144 146 }
145 147 $strings = $this->_context->strings();
146 148 }
6 libraries/lithium/tests/cases/template/helper/FormTest.php
@@ -96,7 +96,11 @@ public function testFormCreation() {
96 96
97 97 $result = $this->form->create(null, array('id' => 'Registration'));
98 98 $this->assertTags($result, array(
99   - 'form' => array('action' => "{$this->base}posts", 'method' => 'post', 'id' => 'Registration')
  99 + 'form' => array(
  100 + 'action' => "{$this->base}posts",
  101 + 'method' => 'post',
  102 + 'id' => 'Registration'
  103 + )
100 104 ));
101 105 }
102 106

0 comments on commit ea227fa

Please sign in to comment.
Something went wrong with that request. Please try again.