diff --git a/src/ForwardCompatibility/FileUploader.php b/src/ForwardCompatibility/FileUploader.php index 1ea7ee8..80e623d 100644 --- a/src/ForwardCompatibility/FileUploader.php +++ b/src/ForwardCompatibility/FileUploader.php @@ -27,13 +27,13 @@ use Symfony\Component\Validator\ConstraintViolation; /** * Reads data from an upload stream and creates a corresponding file entity. * - * This is implemented at the field-level for the following reasons: + * This is implemented at the field level for the following reasons: * - Validation for uploaded files is tied to fields (allowed extensions, max * size, etc..). * - The actual files do not need to be stored in another temporary location, * to be later moved when they are referenced from a file field. - * - Permission to upload a file can be determined by a user's field and - * entity level access. + * - Permission to upload a file can be determined by a user's field- and + * entity-level access. * * @internal */ @@ -161,7 +161,7 @@ class FileUploader implements FileUploaderInterface { // before it is saved. $file->setSize(@filesize($temp_file_path)); - // Validate the file entity against entity level validation and field level + // Validate the file entity against entity-level validation and field-level // validators. $violations = $this->validate($file, $validators); if ($violations->count() > 0) { diff --git a/src/ForwardCompatibility/FileUploaderInterface.php b/src/ForwardCompatibility/FileUploaderInterface.php index 4d677d8..184e511 100644 --- a/src/ForwardCompatibility/FileUploaderInterface.php +++ b/src/ForwardCompatibility/FileUploaderInterface.php @@ -13,7 +13,7 @@ use Drupal\Core\Session\AccountInterface; * size, etc..). * - The actual files do not need to be stored in another temporary location, * to be later moved when they are referenced from a file field. - * - Permission to upload a file can be determined by a user's field level + * - Permission to upload a file can be determined by a user's field-level * create access to the file field. * * @internal