public function normalizeDeclaration($declaration)
8
{
9
if (is_string($declaration)) {
10
return $this->normalizeString($declaration);
11
}
12
13
if (array_keys($declaration) === array_keys(array_values($declaration))) {
14
if (false === strpos($declaration[0], ':')) {
15
throw new \RuntimeException('The first argument for a resource configuration, when expressed with a numerically indexed array, should be a string containing the service and the method used, seperated by a colon.');
throw new \RuntimeException('The second argument for a resource configuration, when expressed with a numerically indexed array, should be an array of arguments.');
Overly long lines are hard to read on any screen. Most code styles therefor impose a maximum limit on the number of characters in a line.