Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

asadbek-fayzulloev
Copy link
Contributor

No description provided.

@@ -79,7 +79,7 @@ public static function timestamp2datetime($timestamp)
}

// convert to datetime string
return date('Y-m-d H:i:s', strtotime($timestamp));
Copy link
Owner

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);
Copy link
Owner

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,,
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants