Skip to content

Commit

Permalink
Fix cái bug tôi đã tạo ra hồi chiều
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenanhung committed Sep 7, 2024
1 parent 7118449 commit 56c2450
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions helpers/file_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -277,19 +277,19 @@ function makeNewFolder($folderPath = '', $gitkeep = false)
$createReadme = generateFileReadme($folderPath);
if (is_cli()) {
if ($createIndex) {
echo "Create file index.html in " . $folderPath . " successfully";
echo "Create file index.html in " . $folderPath . " successfully" . PHP_EOL;
}
if ($createHtaccess) {
echo "Create file .htaccess in " . $folderPath . " successfully";
echo "Create file .htaccess in " . $folderPath . " successfully" . PHP_EOL;
}
if ($createReadme) {
echo "Create file README.md in " . $folderPath . " successfully";
echo "Create file README.md in " . $folderPath . " successfully" . PHP_EOL;
}
}
if ($gitkeep === true) {
$createGitkeep = touch($folderPath . '/.gitkeep');
if (is_cli() && $createGitkeep) {
echo "Create file .gitkeep in " . $folderPath . " successfully";
echo "Create file .gitkeep in " . $folderPath . " successfully" . PHP_EOL;
}
}
return true;
Expand Down
4 changes: 2 additions & 2 deletions src/BaseHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
*/
class BaseHelper
{
const VERSION = '1.6.4';
const LAST_MODIFIED = '2024-09-07';
const VERSION = '1.6.5';
const LAST_MODIFIED = '2024-09-08';
const PROJECT_NAME = 'CodeIgniter - Basic Helper';
const AUTHOR_NAME = 'Hung Nguyen';
const AUTHOR_FULL_NAME = 'Hung Nguyen';
Expand Down

0 comments on commit 56c2450

Please sign in to comment.