iotashan/cfsolrlib — pull request #11 by aliaspooryorik (2014-12-30 14:08:44+00:00)
Title: fix scoping issues

### Purpose

Scope variables locally so that they don't bleed into the variables scope and create possible race conditions.

I've tried to stick to the same coding style where possible.