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
d1f72be5
Commit
d1f72be5
authored
Nov 22, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Used echo instead of stdout not to cluttter tests
parent
e88a5d9c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
MessageController.php
framework/console/controllers/MessageController.php
+3
-3
No files found.
framework/console/controllers/MessageController.php
View file @
d1f72be5
...
...
@@ -245,7 +245,7 @@ class MessageController extends Controller
protected
function
extractMessages
(
$fileName
,
$translator
)
{
$coloredFileName
=
Console
::
ansiFormat
(
$fileName
,
[
Console
::
FG_CYAN
]);
$this
->
stdout
(
"Extracting messages from
$coloredFileName
...
\n
"
)
;
echo
"Extracting messages from
$coloredFileName
...
\n
"
;
$subject
=
file_get_contents
(
$fileName
);
$messages
=
[];
if
(
!
is_array
(
$translator
))
{
...
...
@@ -288,7 +288,7 @@ class MessageController extends Controller
$line
=
Console
::
ansiFormat
(
$this
->
getLine
(
$buffer
),
[
Console
::
FG_CYAN
]);
$skipping
=
Console
::
ansiFormat
(
'Skipping line'
,
[
Console
::
FG_YELLOW
]);
$this
->
stdout
(
"
$skipping
$line
. Make sure both category and message are static strings.
\n
"
)
;
echo
"
$skipping
$line
. Make sure both category and message are static strings.
\n
"
;
}
// prepare for the next match
...
...
@@ -302,7 +302,7 @@ class MessageController extends Controller
}
}
$this
->
stdout
(
"
\n
"
)
;
echo
"
\n
"
;
return
$messages
;
}
...
...
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