Skip to content

Commit 9d7338b

Browse files
committed
feat: add rector
1 parent 2b4ee46 commit 9d7338b

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
},
2222
"require-dev": {
2323
"codeception/codeception": "^2.1",
24-
"codeception/specify": "^0.4.3"
24+
"codeception/specify": "^0.4.3",
25+
"rector/rector": "^2.0"
2526
},
2627
"autoload": {
2728
"psr-4": {

rector.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use Rector\Config\RectorConfig;
6+
7+
return RectorConfig::configure()
8+
->withPaths([
9+
__DIR__ . '/src',
10+
__DIR__ . '/tests',
11+
])
12+
// uncomment to reach your current PHP version
13+
->withPhpSets()
14+
->withTypeCoverageLevel(0)
15+
->withDeadCodeLevel(0)
16+
->withCodeQualityLevel(0);

src/Laravel/ChileanBundleServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@ public function boot()
4848
*/
4949
public function provides()
5050
{
51-
return array();
51+
return [];
5252
}
5353
}

0 commit comments

Comments
 (0)