From 21da751a914e1924d76785d7fccf94cd411d9d16 Mon Sep 17 00:00:00 2001 From: Andreas Deininger Date: Sun, 6 Aug 2023 21:37:41 +0200 Subject: [PATCH] Fixing typos --- README.md | 8 ++++---- docs/index.md | 4 ++-- src/HandlerAggregate.php | 2 +- src/Util/Helper.php | 4 ++-- tests/src/HandlerTest.php | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 86439e9..c709edd 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Sirius\Upload -[![Source Code](http://img.shields.io/badge/source-siriusphp/upload-blue.svg?style=flat-square)](https://github.com/siriusphp/upload) +[![Source Code](https://img.shields.io/badge/source-siriusphp/upload-blue.svg?style=flat-square)](https://github.com/siriusphp/upload) [![Latest Version](https://img.shields.io/packagist/v/siriusphp/upload.svg?style=flat-square)](https://github.com/siriusphp/upload/releases) [![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](https://github.com/siriusphp/upload/blob/master/LICENSE) [![Build Status](https://img.shields.io/travis/siriusphp/upload/master.svg?style=flat-square)](https://travis-ci.org/siriusphp/upload) @@ -12,7 +12,7 @@ Framework agnostic upload handler library. ## Features -1. Validates files agains usual rules: extension, file size, image size (wdith, height, ratio). It uses [Sirius Validation](http://github.com/siriusphp/validation) for this purpose. +1. Validates files against usual rules: extension, file size, image size (wdith, height, ratio). It uses [Sirius Validation](https://github.com/siriusphp/validation) for this purpose. 2. Moves valid uploaded files into containers. Containers are usually local folders but you can implement your own or use other filesystem abstractions like [Gaufrette](https://github.com/KnpLabs/Gaufrette) or [Flysystem](https://github.com/FrenkyNet/Flysystem). 3. Works with PSR7 `UploadedFileInterface` objects and with Symfony's `UploadedFile`s (see [integrations](docs/integrations.md)). @@ -47,7 +47,7 @@ if ($result->isValid()) { } ``` -##Links +## Links -- [documentation](http://www.sirius.ro/php/sirius/upload/) +- [documentation](https://www.sirius.ro/php/sirius/upload/) - [changelog](CHANGELOG.md) diff --git a/docs/index.md b/docs/index.md index 6f7273b..e17fba4 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1,4 +1,4 @@ -[![Source Code](http://img.shields.io/badge/source-siriusphp/upload-blue.svg?style=flat-square)](https://github.com/siriusphp/upload) +[![Source Code](https://img.shields.io/badge/source-siriusphp/upload-blue.svg?style=flat-square)](https://github.com/siriusphp/upload) [![Latest Version](https://img.shields.io/packagist/v/siriusphp/upload.svg?style=flat-square)](https://github.com/siriusphp/upload/releases) [![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](https://github.com/siriusphp/upload/blob/master/LICENSE) [![Build Status](https://img.shields.io/travis/siriusphp/upload/master.svg?style=flat-square)](https://travis-ci.org/siriusphp/upload) @@ -13,7 +13,7 @@ This is a framework agnostic upload handler library that is flexible and easy to ## Features -1. Validates files agains usual rules: extension, file size, image size (wdith, height, ratio). It uses [Sirius Validation](http://github.com/siriusphp/validation) for this purpose. +1. Validates files against usual rules: extension, file size, image size (width, height, ratio). It uses [Sirius Validation](https://github.com/siriusphp/validation) for this purpose. 2. Moves valid uploads into containers. Containers are usually local folders but you can implement your own or use other filesystem abstractions like [Gaufrette](https://github.com/KnpLabs/Gaufrette) or [Flysystem](https://github.com/FrenkyNet/Flysystem). 3. Works with PSR7 `UploadedFileInterface` objects and with Symfony's `UploadedFile`s (see [integrations](integrations.md)). diff --git a/src/HandlerAggregate.php b/src/HandlerAggregate.php index c2b99a9..9f48906 100755 --- a/src/HandlerAggregate.php +++ b/src/HandlerAggregate.php @@ -53,7 +53,7 @@ public function process($files) /** * Retrieve an external iterator * - * @link http://php.net/manual/en/iteratoraggregate.getiterator.php + * @link https://php.net/manual/en/iteratoraggregate.getiterator.php * @return \Traversable An instance of an object implementing Iterator or * Traversable */ diff --git a/src/Util/Helper.php b/src/Util/Helper.php index 5bf7543..f014e60 100644 --- a/src/Util/Helper.php +++ b/src/Util/Helper.php @@ -65,9 +65,9 @@ public static function remapFilesArray(array $files): array /** * Fixes the $_FILES array problem and ensures the result is an array of files * - * PHP's $_FILES variable is not properly formated for iteration when + * PHP's $_FILES variable is not properly formatted for iteration when * multiple files are uploaded under the same name - * @see http://www.php.net/manual/en/features.file-upload.php + * @see https://www.php.net/manual/en/features.file-upload.php * * @param array|Symfony\Component\HttpFoundation\File\UploadedFile|\Psr\Http\Message\UploadedFileInterface $files * diff --git a/tests/src/HandlerTest.php b/tests/src/HandlerTest.php index 5be32bc..5329bdd 100755 --- a/tests/src/HandlerTest.php +++ b/tests/src/HandlerTest.php @@ -163,7 +163,7 @@ function testMultiUpload() $this->createTemporaryFile('abc.tmp', 'first_file'); $this->createTemporaryFile('def.tmp', 'first_file'); - // array is already properly formated + // array is already properly formatted $result = $this->handler->process( array( array(