Skip to content

Commit

Permalink
run php cs fixer on validator
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Sep 13, 2020
1 parent fe82dc3 commit ceb1676
Show file tree
Hide file tree
Showing 207 changed files with 1,660 additions and 395 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ before_install:
) ENGINE=InnoDB AUTO_INCREMENT=34 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;'
install:
- echo 'no' | pecl install -f redis
- wget https://github.com/swoole/swoole-src/archive/v4.4.18.tar.gz -O swoole.tar.gz && mkdir -p swoole && tar -xf swoole.tar.gz -C swoole --strip-components=1 && rm swoole.tar.gz && cd swoole && phpize && ./configure && make -j$(nproc) && make install && cd -
- wget https://github.com/swoole/swoole-src/archive/v4.5.2.tar.gz -O swoole.tar.gz && mkdir -p swoole && tar -xf swoole.tar.gz -C swoole --strip-components=1 && rm swoole.tar.gz && cd swoole && phpize && ./configure && make -j$(nproc) && make install && cd -
- echo "extension = swoole.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini

before_script:
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ This repository is used to manage all swoft core components.

## [中文说明](README.zh-CN.md)

中文说明请查看 [README.zh-CN.md](README.zh-CN.md)

## IMPORTANT

All components will **NOT** be modified in the original repository of ext component, **SHOULD ALWAYS** be modified in this repository, also commit and push to this repository, and then @swoft-bot would sync changes to the original repository of component by `git subtree push`, notice that this action needs triggered by the repositories owner.
Expand Down
17 changes: 15 additions & 2 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@

这里是swoft基础和核心组件的开发仓库,所有的核心组件都是由这里分发出去的。

## [English](README.md)
## [ENGLISH](README.md)

The english readme please see [README.md](README.md)

## 如何使用

Expand Down Expand Up @@ -111,7 +113,18 @@ export RUN_SERVER_TEST=ws,http,tcp; ./phpunit.sh websocket-server

### 手动发布

需要到机器上使用 releasecli 工具执行对应命令来发布操作。
需要到机器上使用 `releasecli` 工具执行对应命令来发布操作。

## 其他工具

### php cs fix

```bash
php-cs-fixer fix

# for path
php-cs-fixer fix ./some/path
```

## 使用文档

Expand Down
2 changes: 1 addition & 1 deletion src/annotation/README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Swoft Annotation Component

## [ENGLISH](README.md)

English readme please sess [README.md](README.md)
The english readme please see [README.md](README.md)

## 安装

Expand Down
2 changes: 1 addition & 1 deletion src/aop/README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Swoft Aop Component

## [ENGLISH](README.md)

English readme please sess [README.md](README.md)
The english readme please see [README.md](README.md)

## 安装

Expand Down
2 changes: 1 addition & 1 deletion src/bean/README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Swoft Bean Component

## [ENGLISH](README.md)

English readme please sess [README.md](README.md)
The english readme please see [README.md](README.md)

## 安装

Expand Down
2 changes: 1 addition & 1 deletion src/config/README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Swoft Config Component

## [ENGLISH](README.md)

English readme please sess [README.md](README.md)
The english readme please see [README.md](README.md)

## 安装

Expand Down
2 changes: 1 addition & 1 deletion src/connection-pool/README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Swoft Connection Pool Component

## [ENGLISH](README.md)

English readme please sess [README.md](README.md)
The english readme please see [README.md](README.md)

## 安装

Expand Down
2 changes: 1 addition & 1 deletion src/console/README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Swoft Console Component

## [ENGLISH](README.md)

English readme please sess [README.md](README.md)
The english readme please see [README.md](README.md)

## 安装

Expand Down
2 changes: 1 addition & 1 deletion src/db/.travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ before_install:
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=34 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;'
install:
- wget https://github.com/swoole/swoole-src/archive/v4.4.18.tar.gz -O swoole.tar.gz && mkdir -p swoole && tar -xf swoole.tar.gz -C swoole --strip-components=1 && rm swoole.tar.gz && cd swoole && phpize && ./configure && make -j$(nproc) && make install && cd -
- wget https://github.com/swoole/swoole-src/archive/v4.5.2.tar.gz -O swoole.tar.gz && mkdir -p swoole && tar -xf swoole.tar.gz -C swoole --strip-components=1 && rm swoole.tar.gz && cd swoole && phpize && ./configure && make -j$(nproc) && make install && cd -
- echo "extension = swoole.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini

