Skip to content

Commit 32e6657

Browse files
committed
Update ScaffoldCommand.php
1 parent 71e081e commit 32e6657

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Ubiquity/scaffolding/ScaffoldCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
use Ubiquity\utils\base\UFileSystem;
55
use Ubiquity\utils\base\UArray;
66
use Ubiquity\devtools\utils\FileUtils;
7+
use Ubiquity\utils\base\UString;
78

89
/**
910
* Create a new command
@@ -84,7 +85,7 @@ public function create($pattern, &$cmdPath) {
8485
'%aliases%' => UArray::asPhpArray($aliases, 'array'),
8586
'%parameters%' => $this->createParameters(),
8687
'%value%' => $this->value,
87-
'%description%' => $this->description == null ? ($this->name . ' description.') : $this->description,
88+
'%description%' => $this->description == null ? ($this->name . ' description.') : \addslashes($this->description),
8889
'%uses%' => $this->addUses(),
8990
'%namespace%' => $this->createNamespace($directory)
9091
];

0 commit comments

Comments
 (0)