Correct PHP code to dynacase-core