Skip to content

Commit 97cb0ad

Browse files
Merge pull request #5 from MaplePHP/develop
Minor improvement
2 parents dc53812 + e04775c commit 97cb0ad

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Unit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ private function findFiles($dir): array
148148
$iterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($dir));
149149
foreach ($iterator as $file) {
150150
if (fnmatch(static::PATTERN, $file->getFilename()) &&
151-
(isset($this->args['path']) || strpos($file->getPathname(), "vendor/") === false)) {
151+
(isset($this->args['path']) || !str_contains($file->getPathname(), "vendor/"))) {
152152
$files[] = $file->getPathname();
153153
}
154154
}

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
],
1818
"require": {
1919
"php": ">=8.0",
20-
"maplephp/dto": "^1.0",
21-
"maplephp/http": "^1.0",
22-
"maplephp/validate": "^1.0.0",
23-
"maplephp/prompts": "^1.0"
20+
"maplephp/dto": "*",
21+
"maplephp/http": "*",
22+
"maplephp/validate": "*",
23+
"maplephp/prompts": "*"
2424
},
2525
"autoload": {
2626
"psr-4": {

tools/unitary renamed to unitary

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use MaplePHP\Prompts\Command;
77
use MaplePHP\Unitary\Unit;
88

99
if (!class_exists(Unit::class)) {
10-
$dir = realpath(__DIR__ . "/../../../");
10+
$dir = realpath(__DIR__ . "/../../");
1111
$alFile = (defined("UNITARY_AUTOLOAD_FILE") ? UNITARY_AUTOLOAD_FILE : "$dir/autoload.php");
1212
if (is_file($alFile)) {
1313
require_once($alFile);

0 commit comments

Comments
 (0)