Skip to content
This repository was archived by the owner on Mar 6, 2022. It is now read-only.

Commit 85639ed

Browse files
committed
Maestro mass commit
1 parent 9375374 commit 85639ed

File tree

6 files changed

+52
-19
lines changed

6 files changed

+52
-19
lines changed

.gitignore

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
vendor/
2-
composer.lock
3-
phpunit.xml
4-
composer.phar
5-
tests/Assets/workspace
1+
/vendor
2+
/tests/Workspace
3+
/tests/Assets/workspace
4+
/phpbench.json
5+
/composer.lock
6+
/.php_cs.cache
7+
/stubs

.php_cs.dist

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
3+
$finder = PhpCsFixer\Finder::create()
4+
->in('lib')
5+
->in('tests')
6+
->exclude([
7+
8+
])
9+
;
10+
11+
return PhpCsFixer\Config::create()
12+
->setRules([
13+
'@PSR2' => true,
14+
'no_unused_imports' => true,
15+
'array_syntax' => ['syntax' => 'short'],
16+
])
17+
->setFinder($finder)
18+
;
19+

.travis.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
language: php
22

33
php:
4-
- 7.0
54
- 7.1
65
- 7.2
7-
6+
- 7.3
7+
88
sudo: false
99

1010
cache:
11-
directories:
12-
- $HOME/.composer/cache
11+
directories:
12+
- $HOME/.composer/cache
1313

1414
before_script:
15-
- composer install
15+
- composer install
1616

17-
script:
18-
- ./vendor/bin/phpstan analyze --level=7 lib/
19-
- ./vendor/bin/phpstan analyze --level=7 tests/
20-
- ./vendor/bin/phpunit
17+
script:
18+
- ./vendor/bin/php-cs-fixer fix --dry-run
19+
- ./vendor/bin/phpstan analyse lib -c phpstan.neon
20+
- ./vendor/bin/phpunit
21+

composer.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@
1212
"webmozart/path-util": "^2.3"
1313
},
1414
"require-dev": {
15-
"phpunit/phpunit": "^6.1",
16-
"phpstan/phpstan": "^0.8.5"
15+
"phpunit/phpunit": "~7.0",
16+
"phpstan/phpstan": "~0.11.0",
17+
"friendsofphp/php-cs-fixer": "~2.15.0"
1718
},
1819
"autoload": {
1920
"psr-4": {
@@ -30,4 +31,4 @@
3031
"dev-master": "1.0-dev"
3132
}
3233
}
33-
}
34+
}

lib/PathFinder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace Phpactor\ClassFileConverter;
44

55
use Phpactor\ClassFileConverter\Exception\NoMatchingSourceException;
6-
use Phpactor\ClassFileConverter\PathFinder;
76
use Webmozart\PathUtil\Path;
87
use RuntimeException;
98

@@ -54,7 +53,8 @@ private function matchingSource($filePath)
5453

5554
throw new NoMatchingSourceException(sprintf(
5655
'Could not find a matching pattern for path "%s", known patterns: "%s"',
57-
$filePath, implode('", "', $this->destinations)
56+
$filePath,
57+
implode('", "', $this->destinations)
5858
));
5959
}
6060

phpstan.neon

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
includes:
2+
- vendor/phpstan/phpstan/conf/config.level7.neon
3+
4+
parameters:
5+
inferPrivatePropertyTypeFromConstructor: true
6+
ignoreErrors:
7+
8+
paths:
9+
- lib
10+

0 commit comments

Comments
 (0)