@@ -17,8 +17,8 @@ abstract class AbstractContainerBuilderTestCase extends TestCase
1717 protected function setUp ()
1818 {
1919 $ this ->container = new ContainerBuilder ();
20- $ this ->container ->getCompilerPassConfig ()->setOptimizationPasses (array () );
21- $ this ->container ->getCompilerPassConfig ()->setRemovingPasses (array () );
20+ $ this ->container ->getCompilerPassConfig ()->setOptimizationPasses ([] );
21+ $ this ->container ->getCompilerPassConfig ()->setRemovingPasses ([] );
2222 }
2323
2424 protected function tearDown ()
@@ -31,6 +31,7 @@ protected function tearDown()
3131 *
3232 * @param $serviceId
3333 * @param $class
34+ *
3435 * @return Definition
3536 */
3637 protected function registerService ($ serviceId , $ class )
@@ -101,7 +102,6 @@ protected function assertContainerBuilderNotHasService($serviceId)
101102 );
102103 }
103104
104-
105105 /**
106106 * Assert that the ContainerBuilder for this test has a synthetic service with the given id.
107107 *
@@ -171,15 +171,15 @@ protected function assertContainerBuilderHasServiceDefinitionWithArgument(
171171 * Assert that the ContainerBuilder for this test has a service definition with the given id, which has a method
172172 * call to the given method with the given arguments.
173173 *
174- * @param string $serviceId
175- * @param string $method
176- * @param array $arguments
174+ * @param string $serviceId
175+ * @param string $method
176+ * @param array $arguments
177177 * @param int|null $index
178178 */
179179 protected function assertContainerBuilderHasServiceDefinitionWithMethodCall (
180180 $ serviceId ,
181181 $ method ,
182- array $ arguments = array () ,
182+ array $ arguments = [] ,
183183 $ index = null
184184 ) {
185185 $ definition = $ this ->container ->findDefinition ($ serviceId );
@@ -198,7 +198,7 @@ protected function assertContainerBuilderHasServiceDefinitionWithMethodCall(
198198 protected function assertContainerBuilderHasServiceDefinitionWithTag (
199199 $ serviceId ,
200200 $ tag ,
201- array $ attributes = array ()
201+ array $ attributes = []
202202 ) {
203203 $ definition = $ this ->container ->findDefinition ($ serviceId );
204204
0 commit comments