Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
329e6ee0
Commit
329e6ee0
authored
Oct 25, 2014
by
Alexander Mohorev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use elseif instead of else if
parent
bb855088
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
TranslationController.php
build/controllers/TranslationController.php
+3
-6
No files found.
build/controllers/TranslationController.php
View file @
329e6ee0
...
@@ -128,14 +128,11 @@ class TranslationController extends Controller
...
@@ -128,14 +128,11 @@ class TranslationController extends Controller
foreach
(
$lines
as
$key
=>
$val
)
{
foreach
(
$lines
as
$key
=>
$val
)
{
if
(
mb_substr
(
$val
,
0
,
1
,
'utf-8'
)
===
'@'
)
{
if
(
mb_substr
(
$val
,
0
,
1
,
'utf-8'
)
===
'@'
)
{
$lines
[
$key
]
=
'<span class="info">'
.
Html
::
encode
(
$val
)
.
'</span>'
;
$lines
[
$key
]
=
'<span class="info">'
.
Html
::
encode
(
$val
)
.
'</span>'
;
}
}
elseif
(
mb_substr
(
$val
,
0
,
1
,
'utf-8'
)
===
'+'
)
{
else
if
(
mb_substr
(
$val
,
0
,
1
,
'utf-8'
)
===
'+'
)
{
$lines
[
$key
]
=
'<ins>'
.
Html
::
encode
(
$val
)
.
'</ins>'
;
$lines
[
$key
]
=
'<ins>'
.
Html
::
encode
(
$val
)
.
'</ins>'
;
}
}
elseif
(
mb_substr
(
$val
,
0
,
1
,
'utf-8'
)
===
'-'
)
{
else
if
(
mb_substr
(
$val
,
0
,
1
,
'utf-8'
)
===
'-'
)
{
$lines
[
$key
]
=
'<del>'
.
Html
::
encode
(
$val
)
.
'</del>'
;
$lines
[
$key
]
=
'<del>'
.
Html
::
encode
(
$val
)
.
'</del>'
;
}
}
else
{
else
{
$lines
[
$key
]
=
Html
::
encode
(
$val
);
$lines
[
$key
]
=
Html
::
encode
(
$val
);
}
}
}
}
...
...
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