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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Rotua Panjaitan
yii2
Commits
3c6239f9
Commit
3c6239f9
authored
Jul 29, 2014
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Used substr_compare instead of substr when we don't care about result"
This reverts commit
07f01bcf
. BUT ONLY for the /build directory!
parent
a9aebfab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
PhpDocController.php
build/controllers/PhpDocController.php
+6
-6
No files found.
build/controllers/PhpDocController.php
View file @
3c6239f9
...
...
@@ -170,7 +170,7 @@ class PhpDocController extends Controller
$namespaceLine
=
''
;
$contentAfterNamespace
=
false
;
foreach
(
$lines
as
$i
=>
$line
)
{
if
(
substr
_compare
(
trim
(
$line
),
'namespace'
,
0
,
9
)
===
0
)
{
if
(
substr
(
trim
(
$line
),
0
,
9
)
===
'namespace'
)
{
$namespace
=
$i
;
$namespaceLine
=
trim
(
$line
);
}
elseif
(
$namespace
!==
false
&&
trim
(
$line
)
!==
''
)
{
...
...
@@ -275,13 +275,13 @@ class PhpDocController extends Controller
// TODO move these checks to different action
$lines
=
explode
(
"
\n
"
,
$newDoc
);
if
(
trim
(
$lines
[
1
])
==
'*'
||
substr
_compare
(
trim
(
$lines
[
1
]),
'* @'
,
0
,
3
)
===
0
)
{
if
(
trim
(
$lines
[
1
])
==
'*'
||
substr
(
trim
(
$lines
[
1
]),
0
,
3
)
==
'* @'
)
{
$this
->
stderr
(
"[WARN] Class
$className
has no short description.
\n
"
,
Console
::
FG_YELLOW
,
Console
::
BOLD
);
}
foreach
(
$lines
as
$line
)
{
if
(
substr
_compare
(
trim
(
$line
),
'* @since '
,
0
,
9
)
===
0
)
{
if
(
substr
(
trim
(
$line
),
0
,
9
)
==
'* @since '
)
{
$seenSince
=
true
;
}
elseif
(
substr
_compare
(
trim
(
$line
),
'* @author '
,
0
,
10
)
===
0
)
{
}
elseif
(
substr
(
trim
(
$line
),
0
,
10
)
==
'* @author '
)
{
$seenAuthor
=
true
;
}
}
...
...
@@ -350,13 +350,13 @@ class PhpDocController extends Controller
$propertyPart
=
false
;
$propertyPosition
=
false
;
foreach
(
$lines
as
$i
=>
$line
)
{
if
(
substr
_compare
(
trim
(
$line
),
'* @property '
,
0
,
12
)
===
0
)
{
if
(
substr
(
trim
(
$line
),
0
,
12
)
==
'* @property '
)
{
$propertyPart
=
true
;
}
elseif
(
$propertyPart
&&
trim
(
$line
)
==
'*'
)
{
$propertyPosition
=
$i
;
$propertyPart
=
false
;
}
if
(
substr
_compare
(
trim
(
$line
),
'* @author '
,
0
,
10
)
===
0
&&
$propertyPosition
===
false
)
{
if
(
substr
(
trim
(
$line
),
0
,
10
)
==
'* @author '
&&
$propertyPosition
===
false
)
{
$propertyPosition
=
$i
-
1
;
$propertyPart
=
false
;
}
...
...
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