Skip to content

Commit

Permalink
Merge pull request #54 from nguyenanhung/develop
Browse files Browse the repository at this point in the history
Fix cái bug tôi đã tạo ra hồi chiều
  • Loading branch information
nguyenanhung authored Sep 7, 2024
2 parents 7118449 + 56c2450 commit c93ff32
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 c93ff32

Please sign in to comment.