formater: Avoid code duplication for formatSource

1 job for !45 with formaterCleanup in 60 minutes (queued for 1 second)
detached
Status Job ID Name Coverage
  Build
failed #14131
linux kf5-qt5 qt5.12

01:00:00

 
Name Stage Failure
failed
linux kf5-qt5 qt5.12 Build The script exceeded the maximum execution time set for the job
        Start  77: test_gdbprinters
77/121 Test #77: test_gdbprinters ........................ Passed 74.39 sec
Start 78: test_qthelpplugin
kf5.kinit.klauncher: new app ":1.43"
kf5.kinit.klauncher: new app "org.kdevelop.kdevplatform-lock-38807942-5131-4233-ba6c-f20f4940ca1d"
qt.qpa.events: Event | XCB_CLIENT_MESSAGE(33) | sequence: 400
qt.qpa.events: Event | XCB_CLIENT_MESSAGE(33) | sequence: 400
Pulling docker image gitlab/gitlab-runner-helper:x86_64-ac2a293c ...
ERROR: Job failed: execution took longer than 1h0m0s seconds