fix
This commit is contained in:
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
"id": "bx.nullable",
|
"id": "bx.nullable",
|
||||||
"prefix": "bx_nullable",
|
"prefix": "bx_nullable",
|
||||||
"namespace": "Bx\\Nullable",
|
"namespace": "Bx\\Nullable",
|
||||||
"gitUrl": "https://bitbucket.org/bellord13/bx.null/",
|
"repo": "https://gitea.ixrs.ru/bellord/bx.nullable.git",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"date": "2026-01-01 00:00:00",
|
"date": "2026-01-01 00:00:00",
|
||||||
"deps": ["wt.core"]
|
"deps": ["wt.core"]
|
||||||
|
|||||||
@@ -2,14 +2,13 @@
|
|||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
use Wt\Core\App\ModuleEntity;
|
|
||||||
use Wt\Core\App\ModuleCloner;
|
use Wt\Core\App\ModuleCloner;
|
||||||
|
|
||||||
require './../wt.core/include.php';
|
require './../wt.core/include.php';
|
||||||
require './ModuleCloner.php';
|
require './ModuleCloner.php';
|
||||||
|
|
||||||
if (!isset($argv[1])) {
|
if (!isset($argv[1])) {
|
||||||
echo "Error: Please provide the target module path as the first argument." . PHP_EOL;
|
echo 'Error: Please provide the target module path as the first argument.' . PHP_EOL;
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -29,8 +28,8 @@ try {
|
|||||||
$cloner = new ModuleCloner($sourceEntity, $targetEntity);
|
$cloner = new ModuleCloner($sourceEntity, $targetEntity);
|
||||||
$cloner->clone();
|
$cloner->clone();
|
||||||
|
|
||||||
echo "Success: Module cloned successfully." . PHP_EOL;
|
echo 'Success: Module cloned successfully.' . PHP_EOL;
|
||||||
} catch (Throwable $e) {
|
} catch (Throwable $e) {
|
||||||
echo "Critical Error: " . $e->getMessage() . PHP_EOL;
|
echo 'Critical Error: ' . $e->getMessage() . PHP_EOL;
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
namespace Bx\Nullable\Interfaces;
|
namespace Bx\Nullable\Interfaces;
|
||||||
|
|
||||||
class ITest
|
interface ITest
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user