hotfix custom barcode adapter wasn't being set to options.

since it was only setting the adapter to $this->options in line 11, and there was an if to check if the adapter was a string in line 3, the adapter were never going to be set to options if the param provided was an object.

We can't use short array syntax as we still support 5.3. I'll fix this on merge, though.