From 8dd3ebe35fe1f82c181911fc849374280b139e80 Mon Sep 17 00:00:00 2001 From: adrianmiu Date: Sun, 19 Nov 2023 19:24:45 +0200 Subject: [PATCH] Fixed typos --- README.md | 2 +- docs/index.md | 6 +++--- src/Util/Helper.php | 4 ++-- tests/src/HandlerTest.php | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 86439e9..d23c1a3 100755 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![Source Code](http://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) +[![Build Status](https://github.com/siriusphp/upload/actions/workflows/ci.yml/badge.svg)](https://github.com/siriusphp/upload/actions/workflows/ci.yml) [![Coverage Status](https://img.shields.io/scrutinizer/coverage/g/siriusphp/upload.svg?style=flat-square)](https://scrutinizer-ci.com/g/siriusphp/upload/code-structure) [![Quality Score](https://img.shields.io/scrutinizer/g/siriusphp/upload.svg?style=flat-square)](https://scrutinizer-ci.com/g/siriusphp/upload) [![Total Downloads](https://img.shields.io/packagist/dt/siriusphp/upload.svg?style=flat-square)](https://packagist.org/packages/siriusphp/upload) diff --git a/docs/index.md b/docs/index.md index 6f7273b..deee0a8 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1,8 +1,8 @@ -[![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) -[![PHP 7 ready](http://php7ready.timesplinter.ch/siriusphp/upload/master/badge.svg)](https://travis-ci.org/siriusphp/upload) +[![PHP 7 ready](https:////php7ready.timesplinter.ch/siriusphp/upload/master/badge.svg)](https://travis-ci.org/siriusphp/upload) [![Coverage Status](https://img.shields.io/scrutinizer/coverage/g/siriusphp/upload.svg?style=flat-square)](https://scrutinizer-ci.com/g/siriusphp/upload/code-structure) [![Quality Score](https://img.shields.io/scrutinizer/g/siriusphp/upload.svg?style=flat-square)](https://scrutinizer-ci.com/g/siriusphp/upload) [![Total Downloads](https://img.shields.io/packagist/dt/siriusphp/upload.svg?style=flat-square)](https://packagist.org/packages/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 agains 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 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/Util/Helper.php b/src/Util/Helper.php index def1dbb..6eb41fd 100644 --- a/src/Util/Helper.php +++ b/src/Util/Helper.php @@ -73,9 +73,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|UploadedFile|UploadedFileInterface $files * diff --git a/tests/src/HandlerTest.php b/tests/src/HandlerTest.php index b88ba89..afcee52 100755 --- a/tests/src/HandlerTest.php +++ b/tests/src/HandlerTest.php @@ -145,7 +145,7 @@ $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(