Skip to content

Commit 500c7d0

Browse files
committed
fix typo
1 parent 53a6c81 commit 500c7d0

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/Commands/AddCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,9 @@ public function create(CodeModel $model): bool
136136
mkdir($destination, 0777, true);
137137
}
138138

139-
$myfile = fopen($destination . '/' . $model->getFileName(), 'w');
140-
$size = fwrite($myfile, $model->getContent());
141-
$status = fclose($myfile);
139+
$file = fopen($destination . '/' . $model->getFileName(), 'w');
140+
$size = fwrite($file, $model->getContent());
141+
$status = fclose($file);
142142

143143
if (!$size || !$status) {
144144
return false;

src/Commands/NewCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function onExecute(object $sender, CommandEventArgs $args): void
8787
Console::resetColor();
8888
} else {
8989
Console::$ForegroundColor = ConsoleColor::Red;
90-
Console::writeLine("Somthing whent wrong! faild to create {$templateName} template.");
90+
Console::writeLine("Something went wrong! failed to create {$templateName} template.");
9191
Console::resetColor();
9292
}
9393
}

src/Program.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ public static function main(array $args = [])
3232
$rootCommand->setHandler(function (object $sender, CommandEventArgs $args): void {
3333
$version = $args->get('--version');
3434
if ($version) {
35-
Console::writeline("DevNet CLI: 1.0.0");
35+
Console::writeLine("DevNet CLI: 1.0.0");
3636
return;
3737
}
3838

3939
Console::$ForegroundColor = ConsoleColor::Red;
40-
Console::writeline("The command 'devnet' cannot be executed alone, try '--help' option for usage information.");
40+
Console::writeLine("The command 'devnet' cannot be executed alone, try '--help' option for usage information.");
4141
Console::resetColor();
4242
});
4343

0 commit comments

Comments
 (0)