1
0
mirror of https://github.com/danog/class-finder.git synced 2024-11-29 20:18:59 +01:00

Normalize trailing and intermediary newlines

This commit is contained in:
Benedikt Franke 2020-03-24 10:08:07 +01:00
parent a813ebb444
commit ab01b51aad
20 changed files with 24 additions and 18 deletions

2
.gitignore vendored
View File

@ -1,3 +1,3 @@
.idea/ .idea/
test/app1/vendor/ test/app1/vendor/
vendor/ vendor/

View File

@ -4,4 +4,4 @@ PHP 5.3 - PHPUnit:
PHP 7.2 - PHPUnit: PHP 7.2 - PHPUnit:
script: "ci/php72.sh $CI_PROJECT_DIR" script: "ci/php72.sh $CI_PROJECT_DIR"
image: "registry.gitlab.com/hpierce1102/classfinder/php72" image: "registry.gitlab.com/hpierce1102/classfinder/php72"

View File

@ -10,4 +10,4 @@ The above copyright notice and this permission notice shall be included in all c
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View File

@ -11,4 +11,3 @@ The Dockerfiles used to create these images are contained in a different reposit
[ClassFinderTestContainers](https://gitlab.com/hpierce1102/ClassFinderTestContainers). [ClassFinderTestContainers](https://gitlab.com/hpierce1102/ClassFinderTestContainers).
The CI scripts themselves are stored here in `/ci/*`, with the config in `/gitlab-ci.yml`. The CI scripts themselves are stored here in `/ci/*`, with the config in `/gitlab-ci.yml`.

View File

@ -34,4 +34,4 @@ Upgrade to a newer version of PHP that includes the `PHP_BINARY` constant.
Possible Solution 2 Possible Solution 2
------------------- -------------------
Add `php` to your `$PATH` so it can be discovered via `which` or `where`. Add `php` to your `$PATH` so it can be discovered via `which` or `where`.

View File

@ -47,5 +47,3 @@ disable_functions = exec,passthru,shell_exec,system,proc_open,popen
``` ```
Remove exec from the list and restart your webserver. Remove exec from the list and restart your webserver.

View File

@ -3,7 +3,6 @@
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/6.3/phpunit.xsd" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/6.3/phpunit.xsd"
bootstrap="./test/bootstrap.php" bootstrap="./test/bootstrap.php"
> >
<!-- "./vendor/bin/phpunit" \-\-testsuite psr4 --> <!-- "./vendor/bin/phpunit" \-\-testsuite psr4 -->
<testsuites> <testsuites>
<testsuite name="all"> <testsuite name="all">
@ -30,4 +29,4 @@
<file>test/app2/ClassmapNoAutoloadTest.php</file> <file>test/app2/ClassmapNoAutoloadTest.php</file>
</testsuite> </testsuite>
</testsuites> </testsuites>
</phpunit> </phpunit>

View File

@ -82,4 +82,4 @@ class AppConfig
{ {
$this->appRoot = $appRoot; $this->appRoot = $appRoot;
} }
} }

View File

@ -1,4 +1,5 @@
<?php <?php
namespace HaydenPierce\ClassFinder; namespace HaydenPierce\ClassFinder;
use HaydenPierce\ClassFinder\Classmap\ClassmapEntryFactory; use HaydenPierce\ClassFinder\Classmap\ClassmapEntryFactory;

View File

@ -1,4 +1,5 @@
<?php <?php
namespace HaydenPierce\ClassFinder\Classmap; namespace HaydenPierce\ClassFinder\Classmap;
use HaydenPierce\ClassFinder\ClassFinder; use HaydenPierce\ClassFinder\ClassFinder;
@ -60,5 +61,4 @@ class ClassmapEntry
return $namespace === $classNamespace; return $namespace === $classNamespace;
} }
}
}

View File

@ -1,4 +1,5 @@
<?php <?php
namespace HaydenPierce\ClassFinder\Classmap; namespace HaydenPierce\ClassFinder\Classmap;
use HaydenPierce\ClassFinder\AppConfig; use HaydenPierce\ClassFinder\AppConfig;
@ -32,4 +33,4 @@ class ClassmapEntryFactory
return new ClassmapEntry($classmapKeys[$index]); return new ClassmapEntry($classmapKeys[$index]);
}, range(0, count($classmap) - 1)); }, range(0, count($classmap) - 1));
} }
} }

View File

@ -1,4 +1,5 @@
<?php <?php
namespace HaydenPierce\ClassFinder\Classmap; namespace HaydenPierce\ClassFinder\Classmap;
use HaydenPierce\ClassFinder\Exception\ClassFinderException; use HaydenPierce\ClassFinder\Exception\ClassFinderException;

View File

@ -5,4 +5,4 @@ namespace HaydenPierce\ClassFinder\Exception;
class ClassFinderException extends \Exception class ClassFinderException extends \Exception
{ {
} }

View File

@ -1,4 +1,5 @@
<?php <?php
namespace HaydenPierce\ClassFinder\Files; namespace HaydenPierce\ClassFinder\Files;
class FilesEntry class FilesEntry
@ -84,4 +85,4 @@ class FilesEntry
$path = str_replace('\\', '/', $path); $path = str_replace('\\', '/', $path);
return $path; return $path;
} }
} }

View File

@ -1,4 +1,5 @@
<?php <?php
namespace HaydenPierce\ClassFinder\Files; namespace HaydenPierce\ClassFinder\Files;
use HaydenPierce\ClassFinder\AppConfig; use HaydenPierce\ClassFinder\AppConfig;
@ -60,4 +61,4 @@ class FilesEntryFactory
return $php; return $php;
} }
} }

View File

@ -1,4 +1,5 @@
<?php <?php
namespace HaydenPierce\ClassFinder\Files; namespace HaydenPierce\ClassFinder\Files;
use HaydenPierce\ClassFinder\Exception\ClassFinderException; use HaydenPierce\ClassFinder\Exception\ClassFinderException;

View File

@ -1,4 +1,5 @@
<?php <?php
namespace HaydenPierce\ClassFinder; namespace HaydenPierce\ClassFinder;
interface FinderInterface interface FinderInterface

View File

@ -1,4 +1,5 @@
<?php <?php
namespace HaydenPierce\ClassFinder\PSR4; namespace HaydenPierce\ClassFinder\PSR4;
use HaydenPierce\ClassFinder\ClassFinder; use HaydenPierce\ClassFinder\ClassFinder;

View File

@ -1,4 +1,5 @@
<?php <?php
namespace HaydenPierce\ClassFinder\PSR4; namespace HaydenPierce\ClassFinder\PSR4;
use HaydenPierce\ClassFinder\ClassFinder; use HaydenPierce\ClassFinder\ClassFinder;
@ -268,4 +269,4 @@ class PSR4Namespace
{ {
return trim($this->namespace, '\\'); return trim($this->namespace, '\\');
} }
} }

View File

@ -1,4 +1,5 @@
<?php <?php
namespace HaydenPierce\ClassFinder\PSR4; namespace HaydenPierce\ClassFinder\PSR4;
use HaydenPierce\ClassFinder\AppConfig; use HaydenPierce\ClassFinder\AppConfig;
@ -141,4 +142,4 @@ class PSR4NamespaceFactory
} }
return false; return false;
} }
} }