mirror of
https://github.com/Intervention/image.git
synced 2025-08-12 17:03:59 +02:00
psr fixes
This commit is contained in:
@@ -785,7 +785,7 @@ class Image
|
||||
$color = imagecolorsforindex($this->resource, imagecolorat($this->resource, $base_x, $base_y));
|
||||
|
||||
// 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) {
|
||||
|
||||
|
@@ -51,7 +51,7 @@ class ImageServiceProvider extends ServiceProvider
|
||||
$config['templates']['original'] = null;
|
||||
|
||||
// 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
|
||||
foreach ($config['paths'] as $path) {
|
||||
@@ -74,7 +74,7 @@ class ImageServiceProvider extends ServiceProvider
|
||||
if (is_callable($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));
|
||||
}, $config['lifetime']);
|
||||
|
||||
|
Reference in New Issue
Block a user