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
24b0de63
Commit
24b0de63
authored
Mar 08, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor code style fixes for apidoc
parent
a8ef7bab
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
ApiController.php
extensions/apidoc/commands/ApiController.php
+4
-0
GuideController.php
extensions/apidoc/commands/GuideController.php
+5
-1
BaseController.php
extensions/apidoc/components/BaseController.php
+1
-1
No files found.
extensions/apidoc/commands/ApiController.php
View file @
24b0de63
...
@@ -112,6 +112,9 @@ class ApiController extends BaseController
...
@@ -112,6 +112,9 @@ class ApiController extends BaseController
}
}
}
}
/**
* @inheritdoc
*/
protected
function
findFiles
(
$path
,
$except
=
[])
protected
function
findFiles
(
$path
,
$except
=
[])
{
{
if
(
empty
(
$except
))
{
if
(
empty
(
$except
))
{
...
@@ -135,6 +138,7 @@ class ApiController extends BaseController
...
@@ -135,6 +138,7 @@ class ApiController extends BaseController
}
}
/**
/**
* @inheritdoc
* @return ApiRenderer
* @return ApiRenderer
*/
*/
protected
function
findRenderer
(
$template
)
protected
function
findRenderer
(
$template
)
...
...
extensions/apidoc/commands/GuideController.php
View file @
24b0de63
...
@@ -9,7 +9,6 @@ namespace yii\apidoc\commands;
...
@@ -9,7 +9,6 @@ namespace yii\apidoc\commands;
use
yii\apidoc\components\BaseController
;
use
yii\apidoc\components\BaseController
;
use
yii\apidoc\models\Context
;
use
yii\apidoc\models\Context
;
use
yii\apidoc\renderers\BaseRenderer
;
use
yii\apidoc\renderers\GuideRenderer
;
use
yii\apidoc\renderers\GuideRenderer
;
use
yii\helpers\Console
;
use
yii\helpers\Console
;
use
yii\helpers\FileHelper
;
use
yii\helpers\FileHelper
;
...
@@ -77,6 +76,9 @@ class GuideController extends BaseController
...
@@ -77,6 +76,9 @@ class GuideController extends BaseController
file_put_contents
(
$targetDir
.
'/guide-references.txt'
,
implode
(
"
\n
"
,
$references
));
file_put_contents
(
$targetDir
.
'/guide-references.txt'
,
implode
(
"
\n
"
,
$references
));
}
}
/**
* @inheritdoc
*/
protected
function
findFiles
(
$path
,
$except
=
[])
protected
function
findFiles
(
$path
,
$except
=
[])
{
{
if
(
empty
(
$except
))
{
if
(
empty
(
$except
))
{
...
@@ -89,7 +91,9 @@ class GuideController extends BaseController
...
@@ -89,7 +91,9 @@ class GuideController extends BaseController
];
];
return
FileHelper
::
findFiles
(
$path
,
$options
);
return
FileHelper
::
findFiles
(
$path
,
$options
);
}
}
/**
/**
* @inheritdoc
* @return GuideRenderer
* @return GuideRenderer
*/
*/
protected
function
findRenderer
(
$template
)
protected
function
findRenderer
(
$template
)
...
...
extensions/apidoc/components/BaseController.php
View file @
24b0de63
...
@@ -78,7 +78,6 @@ abstract class BaseController extends Controller
...
@@ -78,7 +78,6 @@ abstract class BaseController extends Controller
protected
abstract
function
findFiles
(
$dir
,
$except
=
[]);
protected
abstract
function
findFiles
(
$dir
,
$except
=
[]);
protected
function
loadContext
(
$location
)
protected
function
loadContext
(
$location
)
{
{
$context
=
new
Context
();
$context
=
new
Context
();
...
@@ -114,6 +113,7 @@ abstract class BaseController extends Controller
...
@@ -114,6 +113,7 @@ abstract class BaseController extends Controller
}
}
/**
/**
* @inheritdoc
* @return BaseRenderer
* @return BaseRenderer
*/
*/
protected
abstract
function
findRenderer
(
$template
);
protected
abstract
function
findRenderer
(
$template
);
...
...
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