public function load($resource, $type = null)
{
$parts = explode(':', $resource);
- if (count($parts) != 2) {
+ if (2 != count($parts)) {
throw new \InvalidArgumentException(sprintf('Invalid resource "%s" passed to the "service" route loader: use the format "service_name:methodName"', $resource));
}