Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

Commit

Permalink
fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
kuaukutsu committed Oct 14, 2023
1 parent f7ed0d1 commit d0c3327
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 32 deletions.
34 changes: 6 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,6 @@ class Service

## Docker

local

```shell
docker pull ghcr.io/kuaukutsu/php:8.1-cli
```
Expand All @@ -117,45 +115,25 @@ docker run --init -it --rm -v "$(pwd):/app" -w /app ghcr.io/kuaukutsu/php:8.1-cl
The package is tested with [PHPUnit](https://phpunit.de/). To run tests:

```shell
./vendor/bin/phpunit
```

local

```shell
docker run --init -it --rm -v "$(pwd):/app" -w /app ghcr.io/kuaukutsu/php:8.1-cli ./vendor/bin/phpunit
```

### Code Sniffer

local

```shell
docker run --init -it --rm -v "$(pwd):/app" -w /app ghcr.io/kuaukutsu/php:8.1-cli ./vendor/bin/phpcs
```

phpqa

```shell
docker run --init -it --rm -v "$(pwd):/app" -v "$(pwd)/phpqa/tmp:/tmp" -w /app jakzal/phpqa phpcs
make phpunit
```

### Static analysis

The code is statically analyzed with [Psalm](https://psalm.dev/). To run static analysis:

```shell
./vendor/bin/psalm
make psalm
```

local
### Code Sniffer

```shell
docker run --init -it --rm -v "$(pwd):/app" -w /app ghcr.io/kuaukutsu/php:8.1-cli ./vendor/bin/psalm
make phpcs
```

phpqa
### Rector

```shell
docker run --init -it --rm -v "$(pwd):/app" -v "$(pwd)/phpqa/tmp:/tmp" -w /app jakzal/phpqa psalm
make rector
```
4 changes: 0 additions & 4 deletions src/Hydrator.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,7 @@ private function generateMap(array $map): array
/**
* Получаем значение из массива данных.
*
* @param string $name
* @param Closure|string $value
* @param array $data
* @param mixed|null $default
* @return mixed
*/
private function getValue(string $name, mixed $value, array $data, mixed $default = null): mixed
{
Expand Down

0 comments on commit d0c3327

Please sign in to comment.