Skip to content

Commit 4d442f4

Browse files
committed
minor #385 Fix various typos (fabpot)
This PR was merged into the 1.0-dev branch. Discussion ---------- Fix various typos Commits ------- 76f9f5d fixed typos
2 parents c58432d + 76f9f5d commit 4d442f4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Validator.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public static function validateClassName(string $className, string $errorMessage
6565
public static function notBlank(string $value = null): string
6666
{
6767
if (null === $value || '' === $value) {
68-
throw new RuntimeCommandException('This value cannot be blank');
68+
throw new RuntimeCommandException('This value cannot be blank.');
6969
}
7070

7171
return $value;
@@ -181,7 +181,7 @@ public static function classExists(string $className, string $errorMessage = '')
181181
self::notBlank($className);
182182

183183
if (!class_exists($className)) {
184-
$errorMessage = $errorMessage ?: sprintf('Class "%s" doesn\'t exists. Please enter existing full class name', $className);
184+
$errorMessage = $errorMessage ?: sprintf('Class "%s" doesn\'t exist; please enter an existing full class name.', $className);
185185

186186
throw new RuntimeCommandException($errorMessage);
187187
}
@@ -194,15 +194,15 @@ public static function entityExists(string $className = null, array $entities =
194194
self::notBlank($className);
195195

196196
if (empty($entities)) {
197-
throw new RuntimeCommandException('There is no registered entities. Please create entity before use this command');
197+
throw new RuntimeCommandException('There is no registered entities; please create entity before use this command.');
198198
}
199199

200200
if (0 === strpos($className, '\\')) {
201-
self::classExists($className, sprintf('Entity "%s" doesn\'t exists. Please enter existing one or create new', $className));
201+
self::classExists($className, sprintf('Entity "%s" doesn\'t exist; please enter an existing one or create a new one.', $className));
202202
}
203203

204204
if (!\in_array($className, $entities)) {
205-
throw new RuntimeCommandException(sprintf('Entity "%s" doesn\'t exists. Please enter existing one or create new', $className));
205+
throw new RuntimeCommandException(sprintf('Entity "%s" doesn\'t exist; please enter an existing one or create a new one.', $className));
206206
}
207207

208208
return $className;
@@ -213,7 +213,7 @@ public static function classDoesNotExist($className): string
213213
self::notBlank($className);
214214

215215
if (class_exists($className)) {
216-
throw new RuntimeCommandException(sprintf('Class "%s" already exists', $className));
216+
throw new RuntimeCommandException(sprintf('Class "%s" already exists.', $className));
217217
}
218218

219219
return $className;

0 commit comments

Comments
 (0)