@@ -172,7 +172,7 @@ protected function hasErrors(Resource $resource, $destenationFile)
172172 }
173173
174174 if ($ this ->alreadyExists ($ destenationFile )) {
175- $ this ->error ('The controller already exists! ' );
175+ $ this ->error ('The controller already exists! To override the existing file, use --force option. ' );
176176
177177 $ hasErrors = true ;
178178 }
@@ -181,7 +181,7 @@ protected function hasErrors(Resource $resource, $destenationFile)
181181 }
182182
183183 /**
184- * Extracts a namespace from a giving string
184+ * Extracts a namespace from a given string
185185 *
186186 * @param string $string
187187 *
@@ -241,7 +241,7 @@ protected function getDataMethod(array $fields, $requestFullname, $input)
241241 }
242242
243243 /**
244- * Extracts a namespace from a giving string
244+ * Extracts a namespace from a given string
245245 *
246246 * @param string $string
247247 *
@@ -304,7 +304,7 @@ protected function getDataMethodStubContent()
304304 }
305305
306306 /**
307- * Get a string to set a giving $variable with a $key and $value pair
307+ * Get a string to set a given $variable with a $key and $value pair
308308 *
309309 * @param string $key
310310 * @param string $value
@@ -400,7 +400,7 @@ protected function getCommandInput()
400400 }
401401
402402 /**
403- * Converts giving array of variables to a compact statements.
403+ * Converts given array of variables to a compact statements.
404404 *
405405 * @param array $variables
406406 *
@@ -558,7 +558,7 @@ protected function getModelNamespace($modelName, $modelDirectory)
558558 }
559559
560560 /**
561- * Gets the setter action for the giving field on-store.
561+ * Gets the setter action for the given field on-store.
562562 *
563563 * @param array $fields
564564 * @param string $view
@@ -580,7 +580,7 @@ protected function getOnStoreAction(array $fields)
580580 }
581581
582582 /**
583- * Gets the setter action for the giving field on-update.
583+ * Gets the setter action for the given field on-update.
584584 *
585585 * @param array $fields
586586 * @param string $view
@@ -602,7 +602,7 @@ protected function getOnUpdateAction(array $fields)
602602 }
603603
604604 /**
605- * Gets the relation accessor for the giving foreign renationship.
605+ * Gets the relation accessor for the given foreign renationship.
606606 *
607607 * @param CrestApps\CodeGenerator\Models\ForeignRelationship $collection
608608 *
@@ -767,7 +767,7 @@ protected function getWithRelationFor(array $fields, $view)
767767 }
768768
769769 /**
770- * Converts giving array of relation name to a with() statements.
770+ * Converts given array of relation name to a with() statements.
771771 *
772772 * @param array $variables
773773 *
@@ -783,7 +783,7 @@ protected function getWithRelationsStatement(array $relations)
783783 }
784784
785785 /**
786- * Checks if a giving fields array conatins at least one multiple answers' field.
786+ * Checks if a given fields array conatins at least one multiple answers' field.
787787 *
788788 * @param array
789789 *
@@ -980,7 +980,7 @@ protected function replacePaginationNumber(&$stub, $total)
980980 }
981981
982982 /**
983- * Replaces relationCollections for the giving stub.
983+ * Replaces relationCollections for the given stub.
984984 *
985985 * @param $stub
986986 * @param $collections
@@ -1117,7 +1117,7 @@ protected function replaceViewVariablesForShow(&$stub, $variables)
11171117 }
11181118
11191119 /**
1120- * Replaces withRelationsForIndex for the giving stub.
1120+ * Replaces withRelationsForIndex for the given stub.
11211121 *
11221122 * @param $stub
11231123 * @param $relations
@@ -1130,7 +1130,7 @@ protected function replaceWithRelationsForIndex(&$stub, $relations)
11301130 }
11311131
11321132 /**
1133- * Replaces withRelationsForShow for the giving stub.
1133+ * Replaces withRelationsForShow for the given stub.
11341134 *
11351135 * @param $stub
11361136 * @param $relations
0 commit comments