Change deprecated $app->getCfg() to $app->get() and a bit CS for /components