Content-Length: 262055 | pFad | http://github.com/unicodeveloper/laravel-paystack/commit/fa339c5d56d03501a5be791313d23f32a90fbf83

50 Convert to null coalescing · unicodeveloper/laravel-paystack@fa339c5 · GitHub
Skip to content

Commit fa339c5

Browse files
committed
Convert to null coalescing
1 parent 0362354 commit fa339c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Paystack.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public function makePaymentRequest( $data = null)
113113
{
114114
if ( $data == null ) {
115115

116-
$quantity = intval(request()->quantity ? request()->quantity : 1);
116+
$quantity = intval(request()->quantity ?? 1);
117117

118118
$data = [
119119
"amount" => intval(request()->amount) * $quantity,

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/unicodeveloper/laravel-paystack/commit/fa339c5d56d03501a5be791313d23f32a90fbf83

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy