Skip to content

Commit bfd1697

Browse files
committed
Enhance FieldType\FieldType phpdoc: Fix code blocks
1 parent ad70f77 commit bfd1697

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

src/contracts/FieldType/FieldType.php

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -100,20 +100,20 @@ abstract public function getSettingsSchema();
100100
* It is considered best practice to return a hash map, which contains
101101
* rudimentary settings structures, like e.g. for the "ezstring" FieldType
102102
*
103-
* <code>
104-
* array(
105-
* 'stringLength' => array(
106-
* 'minStringLength' => array(
107-
* 'type' => 'int',
108-
* 'default' => 0,
109-
* ),
110-
* 'maxStringLength' => array(
111-
* 'type' => 'int'
112-
* 'default' => null,
113-
* )
114-
* ),
115-
* );
116-
* </code>
103+
* ```
104+
* [
105+
* 'stringLength' => [
106+
* 'minStringLength' => [
107+
* 'type' => 'int',
108+
* 'default' => 0,
109+
* ],
110+
* 'maxStringLength' => [
111+
* 'type' => 'int'
112+
* 'default' => null,
113+
* ],
114+
* ],
115+
* ];
116+
* ```
117117
*
118118
* @return mixed
119119
*/
@@ -360,22 +360,22 @@ abstract public function fromPersistenceValue(FieldValue $fieldValue);
360360
*
361361
* @param \Ibexa\Contracts\Core\FieldType\Value $value
362362
*
363-
* @return array Hash with relation type as key and array of destination content ids as value.
363+
* @return array Hash with relation type as key and array of destination content IDs as value.
364364
*
365365
* Example:
366-
* <code>
367-
* array(
368-
* \Ibexa\Contracts\Core\Repository\Values\Content\Relation::LINK => array(
369-
* "contentIds" => array( 12, 13, 14 ),
370-
* "locationIds" => array( 24 )
371-
* ),
372-
* \Ibexa\Contracts\Core\Repository\Values\Content\Relation::EMBED => array(
373-
* "contentIds" => array( 12 ),
374-
* "locationIds" => array( 24, 45 )
375-
* ),
376-
* \Ibexa\Contracts\Core\Repository\Values\Content\Relation::FIELD => array( 12 )
377-
* )
378-
* </code>
366+
* ```
367+
* [
368+
* \Ibexa\Contracts\Core\Repository\Values\Content\Relation::LINK => [
369+
* 'contentIds' => [12, 13, 14],
370+
* 'locationIds' => [24]
371+
* ],
372+
* \Ibexa\Contracts\Core\Repository\Values\Content\Relation::EMBED => [
373+
* 'contentIds" => [12],
374+
* 'locationIds' => [24, 45]
375+
* ],
376+
* \Ibexa\Contracts\Core\Repository\Values\Content\Relation::FIELD => [12]
377+
* ]
378+
* ```
379379
*/
380380
abstract public function getRelations(Value $value);
381381
}

0 commit comments

Comments
 (0)