Completed
Push — master ( 4fdf13...379847 )
by cam
01:15
created
ecrire/public/evaluer_page.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -46,11 +46,11 @@  discard block
 block discarded – undo
46 46
 	}
47 47
 	ob_start();
48 48
 	if (strpos($page['texte'], '?xml') !== false) {
49
-		$page['texte'] = str_replace('<' . '?xml', "<\1?xml", $page['texte']);
49
+		$page['texte'] = str_replace('<'.'?xml', "<\1?xml", $page['texte']);
50 50
 	}
51 51
 
52 52
 	try {
53
-		$res = eval('?' . '>' . $page['texte']);
53
+		$res = eval('?'.'>'.$page['texte']);
54 54
 		$page['texte'] = ob_get_contents();
55 55
 	} catch (\Throwable $e) {
56 56
 		$code = $page['texte'];
@@ -58,12 +58,12 @@  discard block
 block discarded – undo
58 58
 		if (!function_exists('numerote_ligne_php')) {
59 59
 			function numerote_ligne_php($match) {
60 60
 				$GLOBALS['numero_ligne_php']++;
61
-				return "\n/*" . str_pad($GLOBALS['numero_ligne_php'], 3, '0', STR_PAD_LEFT) . '*/';
61
+				return "\n/*".str_pad($GLOBALS['numero_ligne_php'], 3, '0', STR_PAD_LEFT).'*/';
62 62
 			}
63 63
 		}
64
-		$code = '/*001*/' . preg_replace_callback(",\n,", 'numerote_ligne_php', $code);
64
+		$code = '/*001*/'.preg_replace_callback(",\n,", 'numerote_ligne_php', $code);
65 65
 		$code = trim(highlight_string($code, true));
66
-		erreur_squelette('L' . $e->getLine() . ': ' . $e->getMessage() . '<br />' . $code, [$page['source'],'',$e->getFile(),'',$GLOBALS['spip_lang']]);
66
+		erreur_squelette('L'.$e->getLine().': '.$e->getMessage().'<br />'.$code, [$page['source'], '', $e->getFile(), '', $GLOBALS['spip_lang']]);
67 67
 		$page['texte'] = '<!-- Erreur -->';
68 68
 	}
69 69
 	ob_end_clean();
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 	$page['process_ins'] = 'html';
72 72
 
73 73
 	if (strpos($page['texte'], '?xml') !== false) {
74
-		$page['texte'] = str_replace("<\1?xml", '<' . '?xml', $page['texte']);
74
+		$page['texte'] = str_replace("<\1?xml", '<'.'?xml', $page['texte']);
75 75
 	}
76 76
 }
77 77
 
Please login to merge, or discard this patch.