rename all instances of 'datas' to 'data'

This commit is contained in:
osaajani 2021-01-17 03:16:57 +01:00
parent 730ac8963b
commit 61d644c247
48 changed files with 316 additions and 316 deletions

View file

@ -57,11 +57,11 @@ namespace controllers\internals;
* Render a string as a twig template.
*
* @param string $template : Template string
* @param array $datas : Datas to pass to the template
* @param array $data : Data to pass to the template
*
* @return array : keys, success, error, result
*/
public function render(string $template, array $datas = [])
public function render(string $template, array $data = [])
{
try
{
@ -80,7 +80,7 @@ namespace controllers\internals;
]);
$twig->addExtension($this->sandbox);
$result = $twig->render('template', $datas);
$result = $twig->render('template', $data);
return [
'success' => true,