coding standards

This commit is contained in:
euromark 2012-09-20 01:50:15 +02:00
parent 8a070ca3dd
commit 213d4caa85
10 changed files with 10 additions and 10 deletions

View file

@ -245,7 +245,7 @@ class ExtractTask extends AppShell {
if (empty($this->_translations[$domain][$msgid])) {
$this->_translations[$domain][$msgid] = array(
'msgid_plural' => false
);
);
}
if (isset($details['msgid_plural'])) {

View file

@ -25,7 +25,7 @@
); ?>
</p>
<?php
if (Configure::read('debug') > 0 ):
if (Configure::read('debug') > 0):
echo $this->element('exception_stack_trace');
endif;
?>

View file

@ -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 file

@ -389,7 +389,7 @@ class SecurityComponent extends Component {
$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 file

@ -1122,7 +1122,7 @@ class Multibyte {
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 file

@ -184,7 +184,7 @@ class TranslateBehavior extends ModelBehavior {
*/
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 file

@ -599,7 +599,7 @@ class DboSource extends DataSource {
} 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 file

@ -1070,7 +1070,7 @@ class CakeResponse {
* @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 file

@ -25,7 +25,7 @@
); ?>
</p>
<?php
if (Configure::read('debug') > 0 ):
if (Configure::read('debug') > 0):
echo $this->element('exception_stack_trace');
endif;
?>

View file

@ -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;
?>