Skip to content

Commit 1f73465

Browse files
committed
Removed not needed code sample ranges
1 parent 2b7c70c commit 1f73465

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/discounts/extend_discounts.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,13 +131,13 @@ To implement a custom rule, create a class implementing the [`DiscountRuleInterf
131131

132132

133133
``` php
134-
[[= include_file('code_samples/discounts/src/Discounts/Rule/PurchasingPowerParityRule.php', 0, 42) =]]
134+
[[= include_file('code_samples/discounts/src/Discounts/Rule/PurchasingPowerParityRule.php') =]]
135135
```
136136

137137
As with conditions, create a dedicated rule factory:
138138

139139
``` php
140-
[[= include_file('code_samples/discounts/src/Discounts/Rule/PurchasingPowerParityRuleFactory.php', 0, 14) =]]
140+
[[= include_file('code_samples/discounts/src/Discounts/Rule/PurchasingPowerParityRuleFactory.php') =]]
141141
```
142142

143143
Then, mark it as a service using the `ibexa.discounts.rule.factory` service tag and specify the rule's type.

0 commit comments

Comments
 (0)