-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update the Bagisto UPS Shipping module in v2.0 #4
base: master
Are you sure you want to change the base?
Conversation
src/Carriers/Ups.php
Outdated
* | ||
* @return array | ||
*/ | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add a space
src/Carriers/Ups.php
Outdated
return false; | ||
} | ||
if (isset ($cartProducts) && $cartProducts == true) { | ||
if (isset($cartProducts) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
currect this condition.
src/Repositories/UpsRepository.php
Outdated
$totalCount = count($allowedServices); | ||
|
||
foreach ($allowedServices as $methods) { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove extra line.
src/Repositories/UpsRepository.php
Outdated
if ( in_array($service, $methods) ) { | ||
$count += 1; | ||
} | ||
} | ||
if ( $count == $totalCount ) { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove extra line
src/Repositories/UpsRepository.php
Outdated
} | ||
|
||
$allowedMethods[] = $allowedMethod; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add one extra line before this line.
src/Repositories/UpsRepository.php
Outdated
|
||
if ($serviceType == $type && $servicesCount == $countMethods) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
break if condition
No description provided.