Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

coding standards

  • Loading branch information...
commit 213d4caa852fb22b0c2d0d12e3f200c93485e8e9 1 parent 8a070ca
@dereuromark dereuromark authored
View
2  lib/Cake/Console/Command/Task/ExtractTask.php
@@ -245,7 +245,7 @@ protected function _addTranslation($domain, $msgid, $details = array()) {
if (empty($this->_translations[$domain][$msgid])) {
$this->_translations[$domain][$msgid] = array(
'msgid_plural' => false
- );
+ );
}
if (isset($details['msgid_plural'])) {
View
2  lib/Cake/Console/Templates/skel/View/Errors/error400.ctp
@@ -25,7 +25,7 @@
); ?>
</p>
<?php
-if (Configure::read('debug') > 0 ):
+if (Configure::read('debug') > 0):
echo $this->element('exception_stack_trace');
endif;
?>
View
2  lib/Cake/Console/Templates/skel/View/Errors/error500.ctp
@@ -22,7 +22,7 @@
<?php echo __d('cake', 'An Internal Error Has Occurred.'); ?>
</p>
<?php
-if (Configure::read('debug') > 0 ):
+if (Configure::read('debug') > 0):
echo $this->element('exception_stack_trace');
endif;
?>
View
2  lib/Cake/Controller/Component/SecurityComponent.php
@@ -389,7 +389,7 @@ protected function _authRequired(Controller $controller) {
$requireAuth = $this->requireAuth;
if (in_array($this->request->params['action'], $requireAuth) || $this->requireAuth == array('*')) {
- if (!isset($controller->request->data['_Token'] )) {
+ if (!isset($controller->request->data['_Token'])) {
if (!$this->blackHole($controller, 'auth')) {
return null;
}
View
2  lib/Cake/I18n/Multibyte.php
@@ -1122,7 +1122,7 @@ protected static function _find($char, $type = 'lower') {
public static function checkMultibyte($string) {
$length = strlen($string);
- for ($i = 0; $i < $length; $i++ ) {
+ for ($i = 0; $i < $length; $i++) {
$value = ord(($string[$i]));
if ($value > 128) {
return true;
View
2  lib/Cake/Model/Behavior/TranslateBehavior.php
@@ -184,7 +184,7 @@ public function beforeFind(Model $Model, $query) {
*/
protected function _checkConditions(Model $Model, $query) {
$conditionFields = array();
- if (empty($query['conditions']) || (!empty($query['conditions']) && !is_array($query['conditions'])) ) {
+ if (empty($query['conditions']) || (!empty($query['conditions']) && !is_array($query['conditions']))) {
return $conditionFields;
}
foreach ($query['conditions'] as $col => $val) {
View
2  lib/Cake/Model/Datasource/DboSource.php
@@ -599,7 +599,7 @@ public function query() {
} else {
if (isset($args[1]) && $args[1] === true) {
return $this->fetchAll($args[0], true);
- } elseif (isset($args[1]) && !is_array($args[1]) ) {
+ } elseif (isset($args[1]) && !is_array($args[1])) {
return $this->fetchAll($args[0], false);
} elseif (isset($args[1]) && is_array($args[1])) {
if (isset($args[2])) {
View
2  lib/Cake/Network/CakeResponse.php
@@ -1070,7 +1070,7 @@ public function protocol($protocol = null) {
* @return int
*/
public function length($bytes = null) {
- if ($bytes !== null ) {
+ if ($bytes !== null) {
$this->_headers['Content-Length'] = $bytes;
}
if (isset($this->_headers['Content-Length'])) {
View
2  lib/Cake/Test/test_app/View/Errors/error400.ctp
@@ -25,7 +25,7 @@
); ?>
</p>
<?php
-if (Configure::read('debug') > 0 ):
+if (Configure::read('debug') > 0):
echo $this->element('exception_stack_trace');
endif;
?>
View
2  lib/Cake/Test/test_app/View/Errors/error500.ctp
@@ -22,7 +22,7 @@
<?php echo __d('cake', 'An Internal Error Has Occurred.'); ?>
</p>
<?php
-if (Configure::read('debug') > 0 ):
+if (Configure::read('debug') > 0):
echo $this->element('exception_stack_trace');
endif;
?>
Please sign in to comment.
Something went wrong with that request. Please try again.