Skip to content

Commit 1653a3e

Browse files
fix: code-selector
1 parent 6095ac6 commit 1653a3e

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

src/Doctrine/Orm/Filter/OrderFilter.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@
110110
*
111111
* By default, whenever the query does not specify the direction explicitly (e.g.: `/books?order[title]&order[id]`), filters will not be applied unless you configure a default order direction to use:
112112
*
113-
* [codeSelector]
113+
* <div data-code-selector>
114+
*
114115
* ```php
115116
* <?php
116117
* // api/src/Entity/Book.php
@@ -181,7 +182,8 @@
181182
* </resource>
182183
* </resources>
183184
* ```
184-
* [/codeSelector]
185+
*
186+
* </div>
185187
*
186188
* When the property used for ordering can contain `null` values, you may want to specify how `null` values are treated in the comparison:
187189
* - Use the default behavior of the DBMS: use `null` strategy

src/Metadata/ApiProperty.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ public function __construct(
109109
* The `security` option defines the access to the current property, on normalization process, based on Symfony Security.
110110
* It receives an `object` variable related to the current object, and a `property` variable related to the current property.
111111
*
112-
* <CodeSelector>
112+
* <div data-code-selector>
113+
*
113114
* ```php
114115
* <?php
115116
* // api/src/Entity/Review.php
@@ -144,14 +145,16 @@ public function __construct(
144145
* <property resource="App\Entity\Review" name="letter" security="is_granted('ROLE_ADMIN')" />
145146
* </properties>
146147
* ```
147-
* </CodeSelector>
148+
*
149+
* </div>
148150
*/
149151
private ?string $security = null,
150152
/**
151153
* The `securityPostDenormalize` option defines access to the current property after the denormalization process, based on Symfony Security.
152154
* It receives an `object` variable related to the current object, and a `property` variable related to the current property.
153155
*
154-
* <CodeSelector>
156+
* <div data-code-selector>
157+
*
155158
* ```php
156159
* <?php
157160
* // api/src/Entity/Review.php
@@ -186,7 +189,8 @@ public function __construct(
186189
* <property resource="App\Entity\Review" name="letter" securityPostDenormalize="is_granted('ROLE_ADMIN')" />
187190
* </properties>
188191
* ```
189-
* </CodeSelector>
192+
*
193+
* </div>
190194
*/
191195
private ?string $securityPostDenormalize = null,
192196
private array|string|null $types = null,

0 commit comments

Comments
 (0)