Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Ignoring unreachable exceptions

  • Loading branch information...
commit 38490e36d603eb2296f2749384480fd3acadea5b 1 parent d7ba2d6
@ianmacl authored
View
2  libraries/joomla/image/filters/brightness.php
@@ -34,8 +34,10 @@ public function execute(array $options = array())
// Verify that image filter support for PHP is available.
if (!function_exists('imagefilter'))
{
+ // @codeCoverageIgnoreStart
JLog::add('The imagefilter function for PHP is not available.', JLog::ERROR);
throw new RuntimeException('The imagefilter function for PHP is not available.');
+ // @codeCoverageIgnoreEnd
}
// Validate that the brightness value exists and is an integer.
View
2  libraries/joomla/image/filters/contrast.php
@@ -34,8 +34,10 @@ public function execute(array $options = array())
// Verify that image filter support for PHP is available.
if (!function_exists('imagefilter'))
{
+ // @codeCoverageIgnoreStart
JLog::add('The imagefilter function for PHP is not available.', JLog::ERROR);
throw new RuntimeException('The imagefilter function for PHP is not available.');
+ // @codeCoverageIgnoreEnd
}
// Validate that the contrast value exists and is an integer.
View
2  libraries/joomla/image/filters/edgedetect.php
@@ -33,8 +33,10 @@ public function execute(array $options = array())
// Verify that image filter support for PHP is available.
if (!function_exists('imagefilter'))
{
+ // @codeCoverageIgnoreStart
JLog::add('The imagefilter function for PHP is not available.', JLog::ERROR);
throw new RuntimeException('The imagefilter function for PHP is not available.');
+ // @codeCoverageIgnoreEnd
}
// Perform the edge detection filter.
Please sign in to comment.
Something went wrong with that request. Please try again.