Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix typo #1490

Merged
merged 1 commit into from
Jan 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/Support_Question.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ about: Have a problem that you can't figure out? 🤔
<!--
Before asking question here, please try asking on StackOverflow first.
Keep in mind that GitHub is primarily an issue tracker.
Also, look in old issues (open and/or closed) too see if issue has been
Also, look in old issues (open and/or closed) to see if issue has been
previously discussed.
-->

Expand Down
2 changes: 1 addition & 1 deletion docs/downloads/serving_files_with_a_controller.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class AcmeController extends AbstractController

Instead of forcing the file to be downloaded by you browser, you can set it as an **inline** content.
Depending on the capabilities of the browser, the file should be displayed inside the browser.
You can use it to keep the file non publicly accessible (with access checks for exemple) but still
You can use it to keep the file non publicly accessible (with access checks for example) but still
displayable inside HTML (for images) or directly previewable (like PDFs).

Set the `forceDownload` argument to `false` to disable the forced download behaviour.
Expand Down
2 changes: 1 addition & 1 deletion docs/events/howto/remove_files_asynchronously.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class RemoveProductImageMessageHandler implements MessageHandlerInterface
}
```

Create a event subscriber that will cancel the remove request and dispatch a remove message.
Create an event subscriber that will cancel the remove request and dispatch a remove message.

```php
<?php
Expand Down
4 changes: 2 additions & 2 deletions docs/form/vich_file_type.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ If set to `true`, download uri will be generated with `asset()` method from `sym

**type**: `bool`, `string`, `callable` **default**: `true`

If set to `true`, download uri will automatically resolved using storage.
If set to `true`, download uri will automatically be resolved using storage.

Can be string

Expand Down Expand Up @@ -87,7 +87,7 @@ If set to `true`, download label will use original file name.
Can be string. If you use a string, string wille be translated. You can put your translation in default messages domain.
Otherwise, you can pass `translation_domain` option, setting it to `false` (no translation) or to your custom domain.

See [Symfony documentation](https://symfony.com/doc/current/translation.html) for more informations.
See [Symfony documentation](https://symfony.com/doc/current/translation.html) for more information.

```php
use Vich\UploaderBundle\Form\Type\VichFileType;
Expand Down
6 changes: 3 additions & 3 deletions docs/form/vich_image_type.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ If set to `true`, download uri will be generated with `asset()` method from `sym

**type**: `bool`, `string`, `callable` **default**: `true`

If set to `true`, download uri will automatically resolved using storage.
If set to `true`, download uri will automatically be resolved using storage.

Can be string

Expand Down Expand Up @@ -121,7 +121,7 @@ $builder->add('genericFile', VichImageType::class, [

**type**: `bool`, `string`, `callable` **default**: `true`

If set to `true`, download uri will automatically resolved using storage.
If set to `true`, download uri will automatically be resolved using storage.

Can be string

Expand Down Expand Up @@ -155,7 +155,7 @@ $builder->add('genericFile', VichImageType::class, [

**type**: `string` **default**: `null`

If set, image will automatically transformed using [LiipImagineBundle](https://github.com/liip/LiipImagineBundle/).
If set, image will automatically be transformed using [LiipImagineBundle](https://github.com/liip/LiipImagineBundle/).

Example

Expand Down
2 changes: 1 addition & 1 deletion docs/known_issues.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ method above must take an instance of `File` as when this class is hydrated by D
bundle will automatically inject an instance of `File` there. However, if you were to change
the image path to a new image in that instance of `File` and attempted a `flush()` nothing
would happen, instead inject a new instance of `UploadedFile` with the new path to your new
image to sucessfully trigger the upload.
image to successfully trigger the upload.

**N.B.** : UploadedFile objects have a
[*test* mode](https://github.com/symfony/symfony/blob/6.1/src/Symfony/Component/HttpFoundation/File/UploadedFile.php#L63)
Expand Down
4 changes: 2 additions & 2 deletions docs/namers.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ applying a transliteration. Using this namer, "a Strange name.jpg" will be uploa
"a-strange-name-0eb3db03971550eb3b0371.jpg".

**SlugNamer** will only transliterate uploaded file. Then, it will search if such name already exists and, if so,
will append a progresive number (to ensure uniqueness). This is useful when you want to keep your names as closer
will append a progressive number (to ensure uniqueness). This is useful when you want to keep your names as closer
as possible to original ones, but is also limited to simple situations (i.e. when you're using a single mapped entity).
To use it, you just have to specify the service for the `namer` configuration option of your mapping:

Expand Down Expand Up @@ -162,7 +162,7 @@ vich_uploader:
created in the `Y/m/d` format. It is possible to configure the datetime format used to create directories.
For details of datetime formats see <http://php.net/manual/en/function.date.php>.
You should also pass to this namer an option declaring a property where uploading datetime is stored in your object.
Such property will be accessed via ProperyAccessor, so it can be a public property or a getter method.
Such property will be accessed via PropertyAccessor, so it can be a public property or a getter method.
For example, if your object has a `getUploadTimestamp(): \DateTimeInterface` method, you can pass
`date_time_property: uploadTimestamp` to namer.

Expand Down
4 changes: 2 additions & 2 deletions src/Metadata/Driver/AnnotationDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ public function getAllClassNames(): array
$classes = [];
$metadata = [];

foreach ($this->managerRegistryList as $managerRegisty) {
$managers = $managerRegisty->getManagers();
foreach ($this->managerRegistryList as $managerRegistry) {
$managers = $managerRegistry->getManagers();
foreach ($managers as $manager) {
$metadata[] = $manager->getMetadataFactory()->getAllMetadata();
}
Expand Down
2 changes: 1 addition & 1 deletion src/Naming/ConfigurableDirectoryNamer.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Vich\UploaderBundle\Mapping\PropertyMapping;

/**
* Directory namer which can create subfolder which path is given in the directory namer's options.
* Directory namer that can create subfolder which path is given in the directory namer's options.
*/
class ConfigurableDirectoryNamer implements DirectoryNamerInterface, ConfigurableInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/Naming/CurrentDateTimeDirectoryNamer.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Vich\UploaderBundle\Util\PropertyPathUtils;

/**
* Directory namer wich can create subfolder depends on current datetime.
* Directory namer that can create subfolder depends on current datetime.
*
* @author Vyacheslav Startsev <[email protected]>
*/
Expand Down
4 changes: 2 additions & 2 deletions src/Naming/HashNamer.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Vich\UploaderBundle\Mapping\PropertyMapping;

/**
* Namer wich uses hash function from random string for generating names.
* Namer that uses hash function from random string for generating names.
*
* @author Konstantin Myakshin <[email protected]>
*/
Expand All @@ -21,7 +21,7 @@ class HashNamer implements NamerInterface, ConfigurableInterface

/**
* @param array $options Options for this namer. The following options are accepted:
* - algorithm: wich hash algorithm to use.
* - algorithm: which hash algorithm to use.
* - length: limit file name length
*/
public function configure(array $options): void
Expand Down
2 changes: 1 addition & 1 deletion src/Naming/PropertyDirectoryNamer.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
use Vich\UploaderBundle\Util\Transliterator;

/**
* Directory namer which can create subfolder depends on property.
* Directory namer that can create subfolder depends on property.
*
* @author Raynald Coupé <[email protected]>
*/
Expand Down
4 changes: 2 additions & 2 deletions src/Naming/SlugNamer.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use Vich\UploaderBundle\Util\Transliterator;

/**
* This namer uses a slug to keep original name when possibile.
* This namer uses a slug to keep original name when possible.
*
* @author Massimiliano Arione <[email protected]>
*/
Expand All @@ -29,7 +29,7 @@ public function name(object $object, PropertyMapping $mapping): string
? \sprintf('%s.%s', $basename, $extension)
: $basename;

// check if there another object with same slug
// check if there is another object with same slug
$num = 0;
while (true) {
$otherObject = $this->service->{$this->method}($slug);
Expand Down
2 changes: 1 addition & 1 deletion src/Naming/SmartUniqueNamer.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use Vich\UploaderBundle\Util\Transliterator;

/**
* This namer makes filename unique by appending a uniqid.
* This namer makes filename unique by appending a uniqueid.
* Also, filename is made web-friendly by transliteration.
*
* @author Massimiliano Arione <[email protected]>
Expand Down
2 changes: 1 addition & 1 deletion src/Naming/SubdirDirectoryNamer.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Vich\UploaderBundle\Mapping\PropertyMapping;

/**
* Directory namer wich can create subfolder depends on generated filename.
* Directory namer that can create subfolder depends on generated filename.
*
* @author Konstantin Myakshin <[email protected]>
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Storage/GaufretteStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ final class GaufretteStorage extends AbstractStorage
* Constructs a new instance of FileSystemStorage.
*
* @param PropertyMappingFactory $factory The factory
* @param FilesystemMapInterface $filesystemMap Gaufrete filesystem factory
* @param FilesystemMapInterface $filesystemMap Gaufrette filesystem factory
* @param string $protocol Gaufrette stream wrapper protocol
*/
public function __construct(PropertyMappingFactory $factory, protected FilesystemMapInterface $filesystemMap, protected string $protocol = 'gaufrette')
Expand Down
2 changes: 1 addition & 1 deletion tests/Storage/GaufretteStorageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public function testThatRemoveMethodDoesDeleteFile(): void
}

/**
* Test that FileNotFound exception is catched.
* Test that FileNotFound exception is caught.
*/
public function testRemoveNotFoundFile(): void
{
Expand Down