From d2a80f3feda24bf53951f576591a2e89b7f8cacc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Kr=C3=A4mer?= Date: Mon, 18 Jan 2016 22:35:43 +0100 Subject: [PATCH] Documentation fixes --- README.md | 6 ++---- src/Lib/ImageProcessor.php | 14 +++++++------- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 907642f..1a64908 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Imagine Plugin for CakePHP3 # -[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.txt) -[![Build Status](https://img.shields.io/travis/burzum/cakephp-imagine-plugin/3.0.svg?style=flat-square)](https://travis-ci.org/burzum/cakephp-imagine-plugin) +[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.txt) +[![Build Status](https://img.shields.io/travis/burzum/cakephp-imagine-plugin/3.0.svg?style=flat-square)](https://travis-ci.org/burzum/cakephp-imagine-plugin) [![Coverage Status](https://img.shields.io/coveralls/burzum/cakephp-imagine-plugin/3.0.svg?style=flat-square)](https://coveralls.io/r/burzum/cakephp-imagine-plugin) The **Imagine** plugin is a CakePHP wrapper around the [Imagine image manipulation library](https://github.com/avalanche123/Imagine). It makes it very easy to manipulate image data like resize, thumbnail, crop or even to do more complex tasks like creating a photo collage. Also it abstracts the different ways, GD, Imagick, Imagick Shell to work with image data in php. @@ -30,8 +30,6 @@ Contributing To contribute to this plugin please follow a few basic rules. -To contribute to this plugin please follow a few basic rules. - * Pull requests must be send to the ```develop``` branch. * Contributions must follow the [PSR2-**R** coding standard recommendation](https://github.com/php-fig-rectified/fig-rectified-standards). * [Unit tests](http://book.cakephp.org/3.0/en/development/testing.html) are required. diff --git a/src/Lib/ImageProcessor.php b/src/Lib/ImageProcessor.php index 29a850b..5a7a992 100644 --- a/src/Lib/ImageProcessor.php +++ b/src/Lib/ImageProcessor.php @@ -404,13 +404,13 @@ protected function _thumbnail(&$Image, $options) { $Image = $Image->thumbnail(new Box($options['width'], $options['height']), $mode); } -/** - * Wrapper for Imagines resize - * - * @param array Array of options for processing the image - * @throws \InvalidArgumentException - * @return $this - */ + /** + * Wrapper for Imagines resize + * + * @param array Array of options for processing the image + * @throws \InvalidArgumentException + * @return $this + */ public function resize(array $options = []) { if (empty($options['height']) || empty($options['width'])) { throw new \InvalidArgumentException(__d('imagine', 'You have to pass height and width in the options!'));