Fix: resolve unused code issues reported by PHP Analyzer