Skip to content
This repository
Browse code

Fix coding standard errors in Log/

  • Loading branch information...
commit dc2f6efe131403fc987ddca5b6b7d4b0abe741ca 1 parent 9d1e88b
Mark Story authored March 03, 2012
27  lib/Cake/Log/CakeLog.php
@@ -18,24 +18,24 @@
18 18
  * @since         CakePHP(tm) v 0.2.9
19 19
  * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
20 20
  */
  21
+
21 22
 /**
22 23
  * Set up error level constants to be used within the framework if they are not defined within the
23 24
  * system.
24 25
  *
25 26
  */
26  
-	if (!defined('LOG_WARNING')) {
27  
-		define('LOG_WARNING', 3);
28  
-	}
29  
-	if (!defined('LOG_NOTICE')) {
30  
-		define('LOG_NOTICE', 4);
31  
-	}
32  
-	if (!defined('LOG_DEBUG')) {
33  
-		define('LOG_DEBUG', 5);
34  
-	}
35  
-	if (!defined('LOG_INFO')) {
36  
-		define('LOG_INFO', 6);
37  
-	}
38  
-
  27
+if (!defined('LOG_WARNING')) {
  28
+	define('LOG_WARNING', 3);
  29
+}
  30
+if (!defined('LOG_NOTICE')) {
  31
+	define('LOG_NOTICE', 4);
  32
+}
  33
+if (!defined('LOG_DEBUG')) {
  34
+	define('LOG_DEBUG', 5);
  35
+}
  36
+if (!defined('LOG_INFO')) {
  37
+	define('LOG_INFO', 6);
  38
+}
39 39
 
40 40
 /**
41 41
  * Logs messages to configured Log adapters.  One or more adapters can be configured
@@ -205,4 +205,5 @@ public static function write($type, $message) {
205 205
 		}
206 206
 		return true;
207 207
 	}
  208
+
208 209
 }
4  lib/Cake/Log/CakeLogInterface.php
@@ -24,6 +24,7 @@
24 24
  * @package       Cake.Log
25 25
  */
26 26
 interface CakeLogInterface {
  27
+
27 28
 /**
28 29
  * Write method to handle writes being made to the Logger
29 30
  *
@@ -32,4 +33,5 @@
32 33
  * @return void
33 34
  */
34 35
 	public function write($type, $message);
35  
-}
  36
+
  37
+}
3  lib/Cake/Log/Engine/FileLog.php
@@ -59,7 +59,7 @@ public function write($type, $message) {
59 59
 		$debugTypes = array('notice', 'info', 'debug');
60 60
 
61 61
 		if ($type == 'error' || $type == 'warning') {
62  
-			$filename = $this->_path  . 'error.log';
  62
+			$filename = $this->_path . 'error.log';
63 63
 		} elseif (in_array($type, $debugTypes)) {
64 64
 			$filename = $this->_path . 'debug.log';
65 65
 		} else {
@@ -68,4 +68,5 @@ public function write($type, $message) {
68 68
 		$output = date('Y-m-d H:i:s') . ' ' . ucfirst($type) . ': ' . $message . "\n";
69 69
 		return file_put_contents($filename, $output, FILE_APPEND);
70 70
 	}
  71
+
71 72
 }

0 notes on commit dc2f6ef

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