before_script:
Expand Down
2 changes: 1 addition & 1 deletion src/db/README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Swoft Db Component

## [ENGLISH](README.md)

English readme please sess [README.md](README.md)
The english readme please see [README.md](README.md)

## 安装

Expand Down
2 changes: 1 addition & 1 deletion src/error/.travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ php:
- 7.2
- 7.3
install:
- wget https://github.com/swoole/swoole-src/archive/v4.4.18.tar.gz -O swoole.tar.gz && mkdir -p swoole && tar -xf swoole.tar.gz -C swoole --strip-components=1 && rm swoole.tar.gz && cd swoole && phpize && ./configure && make -j$(nproc) && make install && cd -
- wget https://github.com/swoole/swoole-src/archive/v4.5.2.tar.gz -O swoole.tar.gz && mkdir -p swoole && tar -xf swoole.tar.gz -C swoole --strip-components=1 && rm swoole.tar.gz && cd swoole && phpize && ./configure && make -j$(nproc) && make install && cd -
- echo "extension = swoole.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
before_script:
- composer config -g process-timeout 9000 && composer update
Expand Down
2 changes: 1 addition & 1 deletion src/error/README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Swoft Error Component

## [ENGLISH](README.md)

English readme please sess [README.md](README.md)
The english readme please see [README.md](README.md)

## 安装

Expand Down
2 changes: 1 addition & 1 deletion src/event/README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Swoft Event Component

## [ENGLISH](README.md)

English readme please sess [README.md](README.md)
The english readme please see [README.md](README.md)

## 安装

Expand Down
2 changes: 1 addition & 1 deletion src/framework/.travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ php:
- 7.3

install:
- wget https://github.com/swoole/swoole-src/archive/v4.4.18.tar.gz -O swoole.tar.gz && mkdir -p swoole && tar -xf swoole.tar.gz -C swoole --strip-components=1 && rm swoole.tar.gz && cd swoole && phpize && ./configure && make -j$(nproc) && make install && cd -
- wget https://github.com/swoole/swoole-src/archive/v4.5.2.tar.gz -O swoole.tar.gz && mkdir -p swoole && tar -xf swoole.tar.gz -C swoole --strip-components=1 && rm swoole.tar.gz && cd swoole && phpize && ./configure && make -j$(nproc) && make install && cd -
- echo "extension = swoole.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini

before_script:
Expand Down
2 changes: 1 addition & 1 deletion src/framework/README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Swoft Framework Component

## [ENGLISH](README.md)

English readme please sess [README.md](README.md)
The english readme please see [README.md](README.md)

## 安装

Expand Down
2 changes: 1 addition & 1 deletion src/http-message/README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Swoft Http Message Component

## [ENGLISH](README.md)

English readme please sess [README.md](README.md)
The english readme please see [README.md](README.md)

## 安装

Expand Down
2 changes: 1 addition & 1 deletion src/http-server/.travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ php:
- 7.3

install:
- wget https://github.com/swoole/swoole-src/archive/v4.4.18.tar.gz -O swoole.tar.gz && mkdir -p swoole && tar -xf swoole.tar.gz -C swoole --strip-components=1 && rm swoole.tar.gz && cd swoole && phpize && ./configure && make -j$(nproc) && make install && cd -
- wget https://github.com/swoole/swoole-src/archive/v4.5.2.tar.gz -O swoole.tar.gz && mkdir -p swoole && tar -xf swoole.tar.gz -C swoole --strip-components=1 && rm swoole.tar.gz && cd swoole && phpize && ./configure && make -j$(nproc) && make install && cd -
- echo "extension = swoole.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini

before_script:
Expand Down
2 changes: 1 addition & 1 deletion src/http-server/README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Swoft Http Server Component

## [ENGLISH](README.md)

English readme please sess [README.md](README.md)
The english readme please see [README.md](README.md)

## 安装

