我的问题是,当我运行phpcpd命令时,我总是得到 0% 的代码结果,无论它是我的项目,是否是任何 php 模块的文件,或者它是我创建的用于检查 phpcpd 是否有效的文件......例如当我检查下面的文件,它也显示 0%:
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';
}
}
}
关于为什么它不能正常工作的任何建议?或者也许它应该做一些其他的任务?