you've got a double semi-colon there. :warning: 

maybe those two lines could be combined?
`$datadir = $core->getContainer()->getParameter('datadir');`