Expand Down
2 changes: 1 addition & 1 deletion src/i18n/.travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ php:
- 7.2
- 7.3
install:
- wget https://github.com/swoole/swoole-src/archive/v4.4.18.tar.gz -O swoole.tar.gz && mkdir -p swoole && tar -xf swoole.tar.gz -C swoole --strip-components=1 && rm swoole.tar.gz && cd swoole && phpize && ./configure && make -j$(nproc) && make install && cd -
- wget https://github.com/swoole/swoole-src/archive/v4.5.2.tar.gz -O swoole.tar.gz && mkdir -p swoole && tar -xf swoole.tar.gz -C swoole --strip-components=1 && rm swoole.tar.gz && cd swoole && phpize && ./configure && make -j$(nproc) && make install && cd -
- echo "extension = swoole.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
before_script:
- composer config -g process-timeout 9000 && composer update
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Swoft I18n Component

## [ENGLISH](README.md)

English readme please sess [README.md](README.md)
The english readme please see [README.md](README.md)

## 安装

Expand Down
2 changes: 1 addition & 1 deletion src/log/README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Swoft Log Component

## [ENGLISH](README.md)

English readme please sess [README.md](README.md)
The english readme please see [README.md](README.md)

## 安装

Expand Down
2 changes: 1 addition & 1 deletion src/process/README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Swoft Process Component

## [ENGLISH](README.md)

English readme please sess [README.md](README.md)
The english readme please see [README.md](README.md)

## 安装

Expand Down
2 changes: 1 addition & 1 deletion src/proxy/README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Swoft Proxy Component

## [ENGLISH](README.md)

English readme please sess [README.md](README.md)
The english readme please see [README.md](README.md)

## 安装

Expand Down
2 changes: 1 addition & 1 deletion src/redis/.travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ services:
- redis
install:
- echo 'no' | pecl install -f redis
- wget https://github.com/swoole/swoole-src/archive/v4.4.18.tar.gz -O swoole.tar.gz && mkdir -p swoole && tar -xf swoole.tar.gz -C swoole --strip-components=1 && rm swoole.tar.gz && cd swoole && phpize && ./configure && make -j$(nproc) && make install && cd -
- wget https://github.com/swoole/swoole-src/archive/v4.5.2.tar.gz -O swoole.tar.gz && mkdir -p swoole && tar -xf swoole.tar.gz -C swoole --strip-components=1 && rm swoole.tar.gz && cd swoole && phpize && ./configure && make -j$(nproc) && make install && cd -
- echo "extension = swoole.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini

before_script:
Expand Down
2 changes: 1 addition & 1 deletion src/redis/README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Swoft Redis Component

## [ENGLISH](README.md)

English readme please sess [README.md](README.md)
The english readme please see [README.md](README.md)

## 安装

Expand Down
2 changes: 1 addition & 1 deletion src/rpc-client/.travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ php:
- 7.2
- 7.3
install:
- wget https://github.com/swoole/swoole-src/archive/v4.4.18.tar.gz -O swoole.tar.gz && mkdir -p swoole && tar -xf swoole.tar.gz -C swoole --strip-components=1 && rm swoole.tar.gz && cd swoole && phpize && ./configure && make -j$(nproc) && make install && cd -
- wget https://github.com/swoole/swoole-src/archive/v4.5.2.tar.gz -O swoole.tar.gz && mkdir -p swoole && tar -xf swoole.tar.gz -C swoole --strip-components=1 && rm swoole.tar.gz && cd swoole && phpize && ./configure && make -j$(nproc) && make install && cd -
- echo "extension = swoole.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini

before_script:
Expand Down
2 changes: 1 addition & 1 deletion src/rpc-client/README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Swoft Rpc Client Component

## [ENGLISH](README.md)

English readme please sess [README.md](README.md)
The english readme please see [README.md](README.md)

## 安装

Expand Down
2 changes: 1 addition & 1 deletion src/rpc-server/.travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ php:
- 7.3

