Skip to content
This repository
Browse code

coding standards

  • Loading branch information...
commit 213d4caa852fb22b0c2d0d12e3f200c93485e8e9 1 parent 8a070ca
Mark authored September 20, 2012
2  lib/Cake/Console/Command/Task/ExtractTask.php
@@ -245,7 +245,7 @@ protected function _addTranslation($domain, $msgid, $details = array()) {
245 245
 		if (empty($this->_translations[$domain][$msgid])) {
246 246
 			$this->_translations[$domain][$msgid] = array(
247 247
 				'msgid_plural' => false
248  
-			 );
  248
+			);
249 249
 		}
250 250
 
251 251
 		if (isset($details['msgid_plural'])) {
2  lib/Cake/Console/Templates/skel/View/Errors/error400.ctp
@@ -25,7 +25,7 @@
25 25
 	); ?>
26 26
 </p>
27 27
 <?php
28  
-if (Configure::read('debug') > 0 ):
  28
+if (Configure::read('debug') > 0):
29 29
 	echo $this->element('exception_stack_trace');
30 30
 endif;
31 31
 ?>
2  lib/Cake/Console/Templates/skel/View/Errors/error500.ctp
@@ -22,7 +22,7 @@
22 22
 	<?php echo __d('cake', 'An Internal Error Has Occurred.'); ?>
23 23
 </p>
24 24
 <?php
25  
-if (Configure::read('debug') > 0 ):
  25
+if (Configure::read('debug') > 0):
26 26
 	echo $this->element('exception_stack_trace');
27 27
 endif;
28 28
 ?>
2  lib/Cake/Controller/Component/SecurityComponent.php
@@ -389,7 +389,7 @@ protected function _authRequired(Controller $controller) {
389 389
 			$requireAuth = $this->requireAuth;
390 390
 
391 391
 			if (in_array($this->request->params['action'], $requireAuth) || $this->requireAuth == array('*')) {
392  
-				if (!isset($controller->request->data['_Token'] )) {
  392
+				if (!isset($controller->request->data['_Token'])) {
393 393
 					if (!$this->blackHole($controller, 'auth')) {
394 394
 						return null;
395 395
 					}
2  lib/Cake/I18n/Multibyte.php
@@ -1122,7 +1122,7 @@ protected static function _find($char, $type = 'lower') {
1122 1122
 	public static function checkMultibyte($string) {
1123 1123
 		$length = strlen($string);
1124 1124
 
1125  
-		for ($i = 0; $i < $length; $i++ ) {
  1125
+		for ($i = 0; $i < $length; $i++) {
1126 1126
 			$value = ord(($string[$i]));
1127 1127
 			if ($value > 128) {
1128 1128
 				return true;
2  lib/Cake/Model/Behavior/TranslateBehavior.php
@@ -184,7 +184,7 @@ public function beforeFind(Model $Model, $query) {
184 184
  */
185 185
 	protected function _checkConditions(Model $Model, $query) {
186 186
 		$conditionFields = array();
187  
-		if (empty($query['conditions']) || (!empty($query['conditions']) && !is_array($query['conditions'])) ) {
  187
+		if (empty($query['conditions']) || (!empty($query['conditions']) && !is_array($query['conditions']))) {
188 188
 			return $conditionFields;
189 189
 		}
190 190
 		foreach ($query['conditions'] as $col => $val) {
2  lib/Cake/Model/Datasource/DboSource.php
@@ -599,7 +599,7 @@ public function query() {
599 599
 		} else {
600 600
 			if (isset($args[1]) && $args[1] === true) {
601 601
 				return $this->fetchAll($args[0], true);
602  
-			} elseif (isset($args[1]) && !is_array($args[1]) ) {
  602
+			} elseif (isset($args[1]) && !is_array($args[1])) {
603 603
 				return $this->fetchAll($args[0], false);
604 604
 			} elseif (isset($args[1]) && is_array($args[1])) {
605 605
 				if (isset($args[2])) {
2  lib/Cake/Network/CakeResponse.php
@@ -1070,7 +1070,7 @@ public function protocol($protocol = null) {
1070 1070
  * @return int
1071 1071
  */
1072 1072
 	public function length($bytes = null) {
1073  
-		if ($bytes !== null ) {
  1073
+		if ($bytes !== null) {
1074 1074
 			$this->_headers['Content-Length'] = $bytes;
1075 1075
 		}
1076 1076
 		if (isset($this->_headers['Content-Length'])) {
2  lib/Cake/Test/test_app/View/Errors/error400.ctp
@@ -25,7 +25,7 @@
25 25
 	); ?>
26 26
 </p>
27 27
 <?php
28  
-if (Configure::read('debug') > 0 ):
  28
+if (Configure::read('debug') > 0):
29 29
 	echo $this->element('exception_stack_trace');
30 30
 endif;
31 31
 ?>
2  lib/Cake/Test/test_app/View/Errors/error500.ctp
@@ -22,7 +22,7 @@
22 22
 	<?php echo __d('cake', 'An Internal Error Has Occurred.'); ?>
23 23
 </p>
24 24
 <?php
25  
-if (Configure::read('debug') > 0 ):
  25
+if (Configure::read('debug') > 0):
26 26
 	echo $this->element('exception_stack_trace');
27 27
 endif;
28 28
 ?>

0 notes on commit 213d4ca

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