PHP Copy-Paste Detector
- by user1615069
My problem is that when I run phpcpd command I always get 0% doubled code result, no matter if it's my project, if it's any php module's files, or if it's a file I created to check if phpcpd works...For example when I check the file below it also displays 0%:
phpcpd folder/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';
}
}
}
Any suggestions on why isn't it working properly? Or maybe it is supposed to do some other tasks?