Skip to content
This repository has been archived by the owner on Mar 5, 2022. It is now read-only.

Commit

Permalink
Documentation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Krämer committed Jan 18, 2016
1 parent 8e07595 commit d2a80f3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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.
Expand Down
14 changes: 7 additions & 7 deletions src/Lib/ImageProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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!'));
Expand Down

0 comments on commit d2a80f3

Please sign in to comment.