mirror of
https://github.com/danog/class-finder.git
synced 2024-11-26 12:04:42 +01:00
Normalize trailing and intermediary newlines
This commit is contained in:
parent
a813ebb444
commit
ab01b51aad
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,3 +1,3 @@
|
||||
.idea/
|
||||
test/app1/vendor/
|
||||
vendor/
|
||||
vendor/
|
||||
|
@ -4,4 +4,4 @@ PHP 5.3 - PHPUnit:
|
||||
|
||||
PHP 7.2 - PHPUnit:
|
||||
script: "ci/php72.sh $CI_PROJECT_DIR"
|
||||
image: "registry.gitlab.com/hpierce1102/classfinder/php72"
|
||||
image: "registry.gitlab.com/hpierce1102/classfinder/php72"
|
||||
|
2
LICENSE
2
LICENSE
@ -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
|
||||
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,
|
||||
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.
|
||||
|
@ -11,4 +11,3 @@ The Dockerfiles used to create these images are contained in a different reposit
|
||||
[ClassFinderTestContainers](https://gitlab.com/hpierce1102/ClassFinderTestContainers).
|
||||
|
||||
The CI scripts themselves are stored here in `/ci/*`, with the config in `/gitlab-ci.yml`.
|
||||
|
||||
|
@ -34,4 +34,4 @@ Upgrade to a newer version of PHP that includes the `PHP_BINARY` constant.
|
||||
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`.
|
||||
|
@ -47,5 +47,3 @@ disable_functions = exec,passthru,shell_exec,system,proc_open,popen
|
||||
```
|
||||
|
||||
Remove exec from the list and restart your webserver.
|
||||
|
||||
|
||||
|
@ -3,7 +3,6 @@
|
||||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/6.3/phpunit.xsd"
|
||||
bootstrap="./test/bootstrap.php"
|
||||
>
|
||||
|
||||
<!-- "./vendor/bin/phpunit" \-\-testsuite psr4 -->
|
||||
<testsuites>
|
||||
<testsuite name="all">
|
||||
@ -30,4 +29,4 @@
|
||||
<file>test/app2/ClassmapNoAutoloadTest.php</file>
|
||||
</testsuite>
|
||||
</testsuites>
|
||||
</phpunit>
|
||||
</phpunit>
|
||||
|
@ -82,4 +82,4 @@ class AppConfig
|
||||
{
|
||||
$this->appRoot = $appRoot;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
namespace HaydenPierce\ClassFinder;
|
||||
|
||||
use HaydenPierce\ClassFinder\Classmap\ClassmapEntryFactory;
|
||||
|
@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
namespace HaydenPierce\ClassFinder\Classmap;
|
||||
|
||||
use HaydenPierce\ClassFinder\ClassFinder;
|
||||
@ -60,5 +61,4 @@ class ClassmapEntry
|
||||
|
||||
return $namespace === $classNamespace;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
namespace HaydenPierce\ClassFinder\Classmap;
|
||||
|
||||
use HaydenPierce\ClassFinder\AppConfig;
|
||||
@ -32,4 +33,4 @@ class ClassmapEntryFactory
|
||||
return new ClassmapEntry($classmapKeys[$index]);
|
||||
}, range(0, count($classmap) - 1));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
namespace HaydenPierce\ClassFinder\Classmap;
|
||||
|
||||
use HaydenPierce\ClassFinder\Exception\ClassFinderException;
|
||||
|
@ -5,4 +5,4 @@ namespace HaydenPierce\ClassFinder\Exception;
|
||||
class ClassFinderException extends \Exception
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
namespace HaydenPierce\ClassFinder\Files;
|
||||
|
||||
class FilesEntry
|
||||
@ -84,4 +85,4 @@ class FilesEntry
|
||||
$path = str_replace('\\', '/', $path);
|
||||
return $path;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
namespace HaydenPierce\ClassFinder\Files;
|
||||
|
||||
use HaydenPierce\ClassFinder\AppConfig;
|
||||
@ -60,4 +61,4 @@ class FilesEntryFactory
|
||||
|
||||
return $php;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
namespace HaydenPierce\ClassFinder\Files;
|
||||
|
||||
use HaydenPierce\ClassFinder\Exception\ClassFinderException;
|
||||
|
@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
namespace HaydenPierce\ClassFinder;
|
||||
|
||||
interface FinderInterface
|
||||
|
@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
namespace HaydenPierce\ClassFinder\PSR4;
|
||||
|
||||
use HaydenPierce\ClassFinder\ClassFinder;
|
||||
|
@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
namespace HaydenPierce\ClassFinder\PSR4;
|
||||
|
||||
use HaydenPierce\ClassFinder\ClassFinder;
|
||||
@ -268,4 +269,4 @@ class PSR4Namespace
|
||||
{
|
||||
return trim($this->namespace, '\\');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
namespace HaydenPierce\ClassFinder\PSR4;
|
||||
|
||||
use HaydenPierce\ClassFinder\AppConfig;
|
||||
@ -141,4 +142,4 @@ class PSR4NamespaceFactory
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user