Skip to content

Commit 9814183

Browse files
author
DKravtsov
committed
phpcpd 8.1.0 release. Added Suffix Tree-based algorithm for code clone detection (experimental), added progress bar. Made codebase refactoring. Updated packages: sebastian/cli-parser, sebastian/version, phpunit/php-file-iterator, phpunit/php-timer. Updated tests to the PHPUnit 12.
1 parent 5e7214f commit 9814183

38 files changed

+1391
-1270
lines changed

.env

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ COMPOSE_PROJECT_NAME=phpcpd
66
# XDEBUG_CONFIG possible values: main|osx. Use main value for Linux and Windows, osx value for MacOS.
77
XDEBUG_CONFIG=main
88
# Sometimes we need to use different xdebug versions, list of versions can be found here - https://pecl.php.net/package/xdebug
9-
XDEBUG_VERSION=3.4.0
9+
XDEBUG_VERSION=3.4.2
1010
###< XDebug docker configuration ###

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
steps:
1919
- uses: actions/checkout@v4
2020
- name: Build the docker image
21-
run: make build
21+
run: make build-dev
2222
- name: Start the docker image
2323
run: make start
2424
- name: Check running container

.idea/htdocs.iml

+7-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/laravel-idea.xml

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/php.xml

+55-57
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ChangeLog.md

+10
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22

33
All notable changes in PHPCPD are documented in this file using the [Keep a CHANGELOG](http://keepachangelog.com/) principles.
44

5+
## [8.1.0] - 2025-03-23
6+
7+
### Added
8+
9+
* Added Suffix Tree-based algorithm for code clone detection (experimental), added progress bar.
10+
11+
### Updated
12+
13+
* Made codebase refactoring. Updated packages: sebastian/cli-parser, sebastian/version, phpunit/php-file-iterator, phpunit/php-timer. Updated tests to the PHPUnit 12.
14+
515
## [8.0.0] - 2024-12-30
616

717
### Updated

Dockerfile

+3-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ ARG INSIDE_DOCKER_CONTAINER=1
1212
ENV INSIDE_DOCKER_CONTAINER=$INSIDE_DOCKER_CONTAINER
1313
ARG XDEBUG_CONFIG=main
1414
ENV XDEBUG_CONFIG=$XDEBUG_CONFIG
15-
ARG XDEBUG_VERSION=3.4.0
16-
#ENV PHP_CS_FIXER_IGNORE_ENV=1
15+
ARG XDEBUG_VERSION=3.4.2
16+
ENV XDEBUG_VERSION=$XDEBUG_VERSION
17+
ENV PHP_CS_FIXER_IGNORE_ENV=1
1718

1819
# check environment
1920
RUN if [ "$BUILD_ARGUMENT_ENV" = "default" ]; then echo "Set BUILD_ARGUMENT_ENV in docker build-args like --build-arg BUILD_ARGUMENT_ENV=dev" && exit 2; \

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ help: ## Shows available commands with description
2323
@echo "\033[34mList of available commands:\033[39m"
2424
@grep -E '^[a-zA-Z-]+:.*?## .*$$' Makefile | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "%-27s %s\n", $$1, $$2}'
2525

26-
build: ## Build dev environment
26+
build-dev: ## Build dev environment
2727
ifeq ($(INSIDE_DOCKER_CONTAINER), 0)
2828
@HOST_UID=$(HOST_UID) HOST_GID=$(HOST_GID) XDEBUG_CONFIG=$(XDEBUG_CONFIG) XDEBUG_VERSION=$(XDEBUG_VERSION) docker compose -f compose.yaml build
2929
else

build.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<project name="phpcpd" default="setup">
33
<property name="basedir" value="." override="false"/>
4-
<property name="version" value="8.0.0" override="false"/>
4+
<property name="version" value="8.1.0" override="false"/>
55
<target name="setup" depends="clean,install-dependencies"/>
66

77
<target name="clean" description="Cleanup build artifacts">
@@ -32,7 +32,7 @@
3232
</target>
3333

3434
<target name="signed-phar" description="Create signed PHAR archive of PHPCPD and all its dependencies (release)" depends="phar">
35-
<exec executable="bash" outputproperty="version">
35+
<exec executable="bash">
3636
<arg value="-c" />
3737
<arg value="${basedir}/phpcpd --version" />
3838
</exec>
@@ -55,7 +55,7 @@
5555
<mkdir dir="${basedir}/build/phar" />
5656
<mkdir dir="${basedir}/build/phar/src" />
5757

58-
<exec executable="bash" outputproperty="version">
58+
<exec executable="bash">
5959
<arg value="-c" />
6060
<arg value="${basedir}/phpcpd --version" />
6161
</exec>

composer.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727
"php": ">=8.3",
2828
"ext-dom": "*",
2929
"ext-mbstring": "*",
30-
"sebastian/cli-parser": "^3.0",
31-
"sebastian/version": "^5.0",
32-
"phpunit/php-file-iterator": "^5.1",
33-
"phpunit/php-timer": "^7.0"
30+
"sebastian/cli-parser": "^4.0",
31+
"sebastian/version": "^6.0",
32+
"phpunit/php-file-iterator": "^6.0",
33+
"phpunit/php-timer": "^8.0"
3434
},
3535
"require-dev": {
3636
"bamarni/composer-bin-plugin": "^1.8",

0 commit comments

Comments
 (0)