Skip to content
Next
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Backend - Engine
Project
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
291
Merge Requests
39
CI / CD
Security & Compliance
Packages
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Backend - Engine
Commits
6052b851
Commit
6052b851
authored
3 hours ago
by
Guy Thouret
Browse files
Options
Download
(chore) Linting after merging master -
#1072
parent
95e7647e
chore/665-refactor-object-use
1 merge request
!376
Upgrade to PHP 7.3
Pipeline
#93746598
passed with stages
in 10 minutes and 25 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
Core/Monetization/Partners/Repository.php
View file @
6052b851
...
...
@@ -101,14 +101,16 @@ class Repository
public
function
add
(
EarningsDeposit
$deposit
)
:
bool
{
$prepared
=
new
Prepared
();
$prepared
->
query
(
"INSERT INTO partner_earnings_ledger (user_guid, timestamp, item, amount_cents, amount_tokens) VALUES (?,?,?,?,?)"
,
$prepared
->
query
(
"INSERT INTO partner_earnings_ledger (user_guid, timestamp, item, amount_cents, amount_tokens) VALUES (?,?,?,?,?)"
,
[
new
Bigint
(
$deposit
->
getUserGuid
()),
new
Timestamp
(
$deposit
->
getTimestamp
()),
$deposit
->
getItem
(),
$deposit
->
getAmountCents
()
?
(
int
)
$deposit
->
getAmountCents
()
:
null
,
$deposit
->
getAmountTokens
()
?
new
Bigint
(
$deposit
->
getAmountTokens
())
:
null
,
]);
]
);
return
(
bool
)
$this
->
db
->
request
(
$prepared
);
}
...
...
This diff is collapsed.
Spec/Core/Analytics/Dashboards/Metrics/SignupsMetricSpec.php
View file @
6052b851
...
...
@@ -57,7 +57,8 @@ class SignupsMetricSpec extends ObjectBehavior
'value'
=>
256
,
],
],
]);
]
);
$this
->
buildSummary
();
...
...
This diff is collapsed.
Spec/Core/Analytics/Dashboards/Metrics/ViewsMetricSpec.php
View file @
6052b851
...
...
@@ -57,7 +57,8 @@ class ViewsMetricSpec extends ObjectBehavior
'value'
=>
256
,
]
]
]);
]
);
$this
->
buildSummary
();
...
...
This diff is collapsed.
Please
register
or
sign in
to comment