protected function sizeBetween($lengthValue, $min, $max, $not = true)
    {
        if (!($lengthValue <= $max && $lengthValue >= $min) && $not) {
            $this->addReturn('image_dimensions_width', 'width', [
                ':min' => $min,
                ':max' => $max
            ]);
        } elseif ($lengthValue <= $max && $lengthValue >= $min && !$not) {
            $this->addReturn('image_dimensions_width', 'not_width', [
                ':min' => $min,
                ':max' => $max
            ]);
        }
    }
protected function sizeBetween($lengthValue, $min, $max, $not = true)
    {
        if (!($lengthValue <= $max && $lengthValue >= $min) && $not) {
            $this->addReturn('image_dimensions_width', 'width', [
                ':min' => $min,
                ':max' => $max
            ]);
        } elseif ($lengthValue <= $max && $lengthValue >= $min && !$not) {
            $this->addReturn('image_dimensions_width', 'not_width', [
                ':min' => $min,
                ':max' => $max
            ]);
        }
    }
protected function sizeBetween ( $ lengthValue , $ min , $ max , $ not = true ) { if ( ! ( $ lengthValue <= $ max && $ lengthValue >= $ min ) && $ not ) { $ this -> addReturn ( 'image_dimensions_width' , 'width' , [ ':min' => $ min , ':max' => $ max ] ) ; } elseif ( $ lengthValue <= $ max && $ lengthValue >= $ min && ! $ not ) { $ this -> addReturn ( 'image_dimensions_width' , 'not_width' , [ ':min' => $ min , ':max' => $ max ] ) ; } }
Test la largeur d'une image.

@param int     $lengthValue Largeur de l'image en pixel.
@param numeric $min         Largeur minimum autorisée.
@param numeric $max         Largeur maximum autorisée.
@param bool    $not         Inverse le test.
Test la largeur d une image .