我的問題是,當我運行phpcpd命令時,我總是得到0%加倍的代碼結果,無論它是我的項目,是否是任何php模塊的文件,或者它是否是我創建的文件來檢查是否phpcpd工作...例如當我檢查下面的文件,它也顯示爲0%:PHP複製 - 粘貼檢測器
phpcpd文件夾/ file.php:
<?php
class Class_Two {
public function aaa()
{
if(2 == 2)
{
echo 'ok';
}
}
public function aaa()
{
if(2 == 2)
{
echo 'ok';
echo 'ok';
echo 'ok';
echo 'ok';
echo 'ok';
echo 'ok';
}
}
public function aaa()
{
if(2 == 2)
{
echo 'ok';
}
}
public function aaa()
{
if(2 == 2)
{
echo 'ok';
echo 'ok';
echo 'ok';
echo 'ok';
echo 'ok';
echo 'ok';
}
}
public function aaa()
{
if(2 == 2)
{
echo 'ok';
}
}
public function aaa()
{
if(2 == 2)
{
echo 'ok';
echo 'ok';
echo 'ok';
echo 'ok';
echo 'ok';
echo 'ok';
}
}
public function aaa()
{
if(2 == 2)
{
echo 'ok';
}
}
public function aaa()
{
if(2 == 2)
{
echo 'ok';
echo 'ok';
echo 'ok';
echo 'ok';
echo 'ok';
echo 'ok';
}
}
public function aaa()
{
if(2 == 2)
{
echo 'ok';
}
}
public function aaa()
{
if(2 == 2)
{
echo 'ok';
echo 'ok';
echo 'ok';
echo 'ok';
echo 'ok';
echo 'ok';
}
}
public function aaa()
{
if(2 == 2)
{
echo 'ok';
}
}
public function aaa()
{
if(2 == 2)
{
echo 'ok';
echo 'ok';
echo 'ok';
echo 'ok';
echo 'ok';
echo 'ok';
}
}
}
class Class_Two {
public function aaa()
{
if(2 == 2)
{
echo 'ok';
}
}
public function aaa()
{
if(2 == 2)
{
echo 'ok';
}
}
}
上爲什麼沒有正常工作有什麼建議?或者也許它應該做一些其他的任務?