Fixed some standards violations and replaced this->table with $this->tableName