Skip to content

Commit a145664

Browse files
committed
Fix code examples in PHPDoc
1 parent 06c0be4 commit a145664

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

Definition/PrototypedArrayNode.php

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -342,27 +342,31 @@ protected function mergeValues($leftSide, $rightSide)
342342
* one is same as this->keyAttribute and the other is 'value', then the prototype will be different.
343343
*
344344
* For example, assume $this->keyAttribute is 'name' and the value array is as follows:
345-
* array(
345+
*
346346
* array(
347-
* 'name' => 'name001',
348-
* 'value' => 'value001'
347+
* array(
348+
* 'name' => 'name001',
349+
* 'value' => 'value001'
350+
* )
349351
* )
350-
* )
351352
*
352353
* Now, the key is 0 and the child node is:
353-
* array(
354-
* 'name' => 'name001',
355-
* 'value' => 'value001'
356-
* )
354+
*
355+
* array(
356+
* 'name' => 'name001',
357+
* 'value' => 'value001'
358+
* )
357359
*
358360
* When normalizing the value array, the 'name' element will removed from the child node
359361
* and its value becomes the new key of the child node:
360-
* array(
361-
* 'name001' => array('value' => 'value001')
362-
* )
362+
*
363+
* array(
364+
* 'name001' => array('value' => 'value001')
365+
* )
363366
*
364367
* Now only 'value' element is left in the child node which can be further simplified into a string:
365-
* array('name001' => 'value001')
368+
*
369+
* array('name001' => 'value001')
366370
*
367371
* Now, the key becomes 'name001' and the child node becomes 'value001' and
368372
* the prototype of child node 'name001' should be a ScalarNode instead of an ArrayNode instance.

0 commit comments

Comments
 (0)