@@ -88,7 +88,7 @@ private function handleConfigNode(ContainerBuilder $container, array $config)
8888 // $first will be the "default" configuration.
8989 $ first = null ;
9090 foreach ($ config ['configs ' ] as $ name => &$ c ) {
91- if ($ first === null || $ name === ' default ' ) {
91+ if (null === $ first || ' default ' === $ name ) {
9292 $ first = $ name ;
9393 }
9494 if (empty ($ c ['project_root ' ])) {
@@ -115,7 +115,7 @@ private function handleConfigNode(ContainerBuilder $container, array $config)
115115 }
116116
117117 foreach ($ c ['local_storage ' ] as $ serviceId ) {
118- if ($ serviceId !== 'php_translation.local_file_storage.abstract ' ) {
118+ if ('php_translation.local_file_storage.abstract ' !== $ serviceId ) {
119119 $ storageDefinition ->addMethodCall ('addLocalStorage ' , [new Reference ($ serviceId )]);
120120
121121 continue ;
@@ -129,10 +129,10 @@ private function handleConfigNode(ContainerBuilder $container, array $config)
129129 }
130130 }
131131
132- if ($ first !== null ) {
132+ if (null !== $ first ) {
133133 // Create some aliases for the default storage
134134 $ container ->setAlias ('php_translation.storage ' , 'php_translation.storage. ' .$ first );
135- if ($ first !== ' default ' ) {
135+ if (' default ' !== $ first ) {
136136 $ container ->setAlias ('php_translation.storage.default ' , 'php_translation.storage. ' .$ first );
137137 }
138138 }
@@ -172,7 +172,7 @@ private function enableEditInPlace(ContainerBuilder $container, array $config)
172172 {
173173 $ name = $ config ['edit_in_place ' ]['config_name ' ];
174174
175- if ($ name !== ' default ' && !isset ($ config ['configs ' ][$ name ])) {
175+ if (' default ' !== $ name && !isset ($ config ['configs ' ][$ name ])) {
176176 throw new InvalidArgumentException (sprintf ('There is no config named "%s". ' , $ name ));
177177 }
178178
0 commit comments