@@ -33,9 +33,9 @@ public function it_strips_children_that_are_not_in_the_given_path_with_one_name(
3333 ->scalarNode ('node_2_scalar_node ' );
3434
3535 $ node = $ treeBuilder ->buildTree ();
36- /** @var ArrayNode $node */
36+ /* @var ArrayNode $node */
3737
38- PartialNode::excludeEverythingNotInPath ($ node , array ( 'node_2 ' ) );
38+ PartialNode::excludeEverythingNotInPath ($ node , [ 'node_2 ' ] );
3939
4040 $ this ->nodeOnlyHasChild ($ node , 'node_2 ' );
4141 }
@@ -70,9 +70,9 @@ public function it_strips_children_that_are_not_in_the_given_path_with_several_n
7070 ->scalarNode ('scalar_node ' );
7171
7272 $ node = $ treeBuilder ->buildTree ();
73- /** @var ArrayNode $node */
73+ /* @var ArrayNode $node */
7474
75- PartialNode::excludeEverythingNotInPath ($ node , array ( 'node_1 ' , 'node_1_b ' ) );
75+ PartialNode::excludeEverythingNotInPath ($ node , [ 'node_1 ' , 'node_1_b ' ] );
7676
7777 $ node1 = $ this ->nodeOnlyHasChild ($ node , 'node_1 ' );
7878 $ this ->nodeOnlyHasChild ($ node1 , 'node_1_b ' );
@@ -98,9 +98,9 @@ public function it_strips_children_when_leaf_node_is_not_an_array()
9898 ->scalarNode ('node_3 ' );
9999
100100 $ node = $ treeBuilder ->buildTree ();
101- /** @var ArrayNode $node */
101+ /* @var ArrayNode $node */
102102
103- PartialNode::excludeEverythingNotInPath ($ node , array ( 'node_3 ' ) );
103+ PartialNode::excludeEverythingNotInPath ($ node , [ 'node_3 ' ] );
104104
105105 $ this ->nodeOnlyHasChild ($ node , 'node_3 ' );
106106 }
@@ -123,16 +123,15 @@ public function it_does_not_crash_on_prototypes()
123123 ->end ()
124124 ->arrayNode ('node_2 ' )
125125 ->children ()
126- ->scalarNode ('node_2_scalar_node ' )
127- ;
126+ ->scalarNode ('node_2_scalar_node ' );
128127
129128 /** @var PrototypedArrayNode $node */
130129 $ node = $ treeBuilder ->buildTree ();
131130
132131 /** @var ArrayNode $prototypeNode */
133132 $ prototypeNode = $ node ->getPrototype ();
134133
135- PartialNode::excludeEverythingNotInPath ($ node , array ( '* ' , 'node_1 ' ) );
134+ PartialNode::excludeEverythingNotInPath ($ node , [ '* ' , 'node_1 ' ] );
136135
137136 $ this ->nodeOnlyHasChild ($ prototypeNode , 'node_1 ' );
138137 }
@@ -155,7 +154,7 @@ public function it_fails_when_a_requested_child_node_does_not_exist()
155154 $ this ->expectException (UndefinedChildNode::class);
156155 $ this ->expectExceptionMessage ('Undefined child node "non_existing_node" (the part of the path that was successful: "root.sub_node") ' );
157156
158- PartialNode::excludeEverythingNotInPath ($ node , array ( 'sub_node ' , 'non_existing_node ' ) );
157+ PartialNode::excludeEverythingNotInPath ($ node , [ 'sub_node ' , 'non_existing_node ' ] );
159158 }
160159
161160 /**
@@ -176,7 +175,7 @@ public function it_fails_when_a_requested_child_node_is_no_array_node_itself_and
176175 $ this ->expectException (ChildIsNotAnArrayNode::class);
177176 $ this ->expectExceptionMessage ('Child node "scalar_node" is not an array node (current path: "root.sub_node") ' );
178177
179- PartialNode::excludeEverythingNotInPath ($ node , array ( 'sub_node ' , 'scalar_node ' , 'extra_node ' ) );
178+ PartialNode::excludeEverythingNotInPath ($ node , [ 'sub_node ' , 'scalar_node ' , 'extra_node ' ] );
180179 }
181180
182181 private function nodeOnlyHasChild (ArrayNode $ node , $ nodeName )
0 commit comments