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
b0ef4c90
Commit
b0ef4c90
authored
Mar 04, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed unused variables
parent
15a41eae
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
ClassmapController.php
build/controllers/ClassmapController.php
+1
-1
Generator.php
extensions/gii/generators/model/Generator.php
+1
-1
BaseYii.php
framework/BaseYii.php
+1
-1
BaseHtml.php
framework/helpers/BaseHtml.php
+1
-1
No files found.
build/controllers/ClassmapController.php
View file @
b0ef4c90
...
...
@@ -52,7 +52,7 @@ class ClassmapController extends Controller
$files
=
FileHelper
::
findFiles
(
$root
,
$options
);
$map
=
[];
foreach
(
$files
as
$file
)
{
if
(
(
$pos
=
strpos
(
$file
,
$root
)
)
!==
0
)
{
if
(
strpos
(
$file
,
$root
)
!==
0
)
{
die
(
"Something wrong:
$file
\n
"
);
}
$path
=
str_replace
(
'\\'
,
'/'
,
substr
(
$file
,
strlen
(
$root
)));
...
...
extensions/gii/generators/model/Generator.php
View file @
b0ef4c90
...
...
@@ -471,7 +471,7 @@ class Generator extends \yii\gii\Generator
*/
public
function
validateTableName
()
{
if
(
(
$pos
=
strpos
(
$this
->
tableName
,
'*'
)
)
!==
false
&&
substr
(
$this
->
tableName
,
-
1
)
!==
'*'
)
{
if
(
strpos
(
$this
->
tableName
,
'*'
)
!==
false
&&
substr
(
$this
->
tableName
,
-
1
)
!==
'*'
)
{
$this
->
addError
(
'tableName'
,
'Asterisk is only allowed as the last character.'
);
return
;
}
...
...
framework/BaseYii.php
View file @
b0ef4c90
...
...
@@ -356,7 +356,7 @@ class BaseYii
$config
=
array_merge
(
static
::
$objectConfig
[
$class
],
$config
);
}
if
(
(
$n
=
func_num_args
()
)
>
1
)
{
if
(
func_num_args
(
)
>
1
)
{
/** @var \ReflectionClass $reflection */
if
(
isset
(
$reflections
[
$class
]))
{
$reflection
=
$reflections
[
$class
];
...
...
framework/helpers/BaseHtml.php
View file @
b0ef4c90
...
...
@@ -1579,7 +1579,7 @@ class BaseHtml
{
if
(
isset
(
$options
[
'class'
]))
{
$classes
=
' '
.
$options
[
'class'
]
.
' '
;
if
(
(
$pos
=
strpos
(
$classes
,
' '
.
$class
.
' '
)
)
===
false
)
{
if
(
strpos
(
$classes
,
' '
.
$class
.
' '
)
===
false
)
{
$options
[
'class'
]
.=
' '
.
$class
;
}
}
else
{
...
...
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