@@ -195,6 +195,6 @@ |
||
| 195 | 195 | { |
| 196 | 196 | $dumper = new PhpDumper($container); |
| 197 | 197 | |
| 198 | - file_put_contents($pathname, $dumper->dump([ 'class' => $class ])); |
|
| 198 | + file_put_contents($pathname, $dumper->dump(['class' => $class])); |
|
| 199 | 199 | } |
| 200 | 200 | } |
@@ -62,8 +62,8 @@ |
||
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | $definition = (new Definition('ICanBoogie\Dummy' . uniqid())) |
| 65 | - ->setFactory([ new Reference('app'), '__get' ]) |
|
| 66 | - ->setArguments([ $id ]); |
|
| 65 | + ->setFactory([new Reference('app'), '__get']) |
|
| 66 | + ->setArguments([$id]); |
|
| 67 | 67 | |
| 68 | 68 | $container->setDefinition($id, $definition); |
| 69 | 69 | } |
@@ -51,12 +51,10 @@ |
||
| 51 | 51 | if (strpos($method, self::LAZY_GETTER_PREFIX) === 0) |
| 52 | 52 | { |
| 53 | 53 | $id = substr($method, strlen(self::LAZY_GETTER_PREFIX)); |
| 54 | - } |
|
| 55 | - elseif (strpos($method, self::GETTER_PREFIX) === 0) |
|
| 54 | + } elseif (strpos($method, self::GETTER_PREFIX) === 0) |
|
| 56 | 55 | { |
| 57 | 56 | $id = substr($method, strlen(self::GETTER_PREFIX)); |
| 58 | - } |
|
| 59 | - else |
|
| 57 | + } else |
|
| 60 | 58 | { |
| 61 | 59 | continue; |
| 62 | 60 | } |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | ContainerConfig::USE_CACHING => false, |
| 17 | 17 | ContainerConfig::EXTENSIONS => [ |
| 18 | 18 | |
| 19 | - [ Extension\ApplicationExtension::class, 'from' ] |
|
| 19 | + [Extension\ApplicationExtension::class, 'from'] |
|
| 20 | 20 | |
| 21 | 21 | ] |
| 22 | 22 | |