@@ -14,16 +14,14 @@ |
||
| 14 | 14 | * @package BrianHenryIE\Strauss\Tests\Issues |
| 15 | 15 | * @coversNothing |
| 16 | 16 | */ |
| 17 | -class StraussIssue19Test extends \BrianHenryIE\Strauss\Tests\Integration\Util\IntegrationTestCase |
|
| 18 | -{ |
|
| 17 | +class StraussIssue19Test extends \BrianHenryIE\Strauss\Tests\Integration\Util\IntegrationTestCase { |
|
| 19 | 18 | |
| 20 | 19 | /** |
| 21 | 20 | * Need to make the class finder in change enumerator stricter. |
| 22 | 21 | * |
| 23 | 22 | * @author BrianHenryIE |
| 24 | 23 | */ |
| 25 | - public function testObjectIsNotPrefixed() |
|
| 26 | - { |
|
| 24 | + public function testObjectIsNotPrefixed() { |
|
| 27 | 25 | |
| 28 | 26 | $composerJsonString = <<<'EOD' |
| 29 | 27 | { |
@@ -12,8 +12,7 @@ discard block |
||
| 12 | 12 | * @package BrianHenryIE\Strauss\Tests\Issues |
| 13 | 13 | * @coversNothing |
| 14 | 14 | */ |
| 15 | -class MozartIssue97Test extends IntegrationTestCase |
|
| 16 | -{ |
|
| 15 | +class MozartIssue97Test extends IntegrationTestCase { |
|
| 17 | 16 | |
| 18 | 17 | /** |
| 19 | 18 | * Issue 97. Package named "crewlabs/unsplash" is downloaded to `vendor/crewlabs/unsplash` but their composer.json |
@@ -21,8 +20,7 @@ discard block |
||
| 21 | 20 | * |
| 22 | 21 | * "The "/Users/BrianHenryIE/Sites/mozart-97/vendor/unsplash/unsplash/src" directory does not exist." |
| 23 | 22 | */ |
| 24 | - public function testCrewlabsUnsplashSucceeds() |
|
| 25 | - { |
|
| 23 | + public function testCrewlabsUnsplashSucceeds() { |
|
| 26 | 24 | |
| 27 | 25 | $composerJsonString = <<<'EOD' |
| 28 | 26 | { |
@@ -17,8 +17,7 @@ discard block |
||
| 17 | 17 | * @package BrianHenryIE\Strauss\Tests\Issues |
| 18 | 18 | * @coversNothing |
| 19 | 19 | */ |
| 20 | -class MozartIssue48Test extends IntegrationTestCase |
|
| 21 | -{ |
|
| 20 | +class MozartIssue48Test extends IntegrationTestCase { |
|
| 22 | 21 | |
| 23 | 22 | /** |
| 24 | 23 | * rubix/tensor |
@@ -26,8 +25,7 @@ discard block |
||
| 26 | 25 | * Mozart was only processing one of the PSR-4 autoload paths, in which case it was not copying (amongst others) |
| 27 | 26 | * `EigenvalueDecomposition.php` at all. Test for its presence. |
| 28 | 27 | */ |
| 29 | - public function testRubixTensorBothPathsPersist() |
|
| 30 | - { |
|
| 28 | + public function testRubixTensorBothPathsPersist() { |
|
| 31 | 29 | |
| 32 | 30 | $composerJsonString = <<<'EOD' |
| 33 | 31 | { |
@@ -29,14 +29,12 @@ |
||
| 29 | 29 | * @package BrianHenryIE\Strauss\Tests\Issues |
| 30 | 30 | * @coversNothing |
| 31 | 31 | */ |
| 32 | -class MozartIssue62Test extends IntegrationTestCase |
|
| 33 | -{ |
|
| 32 | +class MozartIssue62Test extends IntegrationTestCase { |
|
| 34 | 33 | |
| 35 | 34 | /** |
| 36 | 35 | * Just confirms `use Guzzle\Common\Collection;` is prefixed. |
| 37 | 36 | */ |
| 38 | - public function testGuzzleNamespaceIsPrefixedInS3Client() |
|
| 39 | - { |
|
| 37 | + public function testGuzzleNamespaceIsPrefixedInS3Client() { |
|
| 40 | 38 | $this->markTestSkipped('Very slow to run'); |
| 41 | 39 | |
| 42 | 40 | $composerJsonString = <<<'EOD' |
@@ -15,8 +15,7 @@ discard block |
||
| 15 | 15 | * Class MozartIssue93Test |
| 16 | 16 | * @coversNothing |
| 17 | 17 | */ |
| 18 | -class MozartIssue93Test extends IntegrationTestCase |
|
| 19 | -{ |
|
| 18 | +class MozartIssue93Test extends IntegrationTestCase { |
|
| 20 | 19 | /** |
| 21 | 20 | * Issue #93 shows a classname being updated inside a class whose namespace has also been updated |
| 22 | 21 | * by Mozart. |
@@ -26,8 +25,7 @@ discard block |
||
| 26 | 25 | * |
| 27 | 26 | * @author BrianHenryIE |
| 28 | 27 | */ |
| 29 | - public function test_it_does_not_make_classname_replacement_inside_namespaced_file() |
|
| 30 | - { |
|
| 28 | + public function test_it_does_not_make_classname_replacement_inside_namespaced_file() { |
|
| 31 | 29 | |
| 32 | 30 | $this->markTestSkipped('Not respecting the pinned commit.'); |
| 33 | 31 | |
@@ -18,8 +18,7 @@ discard block |
||
| 18 | 18 | * @package BrianHenryIE\Strauss\Tests\Issues |
| 19 | 19 | * @coversNothing |
| 20 | 20 | */ |
| 21 | -class MozartIssue43Test extends IntegrationTestCase |
|
| 22 | -{ |
|
| 21 | +class MozartIssue43Test extends IntegrationTestCase { |
|
| 23 | 22 | |
| 24 | 23 | /** |
| 25 | 24 | * Issue 43. Needs "aws/aws-sdk-php". |
@@ -27,8 +26,7 @@ discard block |
||
| 27 | 26 | * League\Flysystem\FileExistsException : File already exists at path: |
| 28 | 27 | * dep_directory/vendor/guzzle/guzzle/src/Guzzle/Cache/Zf1CacheAdapter.php |
| 29 | 28 | */ |
| 30 | - public function testAwsSdkSucceeds() |
|
| 31 | - { |
|
| 29 | + public function testAwsSdkSucceeds() { |
|
| 32 | 30 | $this->markTestSkipped('Very slow to run'); |
| 33 | 31 | |
| 34 | 32 | $composerJsonString = <<<'EOD' |
@@ -17,8 +17,7 @@ discard block |
||
| 17 | 17 | use League\Flysystem\Adapter\Local; |
| 18 | 18 | use League\Flysystem\Filesystem; |
| 19 | 19 | |
| 20 | -class Copier |
|
| 21 | -{ |
|
| 20 | +class Copier { |
|
| 22 | 21 | /** |
| 23 | 22 | * The only path variable with a leading slash. |
| 24 | 23 | * All directories in project end with a slash. |
@@ -40,8 +39,7 @@ discard block |
||
| 40 | 39 | * @param string $workingDir |
| 41 | 40 | * @param string $relativeTargetDir |
| 42 | 41 | */ |
| 43 | - public function __construct(array $filepaths, string $workingDir, string $relativeTargetDir) |
|
| 44 | - { |
|
| 42 | + public function __construct(array $filepaths, string $workingDir, string $relativeTargetDir) { |
|
| 45 | 43 | $this->filepaths = array_keys($filepaths); |
| 46 | 44 | |
| 47 | 45 | $this->workingDir = $workingDir; |
@@ -10,8 +10,7 @@ discard block |
||
| 10 | 10 | use JsonMapper\JsonMapperFactory; |
| 11 | 11 | use JsonMapper\Middleware\Rename\Rename; |
| 12 | 12 | |
| 13 | -class StraussConfig |
|
| 14 | -{ |
|
| 13 | +class StraussConfig { |
|
| 15 | 14 | /** |
| 16 | 15 | * The output directory. |
| 17 | 16 | * |
@@ -91,8 +90,7 @@ discard block |
||
| 91 | 90 | * |
| 92 | 91 | * @throws Exception |
| 93 | 92 | */ |
| 94 | - public function __construct(Composer $composer) |
|
| 95 | - { |
|
| 93 | + public function __construct(Composer $composer) { |
|
| 96 | 94 | |
| 97 | 95 | $configExtraSettings = null; |
| 98 | 96 | |
@@ -378,8 +376,7 @@ discard block |
||
| 378 | 376 | /** |
| 379 | 377 | * Backwards compatability with Mozart. |
| 380 | 378 | */ |
| 381 | - public function setExcludePackages(array $excludePackages) |
|
| 382 | - { |
|
| 379 | + public function setExcludePackages(array $excludePackages) { |
|
| 383 | 380 | |
| 384 | 381 | if (! isset($this->excludeFromPrefix)) { |
| 385 | 382 | $this->excludeFromPrefix = array(); |
@@ -11,8 +11,7 @@ discard block |
||
| 11 | 11 | use Composer\IO\NullIO; |
| 12 | 12 | use stdClass; |
| 13 | 13 | |
| 14 | -class ComposerPackage |
|
| 15 | -{ |
|
| 14 | +class ComposerPackage { |
|
| 16 | 15 | /** |
| 17 | 16 | * The composer.json file as parsed by Composer. |
| 18 | 17 | * |
@@ -58,8 +57,7 @@ discard block |
||
| 58 | 57 | * @param array $overrideAutoload Optional configuration to replace the package's own autoload definition with |
| 59 | 58 | * another which Strauss can use. |
| 60 | 59 | */ |
| 61 | - public function __construct(string $absolutePath, array $overrideAutoload = null) |
|
| 62 | - { |
|
| 60 | + public function __construct(string $absolutePath, array $overrideAutoload = null) { |
|
| 63 | 61 | |
| 64 | 62 | if (is_dir($absolutePath)) { |
| 65 | 63 | $absolutePath = rtrim($absolutePath, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . 'composer.json'; |