@@ -54,7 +54,7 @@ private function APIStart(Settings $settings)
54
54
$ app = [];
55
55
if (PHP_SAPI === 'cli ' || PHP_SAPI === 'phpdbg ' ) {
56
56
$ stdout = getStdout ();
57
- $ stdout ->write (\ sprintf (Lang::$ current_lang ['apiChooseManualAutoTip ' ], 'https://docs.madelineproto.xyz/docs/SETTINGS.html ' ).PHP_EOL );
57
+ $ stdout ->write (sprintf (Lang::$ current_lang ['apiChooseManualAutoTip ' ], 'https://docs.madelineproto.xyz/docs/SETTINGS.html ' ).PHP_EOL );
58
58
$ stdout ->write ('1) ' .Lang::$ current_lang ['apiManualInstructions0 ' ].PHP_EOL );
59
59
$ stdout ->write ('2) ' .Lang::$ current_lang ['apiManualInstructions1 ' ].PHP_EOL );
60
60
$ stdout ->write ('3) ' );
@@ -84,28 +84,28 @@ private function APIStart(Settings $settings)
84
84
*/
85
85
private function webAPIEcho (Settings $ settings , string $ message = '' ): void
86
86
{
87
- $ message = \ htmlentities ($ message );
87
+ $ message = htmlentities ($ message );
88
88
$ title = MTProto::getWebWarnings ();
89
- $ title .= \ htmlentities (Lang::$ current_lang ['apiManualWeb ' ]);
89
+ $ title .= htmlentities (Lang::$ current_lang ['apiManualWeb ' ]);
90
90
$ title .= "<br> " ;
91
- $ title .= \ sprintf (Lang::$ current_lang ['apiChooseManualAutoTipWeb ' ], 'https://docs.madelineproto.xyz/docs/SETTINGS.html ' );
91
+ $ title .= sprintf (Lang::$ current_lang ['apiChooseManualAutoTipWeb ' ], 'https://docs.madelineproto.xyz/docs/SETTINGS.html ' );
92
92
$ title .= "<br><b> $ message</b> " ;
93
93
$ title .= '<ol> ' ;
94
- $ title .= '<li> ' .\ str_replace ('https://my.telegram.org ' , '<a href="https://my.telegram.org" target="_blank">https://my.telegram.org</a> ' , \ htmlentities (Lang::$ current_lang ['apiManualInstructions0 ' ])).'</li> ' ;
95
- $ title .= '<li> ' .\ htmlentities (Lang::$ current_lang ['apiManualInstructions1 ' ]).'</li> ' ;
94
+ $ title .= '<li> ' .str_replace ('https://my.telegram.org ' , '<a href="https://my.telegram.org" target="_blank">https://my.telegram.org</a> ' , htmlentities (Lang::$ current_lang ['apiManualInstructions0 ' ])).'</li> ' ;
95
+ $ title .= '<li> ' .htmlentities (Lang::$ current_lang ['apiManualInstructions1 ' ]).'</li> ' ;
96
96
$ title .= '<li><ul> ' ;
97
97
foreach (['App title ' , 'Short name ' , 'URL ' , 'Platform ' , 'Description ' ] as $ k => $ key ) {
98
98
$ title .= "<li> $ key: " ;
99
- $ title .= \ htmlentities (Lang::$ current_lang ["apiAppInstructionsManual $ k " ]);
99
+ $ title .= htmlentities (Lang::$ current_lang ["apiAppInstructionsManual $ k " ]);
100
100
$ title .= '</li> ' ;
101
101
}
102
102
$ title .= '</li></ul> ' ;
103
- $ title .= '<li> ' .\ htmlentities (Lang::$ current_lang ['apiManualInstructions2 ' ]).'</li> ' ;
103
+ $ title .= '<li> ' .htmlentities (Lang::$ current_lang ['apiManualInstructions2 ' ]).'</li> ' ;
104
104
$ title .= '</ol> ' ;
105
105
$ form = '<input type="string" name="api_id" placeholder="API ID" required/> ' ;
106
106
$ form .= '<input type="string" name="api_hash" placeholder="API hash" required/> ' ;
107
107
getOutputBufferStream ()->write (
108
- \ sprintf (
108
+ sprintf (
109
109
$ settings ->getTemplates ()->getHtmlTemplate (),
110
110
$ title ,
111
111
$ form ,
0 commit comments