From 7483b595528f923cd23d5b988d6f444d4a35883c Mon Sep 17 00:00:00 2001 From: fwoldt Date: Thu, 6 Sep 2018 17:08:21 +0200 Subject: [PATCH] Fix: File has mixed line endings; this may cause incorrect results CRLF => LF --- classes/image_analyzer.php | 104 ++++++++++++++++++------------------- 1 file changed, 52 insertions(+), 52 deletions(-) diff --git a/classes/image_analyzer.php b/classes/image_analyzer.php index e07cfba..bb6a48a 100644 --- a/classes/image_analyzer.php +++ b/classes/image_analyzer.php @@ -1,55 +1,55 @@ -fetch(); - - parent::__construct( $file ); - - $this->deleteLocal = $deleteLocal; - if( $this->deleteLocal ) - { - $clusterHandler->deleteLocal(); - } - } - - /** - * Overload of ezcImageAnalyzer::analyzeImage() - * Creates a temporary local copy of the image file so that it can be analyzed - * - * @return void - */ - public function analyzeImage() - { - $clusterHandler = eZClusterFileHandler::instance( $this->filePath ); - $clusterHandler->fetch(); - - parent::analyzeImage(); - - if( $this->deleteLocal ) - { - $clusterHandler->deleteLocal(); - } - } -} - + * @version //autogentag// + * @package ezie + */ +class eZIEImageAnalyzer extends ezcImageAnalyzer +{ + protected $deleteLocal = true; + + /** + * Constructor overload + * Creates a local copy of the image so that it can be analyzed + * + * @param string $file + */ + public function __construct( $file, $deleteLocal = true ) + { + $clusterHandler = eZClusterFileHandler::instance( $file ); + $clusterHandler->fetch(); + + parent::__construct( $file ); + + $this->deleteLocal = $deleteLocal; + if( $this->deleteLocal ) + { + $clusterHandler->deleteLocal(); + } + } + + /** + * Overload of ezcImageAnalyzer::analyzeImage() + * Creates a temporary local copy of the image file so that it can be analyzed + * + * @return void + */ + public function analyzeImage() + { + $clusterHandler = eZClusterFileHandler::instance( $this->filePath ); + $clusterHandler->fetch(); + + parent::analyzeImage(); + + if( $this->deleteLocal ) + { + $clusterHandler->deleteLocal(); + } + } +} + ?> \ No newline at end of file