<?php is_callable(mixed $value, bool $syntax_only = false, string &$callable_name = null): bool
<?php $this->arguments[1] = $height; $this->arguments[2] = function ($constraint) use ($additionalConstraints) { $constraint->aspectRatio(); if(is_callable($additionalConstraints)) $additionalConstraints($constraint); };
<?php $this->arguments[1] = null; $this->arguments[2] = function ($constraint) use ($additionalConstraints) { $constraint->aspectRatio(); if(is_callable($additionalConstraints)) $additionalConstraints($constraint); };
<?php $imagecache = new ImageCache($this); if (is_callable($callback)) { $callback($imagecache); }
<?php $callback = $config->get("imagecache::templates.{$template}"); if (is_callable($callback) || class_exists($callback)) { $content = $app['image']->cache(function ($image) use ($image_path, $callback) {
<?php $content = $app['image']->cache(function ($image) use ($image_path, $callback) { switch (true) { case is_callable($callback): return $callback($image->make($image_path)); break;
<?php { $constraint = new Constraint(clone $this); if (is_callable($callback)) { $callback($constraint); }