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
c047fbe0
Commit
c047fbe0
authored
Mar 04, 2014
by
AlexGx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix code style `No space found after comma in function call`
parent
112f67d2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
Formatter.php
framework/base/Formatter.php
+6
-6
FixtureController.php
framework/console/controllers/FixtureController.php
+2
-2
No files found.
framework/base/Formatter.php
View file @
c047fbe0
...
...
@@ -442,17 +442,17 @@ class Formatter extends Component
switch
(
$position
)
{
case
0
:
return
$verbose
?
Yii
::
t
(
'yii'
,
'{n, plural, =1{# byte} other{# bytes}}'
,
$params
)
:
Yii
::
t
(
'yii'
,
'{n} B'
,
$params
);
return
$verbose
?
Yii
::
t
(
'yii'
,
'{n, plural, =1{# byte} other{# bytes}}'
,
$params
)
:
Yii
::
t
(
'yii'
,
'{n} B'
,
$params
);
case
1
:
return
$verbose
?
Yii
::
t
(
'yii'
,
'{n, plural, =1{# kilobyte} other{# kilobytes}}'
,
$params
)
:
Yii
::
t
(
'yii'
,
'{n} KB'
,
$params
);
return
$verbose
?
Yii
::
t
(
'yii'
,
'{n, plural, =1{# kilobyte} other{# kilobytes}}'
,
$params
)
:
Yii
::
t
(
'yii'
,
'{n} KB'
,
$params
);
case
2
:
return
$verbose
?
Yii
::
t
(
'yii'
,
'{n, plural, =1{# megabyte} other{# megabytes}}'
,
$params
)
:
Yii
::
t
(
'yii'
,
'{n} MB'
,
$params
);
return
$verbose
?
Yii
::
t
(
'yii'
,
'{n, plural, =1{# megabyte} other{# megabytes}}'
,
$params
)
:
Yii
::
t
(
'yii'
,
'{n} MB'
,
$params
);
case
3
:
return
$verbose
?
Yii
::
t
(
'yii'
,
'{n, plural, =1{# gigabyte} other{# gigabytes}}'
,
$params
)
:
Yii
::
t
(
'yii'
,
'{n} GB'
,
$params
);
return
$verbose
?
Yii
::
t
(
'yii'
,
'{n, plural, =1{# gigabyte} other{# gigabytes}}'
,
$params
)
:
Yii
::
t
(
'yii'
,
'{n} GB'
,
$params
);
case
4
:
return
$verbose
?
Yii
::
t
(
'yii'
,
'{n, plural, =1{# terabyte} other{# terabytes}}'
,
$params
)
:
Yii
::
t
(
'yii'
,
'{n} TB'
,
$params
);
return
$verbose
?
Yii
::
t
(
'yii'
,
'{n, plural, =1{# terabyte} other{# terabytes}}'
,
$params
)
:
Yii
::
t
(
'yii'
,
'{n} TB'
,
$params
);
default
:
return
$verbose
?
Yii
::
t
(
'yii'
,
'{n, plural, =1{# petabyte} other{# petabytes}}'
,
$params
)
:
Yii
::
t
(
'yii'
,
'{n} PB'
,
$params
);
return
$verbose
?
Yii
::
t
(
'yii'
,
'{n, plural, =1{# petabyte} other{# petabytes}}'
,
$params
)
:
Yii
::
t
(
'yii'
,
'{n} PB'
,
$params
);
}
}
}
framework/console/controllers/FixtureController.php
View file @
c047fbe0
...
...
@@ -64,7 +64,7 @@ class FixtureController extends Controller
public
function
globalOptions
()
{
return
array_merge
(
parent
::
globalOptions
(),
[
'namespace'
,
'globalFixtures'
'namespace'
,
'globalFixtures'
]);
}
...
...
@@ -100,7 +100,7 @@ class FixtureController extends Controller
}
$filtered
=
array_diff
(
$foundFixtures
,
$except
);
$fixtures
=
$this
->
getFixturesConfig
(
array_merge
(
$this
->
globalFixtures
,
$filtered
));
$fixtures
=
$this
->
getFixturesConfig
(
array_merge
(
$this
->
globalFixtures
,
$filtered
));
if
(
!
$fixtures
)
{
throw
new
Exception
(
'No fixtures were found in namespace: "'
.
$this
->
namespace
.
'"'
.
''
);
...
...
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