@@ -21,13 +21,11 @@ |
||
21 | 21 | if ($container->hasDefinition('config.storage.sync')) { |
22 | 22 | $original = $container->getDefinition('config.storage.sync'); |
23 | 23 | $id = 'config.storage.sync'; |
24 | - } |
|
25 | - elseif ($container->hasDefinition('config.storage.staging')) { |
|
24 | + } elseif ($container->hasDefinition('config.storage.staging')) { |
|
26 | 25 | // For Drupal 8. |
27 | 26 | $original = $container->getDefinition('config.storage.staging'); |
28 | 27 | $id = 'config.storage.staging'; |
29 | - } |
|
30 | - else { |
|
28 | + } else { |
|
31 | 29 | throw new ServiceNotFoundException('config_filter.storage.original', 'config.storage.sync'); |
32 | 30 | } |
33 | 31 | // Save the original service so that we can use it in the factory. |