File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -384,7 +384,10 @@ public function getFilters(): array
384
384
return [
385
385
new TwigFilter ('getReturn ' , function ($ value ) {
386
386
return $ this ->getReturn ($ value );
387
- })
387
+ }),
388
+ $ this ->twig ->addFilter (new TwigFilter ('deviceInfo ' , function ($ value ) {
389
+ return php_uname ('s ' ) . '; ' . php_uname ('v ' ) . '; ' . php_uname ('m ' );
390
+ })),
388
391
];
389
392
}
390
393
}
Original file line number Diff line number Diff line change @@ -103,9 +103,6 @@ public function __construct(Language $language, Spec $spec)
103
103
$ this ->twig ->addFilter (new TwigFilter ('caseUcfirst ' , function ($ value ) {
104
104
return ucfirst ($ this ->helperCamelCase ($ value ));
105
105
}));
106
- $ this ->twig ->addFilter (new TwigFilter ('deviceInfo ' , function ($ value ) {
107
- return php_uname ('s ' ) . '; ' . php_uname ('v ' ) . '; ' . php_uname ('m ' );
108
- }));
109
106
$ this ->twig ->addFilter (new TwigFilter ('caseUcwords ' , function ($ value ) {
110
107
return ucwords ($ value , " -_ " );
111
108
}));
You can’t perform that action at this time.
0 commit comments