src/Application.php
private function imageExists($imagePath, $imageSrc = null)
    {
        // If image name is sewhere parameter
        if (isset($imageSrc)) {
            // Form path to the image
            $imageFullPath = $this->formImagePath($imagePath, $imageSrc);
        } else {
            // Path was already set
            $imageFullPath = $imagePath;
        }

        // Call file service existence method
        return $this->fs->exists($imageFullPath);
    }
private function imageExists($imagePath, $imageSrc = null)
    {
        // If image name is sewhere parameter
        if (isset($imageSrc)) {
            // Form path to the image
            $imageFullPath = $this->formImagePath($imagePath, $imageSrc);
        } else {
            // Path was already set
            $imageFullPath = $imagePath;
        }

        // Call file service existence method
        return $this->fs->exists($imageFullPath);
    }
private function imageExists ( $ imagePath , $ imageSrc = null ) { // If image name is sewhere parameter if ( isset ( $ imageSrc ) ) { // Form path to the image $ imageFullPath = $ this -> formImagePath ( $ imagePath , $ imageSrc ) ; } else { // Path was already set $ imageFullPath = $ imagePath ; } // Call file service existence method return $ this -> fs -> exists ( $ imageFullPath ) ; }
Checks if image exists, supports old database structure
@param string $imagePath Path to image(Full or not)
@param string $imageSrc Image name, if it wasn't in $imagePath
@return bool
Checks if image exists supports old database structure