Mark Scherer 9 年 前
コミット
09bb66ed71
1 ファイル変更4 行追加1 行削除
  1. 4 1
      Console/Command/CodeShell.php

+ 4 - 1
Console/Command/CodeShell.php

@@ -43,12 +43,15 @@ class CodeShell extends AppShell {
 		}
 	}
 
+	/**
+	 * @return void
+	 */
 	protected function _correctFile($file) {
 		$fileContent = $content = file_get_contents($file);
 
 		preg_match_all('/class \w+ extends (.+)\s*{/', $fileContent, $matches);
 		if (empty($matches)) {
-			continue;
+			return;
 		}
 
 		$excludes = ['Fixture', 'Exception', 'TestSuite', 'CakeTestModel'];