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
9669b321
Commit
9669b321
authored
Feb 04, 2014
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed duplicated getAlias call.
parent
9779e9c9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
FixtureController.php
framework/console/controllers/FixtureController.php
+4
-4
No files found.
framework/console/controllers/FixtureController.php
View file @
9669b321
...
@@ -106,7 +106,7 @@ class FixtureController extends Controller
...
@@ -106,7 +106,7 @@ class FixtureController extends Controller
if
(
!
$foundFixtures
)
{
if
(
!
$foundFixtures
)
{
throw
new
Exception
(
"No files were found by name:
\"
"
.
implode
(
', '
,
$fixtures
)
.
"
\"
.
\n
"
throw
new
Exception
(
"No files were found by name:
\"
"
.
implode
(
', '
,
$fixtures
)
.
"
\"
.
\n
"
.
"Check that files with these name exists, under fixtures path:
\n\"
"
.
Yii
::
getAlias
(
$this
->
getFixturePath
()
)
.
"
\"
."
.
"Check that files with these name exists, under fixtures path:
\n\"
"
.
$this
->
getFixturePath
(
)
.
"
\"
."
);
);
}
}
...
@@ -156,7 +156,7 @@ class FixtureController extends Controller
...
@@ -156,7 +156,7 @@ class FixtureController extends Controller
if
(
!
$foundFixtures
)
{
if
(
!
$foundFixtures
)
{
throw
new
Exception
(
"No files were found by name:
\"
"
.
implode
(
', '
,
$fixtures
)
.
"
\"
.
\n
"
throw
new
Exception
(
"No files were found by name:
\"
"
.
implode
(
', '
,
$fixtures
)
.
"
\"
.
\n
"
.
"Check that fixtures with these name exists, under fixtures path:
\n\"
"
.
Yii
::
getAlias
(
$this
->
getFixturePath
()
)
.
"
\"
."
.
"Check that fixtures with these name exists, under fixtures path:
\n\"
"
.
$this
->
getFixturePath
(
)
.
"
\"
."
);
);
}
}
...
@@ -231,7 +231,7 @@ class FixtureController extends Controller
...
@@ -231,7 +231,7 @@ class FixtureController extends Controller
private
function
notifyNotFound
(
$fixtures
)
private
function
notifyNotFound
(
$fixtures
)
{
{
$this
->
stdout
(
"Some fixtures were not found under path:
\n
"
,
Console
::
BG_RED
);
$this
->
stdout
(
"Some fixtures were not found under path:
\n
"
,
Console
::
BG_RED
);
$this
->
stdout
(
"
\t
"
.
Yii
::
getAlias
(
$this
->
getFixturePath
()
)
.
"
\n\n
"
,
Console
::
FG_GREEN
);
$this
->
stdout
(
"
\t
"
.
$this
->
getFixturePath
(
)
.
"
\n\n
"
,
Console
::
FG_GREEN
);
$this
->
stdout
(
"Check that they have correct namespace
\"
{
$this
->
namespace
}
\"
\n
"
,
Console
::
BG_RED
);
$this
->
stdout
(
"Check that they have correct namespace
\"
{
$this
->
namespace
}
\"
\n
"
,
Console
::
BG_RED
);
$this
->
outputList
(
$fixtures
);
$this
->
outputList
(
$fixtures
);
$this
->
stdout
(
"
\n
"
);
$this
->
stdout
(
"
\n
"
);
...
@@ -308,7 +308,7 @@ class FixtureController extends Controller
...
@@ -308,7 +308,7 @@ class FixtureController extends Controller
*/
*/
private
function
findFixtures
(
array
$fixtures
)
private
function
findFixtures
(
array
$fixtures
)
{
{
$fixturesPath
=
Yii
::
getAlias
(
$this
->
getFixturePath
()
);
$fixturesPath
=
$this
->
getFixturePath
(
);
$filesToSearch
=
[
'*Fixture.php'
];
$filesToSearch
=
[
'*Fixture.php'
];
if
(
!
$this
->
needToApplyAll
(
$fixtures
[
0
]))
{
if
(
!
$this
->
needToApplyAll
(
$fixtures
[
0
]))
{
...
...
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