mirror of
https://github.com/Intervention/image.git
synced 2025-08-11 08:24:02 +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));
|
$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) {
|
||||||
|
|
||||||
|
@@ -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']);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user