Skip to content

Commit

Permalink
Fix typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Dec 22, 2023
1 parent 13ad92c commit 9be3818
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -10,3 +10,4 @@ tests/test_app/App/Controller/ProductsController.php
tests/test_app/Plugin/TestBake/
tests/test_app/tests/
clover.xml
/.phpunit.result.cache
6 changes: 3 additions & 3 deletions src/Command/BakeCommand.php
Expand Up @@ -221,7 +221,7 @@ protected function parseFile(string $path): ?ParsedFile
* @param string $path The path to create the file at
* @param string $contents The contents to put into the file
* @param bool $forceOverwrite Whether the file should be overwritten without prompting the user
* @param bool $skipIfUnchnged Skip writing output if the contents match existing file
* @param bool $skipIfUnchanged Skip writing output if the contents match existing file
* @return bool True if successful, false otherwise
* @throws \Cake\Console\Exception\StopException When `q` is given as an answer
* to whether a file should be overwritten.
Expand All @@ -231,9 +231,9 @@ protected function writeFile(
string $path,
string $contents,
bool $forceOverwrite = false,
bool $skipIfUnchnged = true
bool $skipIfUnchanged = true
): bool {
if ($skipIfUnchnged && file_exists($path) && file_get_contents($path) === $contents) {
if ($skipIfUnchanged && file_exists($path) && file_get_contents($path) === $contents) {
$io->info("Skipping update to `{$path}`. It already exists and would not change.");

return true;
Expand Down

0 comments on commit 9be3818

Please sign in to comment.