install:
- wget https://github.com/swoole/swoole-src/archive/v4.4.18.tar.gz -O swoole.tar.gz && mkdir -p swoole && tar -xf swoole.tar.gz -C swoole --strip-components=1 && rm swoole.tar.gz && cd swoole && phpize && ./configure && make -j$(nproc) && make install && cd -
- wget https://github.com/swoole/swoole-src/archive/v4.5.2.tar.gz -O swoole.tar.gz && mkdir -p swoole && tar -xf swoole.tar.gz -C swoole --strip-components=1 && rm swoole.tar.gz && cd swoole && phpize && ./configure && make -j$(nproc) && make install && cd -
- echo "extension = swoole.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini

before_script:
Expand Down
2 changes: 1 addition & 1 deletion src/rpc-server/README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Swoft Rpc Server Component

## [ENGLISH](README.md)

English readme please sess [README.md](README.md)
The english readme please see [README.md](README.md)

## 安装

Expand Down
2 changes: 1 addition & 1 deletion src/rpc/README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Swoft Rpc Component

## [ENGLISH](README.md)

English readme please sess [README.md](README.md)
The english readme please see [README.md](README.md)

## 安装

Expand Down
2 changes: 1 addition & 1 deletion src/server/README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Swoft Server Component

## [ENGLISH](README.md)

English readme please sess [README.md](README.md)
The english readme please see [README.md](README.md)

## 安装

Expand Down
2 changes: 1 addition & 1 deletion src/stdlib/README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Swoft Stdlib Component

## [ENGLISH](README.md)

English readme please sess [README.md](README.md)
The english readme please see [README.md](README.md)

## 安装

Expand Down
2 changes: 1 addition & 1 deletion src/task/.travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ php:
- 7.2
- 7.3
install:
- wget https://github.com/swoole/swoole-src/archive/v4.4.18.tar.gz -O swoole.tar.gz && mkdir -p swoole && tar -xf swoole.tar.gz -C swoole --strip-components=1 && rm swoole.tar.gz && cd swoole && phpize && ./configure && make -j$(nproc) && make install && cd -
- wget https://github.com/swoole/swoole-src/archive/v4.5.2.tar.gz -O swoole.tar.gz && mkdir -p swoole && tar -xf swoole.tar.gz -C swoole --strip-components=1 && rm swoole.tar.gz && cd swoole && phpize && ./configure && make -j$(nproc) && make install && cd -
- echo "extension = swoole.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini

before_script:
Expand Down
2 changes: 1 addition & 1 deletion src/task/README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Swoft Task Component

## [ENGLISH](README.md)

English readme please sess [README.md](README.md)
The english readme please see [README.md](README.md)

## 安装

Expand Down
2 changes: 1 addition & 1 deletion src/tcp-server/README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Swoft Tcp Server Component

## [ENGLISH](README.md)

English readme please sess [README.md](README.md)
The english readme please see [README.md](README.md)

## 安装

Expand Down
2 changes: 1 addition & 1 deletion src/tcp/README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Swoft Tcp Component

## [ENGLISH](README.md)

English readme please sess [README.md](README.md)
The english readme please see [README.md](README.md)

## 安装

Expand Down
4 changes: 2 additions & 2 deletions src/validator/.travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ php:
- 7.1
- 7.2
- 7.3

install:
- wget https://github.com/swoole/swoole-src/archive/v4.4.18.tar.gz -O swoole.tar.gz && mkdir -p swoole && tar -xf swoole.tar.gz -C swoole --strip-components=1 && rm swoole.tar.gz && cd swoole && phpize && ./configure && make -j$(nproc) && make install && cd -
- wget https://github.com/swoole/swoole-src/archive/v4.5.2.tar.gz -O swoole.tar.gz && mkdir -p swoole && tar -xf swoole.tar.gz -C swoole --strip-components=1 && rm swoole.tar.gz && cd swoole && phpize && ./configure && make -j$(nproc) && make install && cd -
- echo "extension = swoole.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini

before_script:
- composer config -g process-timeout 900 && composer update
- phpenv config-rm xdebug.ini


script:
- composer test
2 changes: 1 addition & 1 deletion src/validator/README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Swoft Validator Component

## [ENGLISH](README.md)

English readme please sess [README.md](README.md)
The english readme please see [README.md](README.md)

## 安装

Expand Down
Loading

0 comments on commit ceb1676

Please sign in to comment.