@@ -320,8 +320,7 @@ discard block |
||
| 320 | 320 | if (strpos($img, '<img ') !== 0) { |
| 321 | 321 | $source = $img; |
| 322 | 322 | $img = "<img src='$source' />"; |
| 323 | - } |
|
| 324 | - else { |
|
| 323 | + } else { |
|
| 325 | 324 | // pas d'attribut src sur cette balise <img../> |
| 326 | 325 | return false; |
| 327 | 326 | } |
@@ -547,8 +546,7 @@ discard block |
||
| 547 | 546 | process_image_svg_identite($ret); |
| 548 | 547 | $ret['creer'] = false; |
| 549 | 548 | } |
| 550 | - } |
|
| 551 | - else { |
|
| 549 | + } else { |
|
| 552 | 550 | if (!function_exists($ret['fonction_imagecreatefrom'])) { |
| 553 | 551 | return false; |
| 554 | 552 | } |
@@ -652,8 +650,7 @@ discard block |
||
| 652 | 650 | |
| 653 | 651 | if (isset($info['mime'])) { |
| 654 | 652 | $mime = $info['mime']; |
| 655 | - } |
|
| 656 | - else { |
|
| 653 | + } else { |
|
| 657 | 654 | $mime = image_type_to_mime_type($info[2]); |
| 658 | 655 | } |
| 659 | 656 | |
@@ -1401,9 +1398,7 @@ discard block |
||
| 1401 | 1398 | if ($srcWidth and $srcWidth <= $maxWidth and $srcHeight <= $maxHeight) { |
| 1402 | 1399 | $vignette = $destination . '.' . $format; |
| 1403 | 1400 | @copy($image, $vignette); |
| 1404 | - } |
|
| 1405 | - |
|
| 1406 | - elseif ($valeurs['format_source'] === 'svg') { |
|
| 1401 | + } elseif ($valeurs['format_source'] === 'svg') { |
|
| 1407 | 1402 | include_spip('inc/svg'); |
| 1408 | 1403 | if ($svg = svg_redimensionner($valeurs['fichier'], $destWidth, $destHeight)) { |
| 1409 | 1404 | $format_sortie = 'svg'; |
@@ -1846,8 +1841,7 @@ discard block |
||
| 1846 | 1841 | $date = test_espace_prive() ? ('?' . $date) : ''; |
| 1847 | 1842 | |
| 1848 | 1843 | return _image_ecrire_tag($image, ['src' => "$logo$date", 'width' => $destWidth, 'height' => $destHeight]); |
| 1849 | - } |
|
| 1850 | - else { |
|
| 1844 | + } else { |
|
| 1851 | 1845 | # BMP, tiff ... les redacteurs osent tout! |
| 1852 | 1846 | return $img; |
| 1853 | 1847 | } |