-
Notifications
You must be signed in to change notification settings - Fork 42
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
fix: getStatement method of Payme #68
base: master
Are you sure you want to change the base?
fix: getStatement method of Payme #68
Conversation
@@ -79,7 +79,7 @@ public static function timestamp2datetime($timestamp) | |||
} | |||
|
|||
// convert to datetime string | |||
return date('Y-m-d H:i:s', strtotime($timestamp)); |
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.
bu classga tegmasdan payme.php classni o'zida yangi method ochib shu orqali hal qilish yaxshiroq, chunki bu funsiyada boshqa classlarda ham foydalanilgan bo'lishi mumkin
@@ -90,7 +90,7 @@ public static function timestamp2datetime($timestamp) | |||
public static function datetime2timestamp($datetime) | |||
{ | |||
if ($datetime) { | |||
return strtotime($datetime); |
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.
bu yerda ham ma'no yo'qolib qolgan
'state' => 1 * $row['state'], | ||
'reason' => isset($row['comment']) ? 1 * $row['comment'] : null, | ||
'state' => 1 * intval($row['state']), | ||
'reason' => \Illuminate\Support\Arr::get($row,"comment") ? (1 * \Illuminate\Support\Arr::get($row,"comment")) : null,, |
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.
tepada use deb import qilgan yaxshiroq, single quote bilan
No description provided.