Skip to content
This repository was archived by the owner on Aug 22, 2021. It is now read-only.

Commit 79962c1

Browse files
committed
📦 Cleanup.
1 parent 302bd01 commit 79962c1

13 files changed

+201
-371
lines changed

.php_cs

Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,26 @@
11
<?php
2-
/**
3-
* PHP-CS-fixer configuration.
4-
*/
2+
$header = <<<EOF
3+
This file is part of the overtrue/laravel-ueditor.
4+
(c) overtrue <[email protected]>
5+
This source file is subject to the MIT license that is bundled
6+
with this source code in the file LICENSE.
7+
EOF;
58

6-
$finder = Symfony\CS\Finder\DefaultFinder::create()
7-
->in(__DIR__ . '/src/')
8-
;
9-
10-
return Symfony\CS\Config\Config::create()
11-
->fixers(array (
12-
0 => 'symfony',
13-
))
14-
->finder($finder)
15-
->setUsingCache(true)
16-
;
9+
return PhpCsFixer\Config::create()
10+
->setRiskyAllowed(true)
11+
->setRules(array(
12+
'@Symfony' => true,
13+
'header_comment' => array('header' => $header),
14+
'array_syntax' => array('syntax' => 'short'),
15+
'ordered_imports' => true,
16+
'no_useless_else' => true,
17+
'no_useless_return' => true,
18+
'php_unit_construct' => true,
19+
'php_unit_strict' => true,
20+
))
21+
->setFinder(
22+
PhpCsFixer\Finder::create()
23+
->exclude('vendor')
24+
->in(__DIR__)
25+
)
26+
;

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
"Overtrue\\LaravelUEditor\\":"src/"
1414
}
1515
},
16-
"require": {
17-
"qiniu/php-sdk": "7.*"
16+
"suggest": {
17+
"overtrue/laravel-filesystem-qiniu": "如果你想要使用七牛云存储,也许你需要安装它哦~"
1818
},
1919
"require-dev": {
2020
"fabpot/php-cs-fixer": "^1.10"

src/LocalStorage.php

Lines changed: 0 additions & 95 deletions
This file was deleted.

src/QiNiuStorage.php

Lines changed: 0 additions & 67 deletions
This file was deleted.

src/StorageInterface.php

Lines changed: 0 additions & 52 deletions
This file was deleted.

0 commit comments

Comments
 (0)