浏览代码

debug output removal

euromark 13 年之前
父节点
当前提交
4d270ef546
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      Console/Command/CodeShell.php

+ 4 - 2
Console/Command/CodeShell.php

@@ -1,5 +1,8 @@
 <?php
 App::uses('AppShell', 'Console/Command');
+if (!defined('LF')) {
+	define('LF', PHP_EOL); # use PHP to detect default linebreak
+}
 
 /**
  * Misc Code Fix Tools
@@ -156,8 +159,7 @@ class CodeShell extends AppShell {
 		if (!$inserted) {
 			return;
 		}
-		
-		echo returns($pos);
+
 		array_splice($fileContent, $pos, 0, $inserted);
 		$fileContent = implode(LF, $fileContent);