Skip to content
This repository was archived by the owner on Jan 10, 2023. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
This commit fixes a notice that happens if the files array
contains gaps, for exampel because of an unset during an earlier filterstep.
  • Loading branch information
Tarjei Huse committed Aug 6, 2011
commit 6f7b0daa925393679da111f0cc8558f5d4bbfc63
1 change: 1 addition & 0 deletions PHPCPD/TextUI/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ public static function main()
*/
protected static function getCommonPath(array $files)
{
$files = array_values($files);
$count = count($files);

if ($count == 1) {
Expand Down