-
-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fix the coverage of some files (whitelist the files that should not be covered) - Make `MapFile` return the unchanged path if no mapping is found for the given path: this allows to simplify some code - Update the `ComposerOrchestrator` to not change the original `vendor/autoload.php` file if not necessary and make the changer prettier and more accurate (pure styling, no semantic change) when the file is changed - Remove the config JSON imports support - Fix some typos - Add a lot of tests and rework some
- Loading branch information
Showing
48 changed files
with
5,576 additions
and
200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/* | ||
* This file is part of the box project. | ||
* | ||
* (c) Kevin Herrera <[email protected]> | ||
* Théo Fidry <[email protected]> | ||
* | ||
* This source file is subject to the MIT license that is bundled | ||
* with this source code in the file LICENSE. | ||
*/ | ||
|
||
namespace KevinGH\Box\PhpScoper; | ||
|
||
use KevinGH\Box\NotCallable; | ||
|
||
final class FakeScoper implements Scoper | ||
{ | ||
use NotCallable; | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function scope(string $filePath, string $contents): string | ||
{ | ||
$this->__call(__METHOD__, func_get_args()); | ||
} | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function getWhitelist(): array | ||
{ | ||
$this->__call(__METHOD__, func_get_args()); | ||
} | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function getPrefix(): string | ||
{ | ||
$this->__call(__METHOD__, func_get_args()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"require": { | ||
"beberlei/assert": "^2.8" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"require": { | ||
"beberlei/assert": "^2.8" | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"require": { | ||
"beberlei/assert": "^2.8" | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
fixtures/composer-dump/dir002/vendor/beberlei/assert/LICENSE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Copyright (c) 2011-2013, Benjamin Eberlei | ||
All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are met: | ||
|
||
- Redistributions of source code must retain the above copyright notice, this | ||
list of conditions and the following disclaimer. | ||
- Redistributions in binary form must reproduce the above copyright notice, | ||
this list of conditions and the following disclaimer in the documentation | ||
and/or other materials provided with the distribution. |
54 changes: 54 additions & 0 deletions
54
fixtures/composer-dump/dir002/vendor/beberlei/assert/composer.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{ | ||
"name": "beberlei/assert", | ||
"description": "Thin assertion library for input validation in business models.", | ||
"authors": [ | ||
{ | ||
"name": "Benjamin Eberlei", | ||
"email": "[email protected]", | ||
"role": "Lead Developer" | ||
}, | ||
{ | ||
"name": "Richard Quadling", | ||
"email": "[email protected]", | ||
"role": "Collaborator" | ||
} | ||
], | ||
"license": "BSD-2-Clause", | ||
"keywords": [ | ||
"assert", | ||
"assertion", | ||
"validation" | ||
], | ||
"config": { | ||
"sort-packages": true | ||
}, | ||
"require": { | ||
"php": ">=5.3", | ||
"ext-mbstring": "*" | ||
}, | ||
"require-dev": { | ||
"friendsofphp/php-cs-fixer": "^2.1.1", | ||
"phpunit/phpunit": "^4.8.35|^5.7" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Assert\\": "lib/Assert" | ||
}, | ||
"files": [ | ||
"lib/Assert/functions.php" | ||
] | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"Assert\\Tests\\": "tests/Assert/Tests" | ||
}, | ||
"files": [ | ||
"tests/Assert/Tests/Fixtures/functions.php" | ||
] | ||
}, | ||
"scripts": { | ||
"assert:generate-docs": "php bin/generate_method_docs.php", | ||
"assert:cs-lint": "php-cs-fixer fix --diff -vvv --dry-run", | ||
"assert:cs-fix": "php-cs-fixer fix . -vvv || true" | ||
} | ||
} |
Oops, something went wrong.