@@ -1242,9 +1242,9 @@ public function provideDeprecatedTagsData(): \Iterator
1242
1242
new PhpDocTagNode (
1243
1243
'@deprecated ' ,
1244
1244
new DeprecatedTagValueNode ('in Drupal 8.6.0 and will be removed before Drupal 9.0.0. In
1245
- Drupal 9 there will be no way to set the status and in Drupal 8 this
1246
- ability has been removed because mb_*() functions are supplied using
1247
- Symfony \'s polyfill. ' )
1245
+ Drupal 9 there will be no way to set the status and in Drupal 8 this
1246
+ ability has been removed because mb_*() functions are supplied using
1247
+ Symfony \'s polyfill. ' )
1248
1248
),
1249
1249
]),
1250
1250
];
@@ -1271,9 +1271,9 @@ public function provideDeprecatedTagsData(): \Iterator
1271
1271
new PhpDocTagNode (
1272
1272
'@deprecated ' ,
1273
1273
new DeprecatedTagValueNode ('in Drupal 8.6.0 and will be removed before Drupal 9.0.0. In
1274
- Drupal 9 there will be no way to set the status and in Drupal 8 this
1275
- ability has been removed because mb_*() functions are supplied using
1276
- Symfony \'s polyfill. ' )
1274
+ Drupal 9 there will be no way to set the status and in Drupal 8 this
1275
+ ability has been removed because mb_*() functions are supplied using
1276
+ Symfony \'s polyfill. ' )
1277
1277
),
1278
1278
]),
1279
1279
];
@@ -3122,29 +3122,29 @@ public function provideRealWorldExampleData(): \Iterator
3122
3122
''
3123
3123
)
3124
3124
),
3125
- new PhpDocTextNode (' An empty array if there is no schema, or an associative array with the
3126
- following key/value pairs: ' ),
3127
- new PhpDocTextNode ( ' - columns: An array of Schema API column specifications, keyed by column
3128
- name. The columns need to be a subset of the properties defined in
3129
- propertyDefinitions(). The \ 'not null \ ' property is ignored if present,
3130
- as it is determined automatically by the storage controller depending
3131
- on the table layout and the property definitions. It is recommended to
3132
- avoid having the column definitions depend on field settings when
3133
- possible. No assumptions should be made on how storage engines
3134
- internally use the original column name to structure their storage. ' ),
3135
- new PhpDocTextNode ( ' - unique keys: (optional) An array of Schema API unique key definitions.
3136
- Only columns that appear in the \ 'columns \ ' array are allowed. ' ),
3137
- new PhpDocTextNode ( ' - indexes: (optional) An array of Schema API index definitions. Only
3138
- columns that appear in the \ 'columns \ ' array are allowed. Those indexes
3139
- will be used as default indexes. Field definitions can specify
3140
- additional indexes or, at their own risk, modify the default indexes
3141
- specified by the field-type module. Some storage engines might not
3142
- support indexes. ' ),
3143
- new PhpDocTextNode ( ' - foreign keys: (optional) An array of Schema API foreign key
3144
- definitions. Note, however, that the field data is not necessarily
3145
- stored in SQL. Also, the possible usage is limited, as you cannot
3146
- specify another field as related, only existing SQL tables,
3147
- such as {taxonomy_term_data}. ' ),
3125
+ new PhpDocTextNode (" An empty array if there is no schema, or an associative array with the
3126
+ following key/value pairs:
3127
+ - columns: An array of Schema API column specifications, keyed by column
3128
+ name. The columns need to be a subset of the properties defined in
3129
+ propertyDefinitions(). The 'not null' property is ignored if present,
3130
+ as it is determined automatically by the storage controller depending
3131
+ on the table layout and the property definitions. It is recommended to
3132
+ avoid having the column definitions depend on field settings when
3133
+ possible. No assumptions should be made on how storage engines
3134
+ internally use the original column name to structure their storage.
3135
+ - unique keys: (optional) An array of Schema API unique key definitions.
3136
+ Only columns that appear in the 'columns' array are allowed.
3137
+ - indexes: (optional) An array of Schema API index definitions. Only
3138
+ columns that appear in the 'columns' array are allowed. Those indexes
3139
+ will be used as default indexes. Field definitions can specify
3140
+ additional indexes or, at their own risk, modify the default indexes
3141
+ specified by the field-type module. Some storage engines might not
3142
+ support indexes.
3143
+ - foreign keys: (optional) An array of Schema API foreign key
3144
+ definitions. Note, however, that the field data is not necessarily
3145
+ stored in SQL. Also, the possible usage is limited, as you cannot
3146
+ specify another field as related, only existing SQL tables,
3147
+ such as {taxonomy_term_data}." ),
3148
3148
]),
3149
3149
];
3150
3150
@@ -3172,14 +3172,14 @@ public function provideRealWorldExampleData(): \Iterator
3172
3172
new PhpDocTextNode ('Parses a chunked request and return relevant information. ' ),
3173
3173
new PhpDocTextNode ('' ),
3174
3174
new PhpDocTextNode ('This function must return an array containing the following
3175
- keys and their corresponding values: ' ),
3176
- new PhpDocTextNode ( ' - last: Wheter this is the last chunk of the uploaded file ' ),
3177
- new PhpDocTextNode ( ' - uuid: A unique id which distinguishes two uploaded files
3178
- This uuid must stay the same among the task of
3179
- uploading a chunked file. ' ),
3180
- new PhpDocTextNode ( ' - index: A numerical representation of the currently uploaded
3181
- chunk. Must be higher that in the previous request. ' ),
3182
- new PhpDocTextNode ( ' - orig: The original file name. ' ),
3175
+ keys and their corresponding values:
3176
+ - last: Wheter this is the last chunk of the uploaded file
3177
+ - uuid: A unique id which distinguishes two uploaded files
3178
+ This uuid must stay the same among the task of
3179
+ uploading a chunked file.
3180
+ - index: A numerical representation of the currently uploaded
3181
+ chunk. Must be higher that in the previous request.
3182
+ - orig: The original file name. ' ),
3183
3183
new PhpDocTextNode ('' ),
3184
3184
new PhpDocTagNode (
3185
3185
'@param ' ,
@@ -3201,6 +3201,30 @@ public function provideRealWorldExampleData(): \Iterator
3201
3201
]),
3202
3202
];
3203
3203
3204
+ yield [
3205
+ 'Description with indented <code> ' ,
3206
+ "/**
3207
+ * Finder allows searching through directory trees using iterator.
3208
+ *
3209
+ * <code>
3210
+ * Finder::findFiles('*.php')
3211
+ * ->size('> 10kB')
3212
+ * ->from('.')
3213
+ * ->exclude('temp');
3214
+ * </code>
3215
+ */ " ,
3216
+ new PhpDocNode ([
3217
+ new PhpDocTextNode ('Finder allows searching through directory trees using iterator. ' ),
3218
+ new PhpDocTextNode ('' ),
3219
+ new PhpDocTextNode ("<code>
3220
+ Finder::findFiles('*.php')
3221
+ ->size('> 10kB')
3222
+ ->from('.')
3223
+ ->exclude('temp');
3224
+ </code> " ),
3225
+ ]),
3226
+ ];
3227
+
3204
3228
yield [
3205
3229
'string literals in @return ' ,
3206
3230
"/** @return 'foo'|'bar' */ " ,
0 commit comments