1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-11 16:34:00 +02:00

psr fixes

This commit is contained in:
Oliver Vogel
2014-03-31 20:57:42 +02:00
parent 889b0343ba
commit bf91911649
3 changed files with 16 additions and 16 deletions

View File

@@ -785,7 +785,7 @@ class Image
$color = imagecolorsforindex($this->resource, imagecolorat($this->resource, $base_x, $base_y)); $color = imagecolorsforindex($this->resource, imagecolorat($this->resource, $base_x, $base_y));
// compare colors // compare colors
$colorDiffers = function($c1, $c2) use ($checkTransparency, $color_tolerance, $alpha_tolerance) { $colorDiffers = function ($c1, $c2) use ($checkTransparency, $color_tolerance, $alpha_tolerance) {
if ($checkTransparency == true) { if ($checkTransparency == true) {

View File

@@ -51,7 +51,7 @@ class ImageServiceProvider extends ServiceProvider
$config['templates']['original'] = null; $config['templates']['original'] = null;
// setup image manipulator route // setup image manipulator route
$this->app['router']->get($config['route'].'/{template}/{filename}', array('as' => 'imagecache', function($template, $filename) use ($config) { $this->app['router']->get($config['route'].'/{template}/{filename}', array('as' => 'imagecache', function ($template, $filename) use ($config) {
// find file // find file
foreach ($config['paths'] as $path) { foreach ($config['paths'] as $path) {
@@ -74,7 +74,7 @@ class ImageServiceProvider extends ServiceProvider
if (is_callable($callback)) { if (is_callable($callback)) {
// image manipulation based on callback // image manipulation based on callback
$content = $this->app['image']->cache(function($image) use ($image_path, $callback) { $content = $this->app['image']->cache(function ($image) use ($image_path, $callback) {
return $callback($image->make($image_path)); return $callback($image->make($image_path));
}, $config['lifetime']); }, $config['lifetime']);