Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Learning and Work
managing-money-api
Commits
06da89fd
Commit
06da89fd
authored
Jul 13, 2018
by
Jack Stupple
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
case insentive modifier categories
parent
a3046ab6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
database/migrations/CharacterMigration.php
database/migrations/CharacterMigration.php
+10
-10
No files found.
database/migrations/CharacterMigration.php
View file @
06da89fd
...
...
@@ -80,10 +80,10 @@ class CharacterMigration extends Migration
$amount
=
$_modifier
[
'amount'
];
$income_outgoing
=
'outgoing'
;
if
(
$_category
===
'
S
alary'
)
{
if
(
strtolower
(
$_category
)
===
'
s
alary'
)
{
$income_outgoing
=
'income'
;
}
else
if
(
strpos
(
$_category
,
'
O
ther'
)
!==
false
)
{
if
(
$_category
==
'
O
ther-
I
ncome'
)
{
}
else
if
(
strpos
(
strtolower
(
$_category
)
,
'
o
ther'
)
!==
false
)
{
if
(
strtolower
(
$_category
)
=
==
'
o
ther-
i
ncome'
)
{
$income_outgoing
=
'income'
;
}
else
{
$income_outgoing
=
'outgoing'
;
...
...
@@ -139,16 +139,16 @@ class CharacterMigration extends Migration
$modifier
->
model_id
=
$answer
->
id
;
$income_outgoing
=
'outgoing'
;
if
(
$_modifier
[
'category'
]
==
'
S
alary'
)
{
if
(
strtolower
(
$_modifier
[
'category'
]
)
=
==
'
s
alary'
)
{
$income_outgoing
=
'income'
;
}
else
if
(
strpos
(
$_modifier
[
'category'
],
'
O
ther'
)
!==
false
)
{
if
(
$_modifier
[
'category'
]
===
'
O
ther-
I
ncome'
)
{
}
else
if
(
strpos
(
strtolower
(
$_modifier
[
'category'
]
)
,
'
o
ther'
)
!==
false
)
{
if
(
strtolower
(
$_modifier
[
'category'
]
)
===
'
o
ther-
i
ncome'
)
{
$income_outgoing
=
'income'
;
}
else
{
$income_outgoing
=
'outgoing'
;
}
$_modifier
[
'category'
]
=
'
O
ther'
;
$_modifier
[
'category'
]
=
'
o
ther'
;
}
$category
=
$this
->
getModifierCategory
(
$_modifier
[
'category'
],
$income_outgoing
);
...
...
@@ -212,10 +212,10 @@ class CharacterMigration extends Migration
$modifier
->
model_id
=
$roundup
->
id
;
$income_outgoing
=
'outgoing'
;
if
(
$_modifier
[
'category'
]
===
'
S
alary'
)
{
if
(
strtolower
(
$_modifier
[
'category'
]
)
===
'
s
alary'
)
{
$income_outgoing
=
'income'
;
}
else
if
(
strpos
(
$_modifier
[
'category'
],
'
O
ther'
)
!==
false
)
{
if
(
$_modifier
[
'category'
]
===
'
O
ther-
I
ncome'
)
{
}
else
if
(
strpos
(
strtolower
(
$_modifier
[
'category'
]
)
,
'
o
ther'
)
!==
false
)
{
if
(
strtolower
(
$_modifier
[
'category'
]
)
===
'
o
ther-
i
ncome'
)
{
$income_outgoing
=
'income'
;
}
else
{
$income_outgoing
=
'outgoing'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment