This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- /dev/null | |
| +++ ../Model/Quote/Discount.php | |
| @@ -178,10 +178,10 @@ | |
| $this->calculator->initTotals($items, $address); | |
| $items = $this->calculator->sortItemsByPriority($items, $address); | |
| $rules = $this->calculator->getRules($address); | |
| - /** @var Rule $rule */ | |
| - foreach ($rules as $rule) { | |
| - /** @var Item $item */ | |
| - foreach ($items as $item) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function makeCURLRequest($method, $baseURL, $url, array $headers = null, string $body = null) | |
| { | |
| $curl = curl_init(); | |
| curl_setopt($curl, CURLOPT_CUSTOMREQUEST, $method); | |
| curl_setopt($curl, CURLOPT_URL, $baseURL . $url); | |
| curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); | |
| curl_setopt($curl, CURLOPT_HEADER, 1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class MetadataBuilder | |
| { | |
| protected $router; | |
| public function __construct($router) | |
| { | |
| $this->router = $router; | |
| } | |
| /* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script> | |
| $( "input[name='_method'][value='DELETE']" ).parent().submit(function( event ) { | |
| return confirm('Content will be permanently DELETED. Do you wish to continue?'); | |
| }); | |
| </script> |