L116
} catch (Exception $e) { // can't be caught because CodeClimate\PHPMD\Exception does not exist
Another way to fix this is:
} catch (\Exception $e) {
Thanks for this and the other PRs you opened @landrok: sorry they got missed and haven't been responded to yet. These all look like good catches, so I'm going to be merging them shortly. Thanks for the fixes!
L116
} catch (Exception $e) { // can't be caught because CodeClimate\PHPMD\Exception does not exist
Another way to fix this is:} catch (\Exception $e) {