is_callable
Intervention/image
Supported Versions: PHP 4 >= 4.0.6, PHP 5, PHP 7, PHP 8
Verify that a value can be called as a function from the current scope.
is_callable
(
mixed $value
,
bool $syntax_only
=
false
,
string
&
$callable_name
=
null
):
bool
$this
->
arguments
[
1
] =
$height
;
$this
->
arguments
[
2
] = function (
$constraint
) use (
$additionalConstraints
) {
$constraint
->
aspectRatio
();
if(
is_callable
(
$additionalConstraints
))
$additionalConstraints
(
$constraint
);
};
src/Intervention/Image/Gd/Commands/HeightenCommand.php
$this
->
arguments
[
1
] =
null
;
$this
->
arguments
[
2
] = function (
$constraint
) use (
$additionalConstraints
) {
$constraint
->
aspectRatio
();
if(
is_callable
(
$additionalConstraints
))
$additionalConstraints
(
$constraint
);
};
src/Intervention/Image/Gd/Commands/WidenCommand.php
$imagecache
= new
ImageCache
(
$this
);
if (
is_callable
(
$callback
)) {
$callback
(
$imagecache
);
}
src/Intervention/Image/ImageManager.php
$callback
=
$config
->
get
(
"imagecache::templates.
{
$template
}
"
);
if (
is_callable
(
$callback
) ||
class_exists
(
$callback
)) {
$content
=
$app
[
'image'
]->
cache
(function (
$image
) use (
$image_path
,
$callback
) {
src/Intervention/Image/ImageServiceProviderLaravel4.php
$content
=
$app
[
'image'
]->
cache
(function (
$image
) use (
$image_path
,
$callback
) {
switch (
true
) {
case
is_callable
(
$callback
):
return
$callback
(
$image
->
make
(
$image_path
));
break;
src/Intervention/Image/ImageServiceProviderLaravel4.php
$this
->
arguments
[
1
] =
$height
;
$this
->
arguments
[
2
] = function (
$constraint
) use (
$additionalConstraints
) {
$constraint
->
aspectRatio
();
if(
is_callable
(
$additionalConstraints
))
$additionalConstraints
(
$constraint
);
};
src/Intervention/Image/Imagick/Commands/HeightenCommand.php
$this
->
arguments
[
1
] =
null
;
$this
->
arguments
[
2
] = function (
$constraint
) use (
$additionalConstraints
) {
$constraint
->
aspectRatio
();
if(
is_callable
(
$additionalConstraints
))
$additionalConstraints
(
$constraint
);
};
src/Intervention/Image/Imagick/Commands/WidenCommand.php
{
$constraint
= new
Constraint
(clone
$this
);
if (
is_callable
(
$callback
)) {
$callback
(
$constraint
);
}
src/Intervention/Image/Size.php