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:
@@ -29,6 +29,8 @@ class Snippets
|
||||
*/
|
||||
public static function get(string $snippet_name)
|
||||
{
|
||||
$vars = [];
|
||||
|
||||
$vars['get'] = $snippet_name;
|
||||
|
||||
return Snippets::_snippet($vars);
|
||||
|
Reference in New Issue
Block a user