[SPIP][PLUGINS] v3.0-->v3.2
[lhc/web/www.git] / www / plugins-dist / medias / metadata / image.php
index ed6a02b..992e02e 100644 (file)
  *  Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne.   *
 \***************************************************************************/
 
-if (!defined('_ECRIRE_INC_VERSION')) return;
+if (!defined('_ECRIRE_INC_VERSION')) {
+       return;
+}
 
-function metadata_image_dist($fichier){
+function metadata_image_dist($fichier) {
        $meta = array();
 
        if ($size_image = @getimagesize($fichier)) {
@@ -35,22 +37,21 @@ function metadata_image_dist($fichier){
 function decoder_type_image($type, $strict = false) {
        switch ($type) {
                case 1:
-                       return "gif";
+                       return 'gif';
                case 2:
-                       return "jpg";
+                       return 'jpg';
                case 3:
-                       return "png";
+                       return 'png';
                case 4:
-                       return $strict ? "" : "swf";
+                       return $strict ? '' : 'swf';
                case 5:
-                       return "psd";
+                       return 'psd';
                case 6:
-                       return "bmp";
+                       return 'bmp';
                case 7:
                case 8:
-                       return "tif";
+                       return 'tif';
                default:
-                       return "";
+                       return '';
        }
 }
-?>
\ No newline at end of file