1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-11 15:44:49 +02:00

Flextype Core: Snippets - code fixes according Scrutinizer Tests.

- $vars was never initialized. Although not strictly required by PHP, it is generally a good practice to add
This commit is contained in:
Awilum
2019-02-01 22:15:14 +03:00
parent 41ce3f003a
commit f99cbe9064

View File

@@ -29,6 +29,8 @@ class Snippets
*/
public static function get(string $snippet_name)
{
$vars = [];
$vars['get'] = $snippet_name;
return Snippets::_snippet($vars);