Commit 77368538 by Carsten Brandt

property code style extensions

parent 63b98dbc
...@@ -278,7 +278,7 @@ class PhpDocController extends Controller ...@@ -278,7 +278,7 @@ class PhpDocController extends Controller
} }
if (trim($line) === '') { if (trim($line) === '') {
unset($lines[$i]); unset($lines[$i]);
} elseif (ltrim($line)[0] !== '*' && strpos($line, 'function') !== false) { } elseif (ltrim($line)[0] !== '*' && strpos($line, 'function ') !== false) {
break; break;
} elseif (trim($line) === '}') { } elseif (trim($line) === '}') {
$propertiesOnly = true; $propertiesOnly = true;
...@@ -309,32 +309,33 @@ class PhpDocController extends Controller ...@@ -309,32 +309,33 @@ class PhpDocController extends Controller
${'endof'.$property} = $i; ${'endof'.$property} = $i;
} }
if (strncmp(trim($line), 'public $', 8) === 0 || strncmp(trim($line), 'public static $', 15) === 0) { $line = trim($line);
if (strncmp($line, 'public $', 8) === 0 || strncmp($line, 'public static $', 15) === 0) {
$endofPublic = $i; $endofPublic = $i;
$property = 'Public'; $property = 'Public';
$level = 0; $level = 0;
} elseif (strncmp(trim($line), 'protected $', 11) === 0 || strncmp(trim($line), 'protected static $', 18) === 0) { } elseif (strncmp($line, 'protected $', 11) === 0 || strncmp($line, 'protected static $', 18) === 0) {
$endofProtected = $i; $endofProtected = $i;
$property = 'Protected'; $property = 'Protected';
$level = 0; $level = 0;
} elseif (strncmp(trim($line), 'private $', 9) === 0 || strncmp(trim($line), 'private static $', 16) === 0) { } elseif (strncmp($line, 'private $', 9) === 0 || strncmp($line, 'private static $', 16) === 0) {
$endofPrivate = $i; $endofPrivate = $i;
$property = 'Private'; $property = 'Private';
$level = 0; $level = 0;
} elseif (substr(trim($line),0 , 6) === 'const ') { } elseif (substr($line,0 , 6) === 'const ') {
$endofConst = $i; $endofConst = $i;
$property = false; $property = false;
} elseif (substr(trim($line),0 , 4) === 'use ') { } elseif (substr($line,0 , 4) === 'use ') {
$endofUse = $i; $endofUse = $i;
$property = false; $property = false;
} elseif (ltrim($line)[0] === '*') { } elseif (!empty($line) && $line[0] === '*') {
$property = false; $property = false;
} elseif (ltrim($line)[0] !== '*' && strpos($line, 'function') !== false || trim($line) === '}') { } elseif (!empty($line) && $line[0] !== '*' && strpos($line, 'function ') !== false || $line === '}') {
break; break;
} }
// check for multi line array // check for multi line array
if ($property !== false && strncmp(trim($line), "'SQLSTATE[", 10) !== 0) { if ($property !== false && strncmp($line, "'SQLSTATE[", 10) !== 0) {
$level += substr_count($line, '[') - substr_count($line, ']'); $level += substr_count($line, '[') - substr_count($line, ']');
} }
} }
......
...@@ -28,8 +28,8 @@ class ApiController extends BaseController ...@@ -28,8 +28,8 @@ class ApiController extends BaseController
*/ */
public $guide; public $guide;
// TODO add force update option
// TODO add force update option
/** /**
* Renders API documentation files * Renders API documentation files
* @param array $sourceDirs * @param array $sourceDirs
......
...@@ -28,6 +28,7 @@ class GuideController extends BaseController ...@@ -28,6 +28,7 @@ class GuideController extends BaseController
*/ */
public $apiDocs; public $apiDocs;
/** /**
* Renders API documentation files * Renders API documentation files
* @param array $sourceDirs * @param array $sourceDirs
......
...@@ -30,6 +30,7 @@ abstract class BaseController extends Controller ...@@ -30,6 +30,7 @@ abstract class BaseController extends Controller
*/ */
public $exclude; public $exclude;
protected function normalizeTargetDir($target) protected function normalizeTargetDir($target)
{ {
$target = rtrim(Yii::getAlias($target), '\\/'); $target = rtrim(Yii::getAlias($target), '\\/');
......
<?php <?php
/** /**
* * @link http://www.yiiframework.com/
* * @copyright Copyright (c) 2008 Yii Software LLC
* @author Carsten Brandt <mail@cebe.cc> * @license http://www.yiiframework.com/license/
*/ */
namespace yii\apidoc\helpers; namespace yii\apidoc\helpers;
use cebe\jssearch\Indexer; use cebe\jssearch\Indexer;
use cebe\jssearch\tokenizer\StandardTokenizer; use cebe\jssearch\tokenizer\StandardTokenizer;
use cebe\jssearch\TokenizerInterface; use cebe\jssearch\TokenizerInterface;
......
...@@ -31,6 +31,7 @@ class ApiMarkdown extends GithubMarkdown ...@@ -31,6 +31,7 @@ class ApiMarkdown extends GithubMarkdown
protected $renderingContext; protected $renderingContext;
/** /**
* Renders a code block * Renders a code block
*/ */
......
...@@ -29,6 +29,7 @@ class ApiMarkdownLaTeX extends GithubMarkdown ...@@ -29,6 +29,7 @@ class ApiMarkdownLaTeX extends GithubMarkdown
protected $renderingContext; protected $renderingContext;
protected function inlineMarkers() protected function inlineMarkers()
{ {
return array_merge(parent::inlineMarkers(), [ return array_merge(parent::inlineMarkers(), [
......
...@@ -17,6 +17,7 @@ class IndexFileAnalyzer extends Markdown ...@@ -17,6 +17,7 @@ class IndexFileAnalyzer extends Markdown
private $_chapter = 0; private $_chapter = 0;
private $_chapters = []; private $_chapters = [];
public function analyze($text) public function analyze($text)
{ {
$this->parse($text); $this->parse($text);
......
...@@ -24,24 +24,21 @@ class BaseDoc extends Object ...@@ -24,24 +24,21 @@ class BaseDoc extends Object
* @var \phpDocumentor\Reflection\DocBlock\Context * @var \phpDocumentor\Reflection\DocBlock\Context
*/ */
public $phpDocContext; public $phpDocContext;
public $name; public $name;
public $sourceFile; public $sourceFile;
public $startLine; public $startLine;
public $endLine; public $endLine;
public $shortDescription; public $shortDescription;
public $description; public $description;
public $since; public $since;
public $deprecatedSince; public $deprecatedSince;
public $deprecatedReason; public $deprecatedReason;
/** /**
* @var \phpDocumentor\Reflection\DocBlock\Tag[] * @var \phpDocumentor\Reflection\DocBlock\Tag[]
*/ */
public $tags = []; public $tags = [];
public function hasTag($name) public function hasTag($name)
{ {
foreach ($this->tags as $tag) { foreach ($this->tags as $tag) {
......
...@@ -18,10 +18,8 @@ namespace yii\apidoc\models; ...@@ -18,10 +18,8 @@ namespace yii\apidoc\models;
class ClassDoc extends TypeDoc class ClassDoc extends TypeDoc
{ {
public $parentClass; public $parentClass;
public $isAbstract; public $isAbstract;
public $isFinal; public $isFinal;
/** /**
* @var string[] * @var string[]
*/ */
...@@ -29,7 +27,6 @@ class ClassDoc extends TypeDoc ...@@ -29,7 +27,6 @@ class ClassDoc extends TypeDoc
public $traits = []; public $traits = [];
// will be set by Context::updateReferences() // will be set by Context::updateReferences()
public $subclasses = []; public $subclasses = [];
/** /**
* @var EventDoc[] * @var EventDoc[]
*/ */
...@@ -39,6 +36,7 @@ class ClassDoc extends TypeDoc ...@@ -39,6 +36,7 @@ class ClassDoc extends TypeDoc
*/ */
public $constants = []; public $constants = [];
public function findSubject($subjectName) public function findSubject($subjectName)
{ {
if (($subject = parent::findSubject($subjectName)) !== null) { if (($subject = parent::findSubject($subjectName)) !== null) {
......
...@@ -18,6 +18,7 @@ class ConstDoc extends BaseDoc ...@@ -18,6 +18,7 @@ class ConstDoc extends BaseDoc
public $definedBy; public $definedBy;
public $value; public $value;
/** /**
* @param \phpDocumentor\Reflection\ClassReflector\ConstantReflector $reflector * @param \phpDocumentor\Reflection\ClassReflector\ConstantReflector $reflector
* @param Context $context * @param Context $context
......
...@@ -33,9 +33,9 @@ class Context extends Component ...@@ -33,9 +33,9 @@ class Context extends Component
* @var TraitDoc[] * @var TraitDoc[]
*/ */
public $traits = []; public $traits = [];
public $errors = []; public $errors = [];
public function getType($type) public function getType($type)
{ {
$type = ltrim($type, '\\'); $type = ltrim($type, '\\');
......
...@@ -20,6 +20,7 @@ class EventDoc extends ConstDoc ...@@ -20,6 +20,7 @@ class EventDoc extends ConstDoc
public $type; public $type;
public $types; public $types;
/** /**
* @param \phpDocumentor\Reflection\ClassReflector\ConstantReflector $reflector * @param \phpDocumentor\Reflection\ClassReflector\ConstantReflector $reflector
* @param Context $context * @param Context $context
......
...@@ -30,6 +30,7 @@ class FunctionDoc extends BaseDoc ...@@ -30,6 +30,7 @@ class FunctionDoc extends BaseDoc
public $returnTypes; public $returnTypes;
public $isReturnByReference; public $isReturnByReference;
/** /**
* @param \phpDocumentor\Reflection\FunctionReflector $reflector * @param \phpDocumentor\Reflection\FunctionReflector $reflector
* @param Context $context * @param Context $context
......
...@@ -16,10 +16,10 @@ namespace yii\apidoc\models; ...@@ -16,10 +16,10 @@ namespace yii\apidoc\models;
class InterfaceDoc extends TypeDoc class InterfaceDoc extends TypeDoc
{ {
public $parentInterfaces = []; public $parentInterfaces = [];
// will be set by Context::updateReferences() // will be set by Context::updateReferences()
public $implementedBy = []; public $implementedBy = [];
/** /**
* @param \phpDocumentor\Reflection\InterfaceReflector $reflector * @param \phpDocumentor\Reflection\InterfaceReflector $reflector
* @param Context $context * @param Context $context
......
...@@ -17,14 +17,12 @@ class MethodDoc extends FunctionDoc ...@@ -17,14 +17,12 @@ class MethodDoc extends FunctionDoc
{ {
public $isAbstract; public $isAbstract;
public $isFinal; public $isFinal;
public $isStatic; public $isStatic;
public $visibility; public $visibility;
// will be set by creating class // will be set by creating class
public $definedBy; public $definedBy;
/** /**
* @param \phpDocumentor\Reflection\ClassReflector\MethodReflector $reflector * @param \phpDocumentor\Reflection\ClassReflector\MethodReflector $reflector
* @param Context $context * @param Context $context
......
...@@ -23,13 +23,13 @@ class ParamDoc extends Object ...@@ -23,13 +23,13 @@ class ParamDoc extends Object
public $isOptional; public $isOptional;
public $defaultValue; public $defaultValue;
public $isPassedByReference; public $isPassedByReference;
// will be set by creating class // will be set by creating class
public $description; public $description;
public $type; public $type;
public $types; public $types;
public $sourceFile; public $sourceFile;
/** /**
* @param \phpDocumentor\Reflection\FunctionReflector\ArgumentReflector $reflector * @param \phpDocumentor\Reflection\FunctionReflector\ArgumentReflector $reflector
* @param Context $context * @param Context $context
......
...@@ -20,18 +20,16 @@ class PropertyDoc extends BaseDoc ...@@ -20,18 +20,16 @@ class PropertyDoc extends BaseDoc
{ {
public $visibility; public $visibility;
public $isStatic; public $isStatic;
public $type; public $type;
public $types; public $types;
public $defaultValue; public $defaultValue;
// will be set by creating class // will be set by creating class
public $getter; public $getter;
public $setter; public $setter;
// will be set by creating class // will be set by creating class
public $definedBy; public $definedBy;
public function getIsReadOnly() public function getIsReadOnly()
{ {
return $this->getter !== null && $this->setter === null; return $this->getter !== null && $this->setter === null;
......
...@@ -18,9 +18,9 @@ class TraitDoc extends TypeDoc ...@@ -18,9 +18,9 @@ class TraitDoc extends TypeDoc
// classes using the trait // classes using the trait
// will be set by Context::updateReferences() // will be set by Context::updateReferences()
public $usedBy = []; public $usedBy = [];
public $traits = []; public $traits = [];
/** /**
* @param \phpDocumentor\Reflection\TraitReflector $reflector * @param \phpDocumentor\Reflection\TraitReflector $reflector
* @param Context $context * @param Context $context
......
...@@ -34,9 +34,9 @@ class TypeDoc extends BaseDoc ...@@ -34,9 +34,9 @@ class TypeDoc extends BaseDoc
* @var PropertyDoc[] * @var PropertyDoc[]
*/ */
public $properties = []; public $properties = [];
public $namespace; public $namespace;
public function findSubject($subjectName) public function findSubject($subjectName)
{ {
if ($subjectName[0] != '$') { if ($subjectName[0] != '$') {
......
...@@ -42,10 +42,10 @@ abstract class BaseRenderer extends Component ...@@ -42,10 +42,10 @@ abstract class BaseRenderer extends Component
* @var Controller the apidoc controller instance. Can be used to control output. * @var Controller the apidoc controller instance. Can be used to control output.
*/ */
public $controller; public $controller;
public $guideUrl; public $guideUrl;
public $guideReferences = []; public $guideReferences = [];
public function init() public function init()
{ {
ApiMarkdown::$renderer = $this; ApiMarkdown::$renderer = $this;
......
...@@ -24,6 +24,7 @@ class ApiRenderer extends \yii\apidoc\templates\html\ApiRenderer ...@@ -24,6 +24,7 @@ class ApiRenderer extends \yii\apidoc\templates\html\ApiRenderer
public $layout = '@yii/apidoc/templates/bootstrap/layouts/api.php'; public $layout = '@yii/apidoc/templates/bootstrap/layouts/api.php';
public $indexView = '@yii/apidoc/templates/bootstrap/views/index.php'; public $indexView = '@yii/apidoc/templates/bootstrap/views/index.php';
/** /**
* @inheritdoc * @inheritdoc
*/ */
......
...@@ -23,6 +23,7 @@ class GuideRenderer extends \yii\apidoc\templates\html\GuideRenderer ...@@ -23,6 +23,7 @@ class GuideRenderer extends \yii\apidoc\templates\html\GuideRenderer
public $layout = '@yii/apidoc/templates/bootstrap/layouts/guide.php'; public $layout = '@yii/apidoc/templates/bootstrap/layouts/guide.php';
/** /**
* @inheritDoc * @inheritDoc
*/ */
......
...@@ -78,6 +78,7 @@ class SideNavWidget extends \yii\bootstrap\Widget ...@@ -78,6 +78,7 @@ class SideNavWidget extends \yii\bootstrap\Widget
*/ */
public $activeUrl; public $activeUrl;
/** /**
* Initializes the widget. * Initializes the widget.
*/ */
......
...@@ -46,12 +46,14 @@ class ApiRenderer extends BaseApiRenderer implements ViewContextInterface ...@@ -46,12 +46,14 @@ class ApiRenderer extends BaseApiRenderer implements ViewContextInterface
* @var string path or alias of the view file to use for rendering the index page. * @var string path or alias of the view file to use for rendering the index page.
*/ */
public $indexView = '@yii/apidoc/templates/html/views/index.php'; public $indexView = '@yii/apidoc/templates/html/views/index.php';
/** /**
* @var View * @var View
*/ */
private $_view; private $_view;
private $_targetDir; private $_targetDir;
public function init() public function init()
{ {
parent::init(); parent::init();
......
...@@ -34,6 +34,7 @@ abstract class GuideRenderer extends BaseGuideRenderer ...@@ -34,6 +34,7 @@ abstract class GuideRenderer extends BaseGuideRenderer
private $_view; private $_view;
private $_targetDir; private $_targetDir;
public function init() public function init()
{ {
parent::init(); parent::init();
......
...@@ -20,9 +20,9 @@ class ApiRenderer extends \yii\apidoc\templates\html\ApiRenderer ...@@ -20,9 +20,9 @@ class ApiRenderer extends \yii\apidoc\templates\html\ApiRenderer
{ {
public $layout = false; public $layout = false;
public $indexView = '@yii/apidoc/templates/online/views/index.php'; public $indexView = '@yii/apidoc/templates/online/views/index.php';
public $pageTitle = 'Yii Framework 2.0 API Documentation'; public $pageTitle = 'Yii Framework 2.0 API Documentation';
/** /**
* @inheritdoc * @inheritdoc
*/ */
......
...@@ -93,6 +93,8 @@ class AuthAction extends Action ...@@ -93,6 +93,8 @@ class AuthAction extends Action
* @var string the redirect url after unsuccessful authorization (e.g. user canceled). * @var string the redirect url after unsuccessful authorization (e.g. user canceled).
*/ */
private $_cancelUrl = ''; private $_cancelUrl = '';
/** /**
* @var string name or alias of the view file, which should be rendered in order to perform redirection. * @var string name or alias of the view file, which should be rendered in order to perform redirection.
* If not set default one will be used. * If not set default one will be used.
......
...@@ -58,6 +58,7 @@ abstract class BaseClient extends Component implements ClientInterface ...@@ -58,6 +58,7 @@ abstract class BaseClient extends Component implements ClientInterface
*/ */
private $_viewOptions; private $_viewOptions;
/** /**
* @param string $id service id. * @param string $id service id.
*/ */
......
...@@ -39,12 +39,6 @@ abstract class BaseOAuth extends BaseClient implements ClientInterface ...@@ -39,12 +39,6 @@ abstract class BaseOAuth extends BaseClient implements ClientInterface
*/ */
public $version = '1.0'; public $version = '1.0';
/** /**
* @var string URL, which user will be redirected after authentication at the OAuth provider web site.
* Note: this should be absolute URL (with http:// or https:// leading).
* By default current URL will be used.
*/
private $_returnUrl;
/**
* @var string API base URL. * @var string API base URL.
*/ */
public $apiBaseUrl; public $apiBaseUrl;
...@@ -56,6 +50,13 @@ abstract class BaseOAuth extends BaseClient implements ClientInterface ...@@ -56,6 +50,13 @@ abstract class BaseOAuth extends BaseClient implements ClientInterface
* @var string auth request scope. * @var string auth request scope.
*/ */
public $scope; public $scope;
/**
* @var string URL, which user will be redirected after authentication at the OAuth provider web site.
* Note: this should be absolute URL (with http:// or https:// leading).
* By default current URL will be used.
*/
private $_returnUrl;
/** /**
* @var array cURL request options. Option values from this field will overwrite corresponding * @var array cURL request options. Option values from this field will overwrite corresponding
* values from [[defaultCurlOptions()]]. * values from [[defaultCurlOptions()]].
...@@ -70,6 +71,7 @@ abstract class BaseOAuth extends BaseClient implements ClientInterface ...@@ -70,6 +71,7 @@ abstract class BaseOAuth extends BaseClient implements ClientInterface
*/ */
private $_signatureMethod = []; private $_signatureMethod = [];
/** /**
* @param string $returnUrl return URL * @param string $returnUrl return URL
*/ */
......
...@@ -47,6 +47,7 @@ class Collection extends Component ...@@ -47,6 +47,7 @@ class Collection extends Component
*/ */
private $_clients = []; private $_clients = [];
/** /**
* @param array $clients list of auth clients * @param array $clients list of auth clients
*/ */
......
...@@ -26,6 +26,7 @@ class InvalidResponseException extends Exception ...@@ -26,6 +26,7 @@ class InvalidResponseException extends Exception
*/ */
public $responseBody = ''; public $responseBody = '';
/** /**
* Constructor. * Constructor.
* @param array $responseHeaders response headers * @param array $responseHeaders response headers
......
...@@ -62,6 +62,7 @@ class OAuth1 extends BaseOAuth ...@@ -62,6 +62,7 @@ class OAuth1 extends BaseOAuth
*/ */
public $accessTokenMethod = 'GET'; public $accessTokenMethod = 'GET';
/** /**
* Fetches the OAuth request token. * Fetches the OAuth request token.
* @param array $params additional request params. * @param array $params additional request params.
......
...@@ -50,6 +50,7 @@ class OAuth2 extends BaseOAuth ...@@ -50,6 +50,7 @@ class OAuth2 extends BaseOAuth
*/ */
public $tokenUrl; public $tokenUrl;
/** /**
* Composes user authorization URL. * Composes user authorization URL.
* @param array $params additional auth GET params. * @param array $params additional auth GET params.
......
...@@ -43,6 +43,8 @@ class OAuthToken extends Object ...@@ -43,6 +43,8 @@ class OAuthToken extends Object
* @var array token parameters. * @var array token parameters.
*/ */
private $_params = []; private $_params = [];
/** /**
* @var integer object creation timestamp. * @var integer object creation timestamp.
*/ */
......
...@@ -68,7 +68,6 @@ class OpenId extends BaseClient implements ClientInterface ...@@ -68,7 +68,6 @@ class OpenId extends BaseClient implements ClientInterface
* ~~~ * ~~~
*/ */
public $optionalAttributes = []; public $optionalAttributes = [];
/** /**
* @var boolean whether to verify the peer's certificate. * @var boolean whether to verify the peer's certificate.
*/ */
...@@ -83,7 +82,6 @@ class OpenId extends BaseClient implements ClientInterface ...@@ -83,7 +82,6 @@ class OpenId extends BaseClient implements ClientInterface
* This value will take effect only if [[verifyPeer]] is set. * This value will take effect only if [[verifyPeer]] is set.
*/ */
public $cainfo; public $cainfo;
/** /**
* @var string authentication return URL. * @var string authentication return URL.
*/ */
...@@ -96,6 +94,8 @@ class OpenId extends BaseClient implements ClientInterface ...@@ -96,6 +94,8 @@ class OpenId extends BaseClient implements ClientInterface
* @var string client trust root (realm), by default [[\yii\web\Request::hostInfo]] value will be used. * @var string client trust root (realm), by default [[\yii\web\Request::hostInfo]] value will be used.
*/ */
private $_trustRoot; private $_trustRoot;
/** /**
* @var array data, which should be used to retrieve the OpenID response. * @var array data, which should be used to retrieve the OpenID response.
* If not set combination of GET and POST will be used. * If not set combination of GET and POST will be used.
......
...@@ -57,6 +57,7 @@ class Facebook extends OAuth2 ...@@ -57,6 +57,7 @@ class Facebook extends OAuth2
*/ */
public $scope = 'email'; public $scope = 'email';
/** /**
* @inheritdoc * @inheritdoc
*/ */
......
...@@ -53,6 +53,7 @@ class GitHub extends OAuth2 ...@@ -53,6 +53,7 @@ class GitHub extends OAuth2
*/ */
public $apiBaseUrl = 'https://api.github.com'; public $apiBaseUrl = 'https://api.github.com';
/** /**
* @inheritdoc * @inheritdoc
*/ */
......
...@@ -55,6 +55,7 @@ class GoogleOAuth extends OAuth2 ...@@ -55,6 +55,7 @@ class GoogleOAuth extends OAuth2
*/ */
public $apiBaseUrl = 'https://www.googleapis.com/plus/v1'; public $apiBaseUrl = 'https://www.googleapis.com/plus/v1';
/** /**
* @inheritdoc * @inheritdoc
*/ */
......
...@@ -48,6 +48,7 @@ class GoogleOpenId extends OpenId ...@@ -48,6 +48,7 @@ class GoogleOpenId extends OpenId
'pref/language', 'pref/language',
]; ];
/** /**
* @inheritdoc * @inheritdoc
*/ */
......
...@@ -56,6 +56,7 @@ class LinkedIn extends OAuth2 ...@@ -56,6 +56,7 @@ class LinkedIn extends OAuth2
*/ */
public $apiBaseUrl = 'https://api.linkedin.com/v1'; public $apiBaseUrl = 'https://api.linkedin.com/v1';
/** /**
* @inheritdoc * @inheritdoc
*/ */
......
...@@ -53,6 +53,7 @@ class Live extends OAuth2 ...@@ -53,6 +53,7 @@ class Live extends OAuth2
*/ */
public $apiBaseUrl = 'https://apis.live.net/v5.0'; public $apiBaseUrl = 'https://apis.live.net/v5.0';
/** /**
* @inheritdoc * @inheritdoc
*/ */
......
...@@ -65,6 +65,7 @@ class Twitter extends OAuth1 ...@@ -65,6 +65,7 @@ class Twitter extends OAuth1
*/ */
public $apiBaseUrl = 'https://api.twitter.com/1.1'; public $apiBaseUrl = 'https://api.twitter.com/1.1';
/** /**
* @inheritdoc * @inheritdoc
*/ */
......
...@@ -53,6 +53,7 @@ class VKontakte extends OAuth2 ...@@ -53,6 +53,7 @@ class VKontakte extends OAuth2
*/ */
public $apiBaseUrl = 'https://api.vk.com/method'; public $apiBaseUrl = 'https://api.vk.com/method';
/** /**
* @inheritdoc * @inheritdoc
*/ */
......
...@@ -53,6 +53,7 @@ class YandexOAuth extends OAuth2 ...@@ -53,6 +53,7 @@ class YandexOAuth extends OAuth2
*/ */
public $apiBaseUrl = 'https://login.yandex.ru'; public $apiBaseUrl = 'https://login.yandex.ru';
/** /**
* @inheritdoc * @inheritdoc
*/ */
......
...@@ -46,6 +46,7 @@ class YandexOpenId extends OpenId ...@@ -46,6 +46,7 @@ class YandexOpenId extends OpenId
'contact/email', 'contact/email',
]; ];
/** /**
* @inheritdoc * @inheritdoc
*/ */
......
...@@ -33,6 +33,8 @@ class RsaSha1 extends BaseMethod ...@@ -33,6 +33,8 @@ class RsaSha1 extends BaseMethod
* This value can be fetched from file specified by [[publicCertificateFile]]. * This value can be fetched from file specified by [[publicCertificateFile]].
*/ */
protected $_publicCertificate; protected $_publicCertificate;
/** /**
* @var string path to the file, which holds private key certificate. * @var string path to the file, which holds private key certificate.
*/ */
......
...@@ -96,6 +96,7 @@ class AuthChoice extends Widget ...@@ -96,6 +96,7 @@ class AuthChoice extends Widget
*/ */
private $_clients; private $_clients;
/** /**
* @param ClientInterface[] $clients auth providers * @param ClientInterface[] $clients auth providers
*/ */
......
...@@ -95,17 +95,14 @@ class ActiveField extends \yii\widgets\ActiveField ...@@ -95,17 +95,14 @@ class ActiveField extends \yii\widgets\ActiveField
* @var bool whether to render [[checkboxList()]] and [[radioList()]] inline. * @var bool whether to render [[checkboxList()]] and [[radioList()]] inline.
*/ */
public $inline = false; public $inline = false;
/** /**
* @var string|null optional template to render the `{input}` placeholder content * @var string|null optional template to render the `{input}` placeholder content
*/ */
public $inputTemplate; public $inputTemplate;
/** /**
* @var array options for the wrapper tag, used in the `{beginWrapper}` placeholder * @var array options for the wrapper tag, used in the `{beginWrapper}` placeholder
*/ */
public $wrapperOptions = []; public $wrapperOptions = [];
/** /**
* @var null|array CSS grid classes for horizontal layout. This must be an array with these keys: * @var null|array CSS grid classes for horizontal layout. This must be an array with these keys:
* - 'offset' the offset grid class to append to the wrapper if no label is rendered * - 'offset' the offset grid class to append to the wrapper if no label is rendered
...@@ -115,47 +112,40 @@ class ActiveField extends \yii\widgets\ActiveField ...@@ -115,47 +112,40 @@ class ActiveField extends \yii\widgets\ActiveField
* - 'hint' the hint grid class * - 'hint' the hint grid class
*/ */
public $horizontalCssClasses; public $horizontalCssClasses;
/** /**
* @var string the template for checkboxes in default layout * @var string the template for checkboxes in default layout
*/ */
public $checkboxTemplate = "<div class=\"checkbox\">\n{beginLabel}\n{input}\n{labelTitle}\n{endLabel}\n{error}\n{hint}\n</div>"; public $checkboxTemplate = "<div class=\"checkbox\">\n{beginLabel}\n{input}\n{labelTitle}\n{endLabel}\n{error}\n{hint}\n</div>";
/** /**
* @var string the template for radios in default layout * @var string the template for radios in default layout
*/ */
public $radioTemplate = "<div class=\"radio\">\n{beginLabel}\n{input}\n{labelTitle}\n{endLabel}\n{error}\n{hint}\n</div>"; public $radioTemplate = "<div class=\"radio\">\n{beginLabel}\n{input}\n{labelTitle}\n{endLabel}\n{error}\n{hint}\n</div>";
/** /**
* @var string the template for checkboxes in horizontal layout * @var string the template for checkboxes in horizontal layout
*/ */
public $horizontalCheckboxTemplate = "{beginWrapper}\n<div class=\"checkbox\">\n{beginLabel}\n{input}\n{labelTitle}\n{endLabel}\n</div>\n{error}\n{endWrapper}\n{hint}"; public $horizontalCheckboxTemplate = "{beginWrapper}\n<div class=\"checkbox\">\n{beginLabel}\n{input}\n{labelTitle}\n{endLabel}\n</div>\n{error}\n{endWrapper}\n{hint}";
/** /**
* @var string the template for radio buttons in horizontal layout * @var string the template for radio buttons in horizontal layout
*/ */
public $horizontalRadioTemplate = "{beginWrapper}\n<div class=\"radio\">\n{beginLabel}\n{input}\n{labelTitle}\n{endLabel}\n</div>\n{error}\n{endWrapper}\n{hint}"; public $horizontalRadioTemplate = "{beginWrapper}\n<div class=\"radio\">\n{beginLabel}\n{input}\n{labelTitle}\n{endLabel}\n</div>\n{error}\n{endWrapper}\n{hint}";
/** /**
* @var string the template for inline checkboxLists * @var string the template for inline checkboxLists
*/ */
public $inlineCheckboxListTemplate = "{label}\n{beginWrapper}\n{input}\n{error}\n{endWrapper}\n{hint}"; public $inlineCheckboxListTemplate = "{label}\n{beginWrapper}\n{input}\n{error}\n{endWrapper}\n{hint}";
/** /**
* @var string the template for inline radioLists * @var string the template for inline radioLists
*/ */
public $inlineRadioListTemplate = "{label}\n{beginWrapper}\n{input}\n{error}\n{endWrapper}\n{hint}"; public $inlineRadioListTemplate = "{label}\n{beginWrapper}\n{input}\n{error}\n{endWrapper}\n{hint}";
/** /**
* @var bool whether to render the error. Default is `true` except for layout `inline`. * @var bool whether to render the error. Default is `true` except for layout `inline`.
*/ */
public $enableError = true; public $enableError = true;
/** /**
* @var bool whether to render the label. Default is `true`. * @var bool whether to render the label. Default is `true`.
*/ */
public $enableLabel = true; public $enableLabel = true;
/** /**
* @inheritdoc * @inheritdoc
*/ */
......
...@@ -69,7 +69,6 @@ class ActiveForm extends \yii\widgets\ActiveForm ...@@ -69,7 +69,6 @@ class ActiveForm extends \yii\widgets\ActiveForm
* @var array HTML attributes for the form tag. Default is `['role' => 'form']`. * @var array HTML attributes for the form tag. Default is `['role' => 'form']`.
*/ */
public $options = ['role' => 'form']; public $options = ['role' => 'form'];
/** /**
* @var string the form layout. Either 'default', 'horizontal' or 'inline'. * @var string the form layout. Either 'default', 'horizontal' or 'inline'.
* By choosing a layout, an appropriate default field configuration is applied. This will * By choosing a layout, an appropriate default field configuration is applied. This will
...@@ -79,6 +78,7 @@ class ActiveForm extends \yii\widgets\ActiveForm ...@@ -79,6 +78,7 @@ class ActiveForm extends \yii\widgets\ActiveForm
*/ */
public $layout = 'default'; public $layout = 'default';
/** /**
* @inheritdoc * @inheritdoc
*/ */
......
...@@ -68,6 +68,7 @@ class Alert extends Widget ...@@ -68,6 +68,7 @@ class Alert extends Widget
*/ */
public $closeButton = []; public $closeButton = [];
/** /**
* Initializes the widget. * Initializes the widget.
*/ */
......
...@@ -39,6 +39,7 @@ class Button extends Widget ...@@ -39,6 +39,7 @@ class Button extends Widget
*/ */
public $encodeLabel = true; public $encodeLabel = true;
/** /**
* Initializes the widget. * Initializes the widget.
* If you override this method, make sure you call the parent implementation first. * If you override this method, make sure you call the parent implementation first.
......
...@@ -59,6 +59,7 @@ class ButtonDropdown extends Widget ...@@ -59,6 +59,7 @@ class ButtonDropdown extends Widget
*/ */
public $encodeLabel = true; public $encodeLabel = true;
/** /**
* Renders the widget. * Renders the widget.
*/ */
......
...@@ -52,6 +52,7 @@ class ButtonGroup extends Widget ...@@ -52,6 +52,7 @@ class ButtonGroup extends Widget
*/ */
public $encodeLabels = true; public $encodeLabels = true;
/** /**
* Initializes the widget. * Initializes the widget.
* If you override this method, make sure you call the parent implementation first. * If you override this method, make sure you call the parent implementation first.
......
...@@ -66,6 +66,7 @@ class Carousel extends Widget ...@@ -66,6 +66,7 @@ class Carousel extends Widget
*/ */
public $items = []; public $items = [];
/** /**
* Initializes the widget. * Initializes the widget.
*/ */
......
...@@ -59,6 +59,7 @@ class Collapse extends Widget ...@@ -59,6 +59,7 @@ class Collapse extends Widget
*/ */
public $items = []; public $items = [];
/** /**
* Initializes the widget. * Initializes the widget.
*/ */
......
...@@ -45,7 +45,8 @@ class Dropdown extends Widget ...@@ -45,7 +45,8 @@ class Dropdown extends Widget
* @see \yii\helpers\Html::renderTagAttributes() for details on how attributes are being rendered. * @see \yii\helpers\Html::renderTagAttributes() for details on how attributes are being rendered.
*/ */
protected $_containerOptions = []; protected $_containerOptions = [];
/** /**
* Initializes the widget. * Initializes the widget.
* If you override this method, make sure you call the parent implementation first. * If you override this method, make sure you call the parent implementation first.
......
...@@ -82,6 +82,7 @@ class Modal extends Widget ...@@ -82,6 +82,7 @@ class Modal extends Widget
*/ */
public $toggleButton; public $toggleButton;
/** /**
* Initializes the widget. * Initializes the widget.
*/ */
......
...@@ -93,6 +93,7 @@ class Nav extends Widget ...@@ -93,6 +93,7 @@ class Nav extends Widget
*/ */
public $params; public $params;
/** /**
* Initializes the widget. * Initializes the widget.
*/ */
......
...@@ -85,6 +85,7 @@ class NavBar extends Widget ...@@ -85,6 +85,7 @@ class NavBar extends Widget
*/ */
public $innerContainerOptions = []; public $innerContainerOptions = [];
/** /**
* Initializes the widget. * Initializes the widget.
*/ */
......
...@@ -89,6 +89,7 @@ class Progress extends Widget ...@@ -89,6 +89,7 @@ class Progress extends Widget
*/ */
public $bars; public $bars;
/** /**
* Initializes the widget. * Initializes the widget.
* If you override this method, make sure you call the parent implementation first. * If you override this method, make sure you call the parent implementation first.
......
...@@ -102,6 +102,7 @@ class Tabs extends Widget ...@@ -102,6 +102,7 @@ class Tabs extends Widget
*/ */
public $navType = 'nav-tabs'; public $navType = 'nav-tabs';
/** /**
* Initializes the widget. * Initializes the widget.
*/ */
......
...@@ -39,6 +39,7 @@ class Widget extends \yii\base\Widget ...@@ -39,6 +39,7 @@ class Widget extends \yii\base\Widget
*/ */
public $clientEvents = []; public $clientEvents = [];
/** /**
* Initializes the widget. * Initializes the widget.
* This method will register the bootstrap asset bundle. If you override this method, * This method will register the bootstrap asset bundle. If you override this method,
......
...@@ -27,11 +27,13 @@ abstract class BasePage extends Component ...@@ -27,11 +27,13 @@ abstract class BasePage extends Component
* the route and the rest of the name-value pairs are treated as GET parameters, e.g. `array('site/page', 'name' => 'about')`. * the route and the rest of the name-value pairs are treated as GET parameters, e.g. `array('site/page', 'name' => 'about')`.
*/ */
public $route; public $route;
/** /**
* @var \Codeception\AbstractGuy the testing guy object * @var \Codeception\AbstractGuy the testing guy object
*/ */
protected $guy; protected $guy;
/** /**
* Constructor. * Constructor.
* *
......
...@@ -33,6 +33,7 @@ class TestCase extends Test ...@@ -33,6 +33,7 @@ class TestCase extends Test
*/ */
public $appConfig = '@tests/unit/_config.php'; public $appConfig = '@tests/unit/_config.php';
/** /**
* Returns the value of an object property. * Returns the value of an object property.
* *
......
...@@ -23,9 +23,9 @@ class Installer extends LibraryInstaller ...@@ -23,9 +23,9 @@ class Installer extends LibraryInstaller
const EXTRA_WRITABLE = 'writable'; const EXTRA_WRITABLE = 'writable';
const EXTRA_EXECUTABLE = 'executable'; const EXTRA_EXECUTABLE = 'executable';
const EXTRA_CONFIG = 'config'; const EXTRA_CONFIG = 'config';
const EXTENSION_FILE = 'yiisoft/extensions.php'; const EXTENSION_FILE = 'yiisoft/extensions.php';
/** /**
* @inheritdoc * @inheritdoc
*/ */
......
...@@ -25,6 +25,7 @@ class LogTarget extends Target ...@@ -25,6 +25,7 @@ class LogTarget extends Target
public $module; public $module;
public $tag; public $tag;
/** /**
* @param \yii\debug\Module $module * @param \yii\debug\Module $module
* @param array $config * @param array $config
......
...@@ -49,6 +49,7 @@ class Panel extends Component ...@@ -49,6 +49,7 @@ class Panel extends Component
*/ */
public $actions = []; public $actions = [];
/** /**
* @return string name of the panel * @return string name of the panel
*/ */
......
...@@ -23,6 +23,7 @@ class Filter extends Component ...@@ -23,6 +23,7 @@ class Filter extends Component
*/ */
protected $rules = []; protected $rules = [];
/** /**
* Adds data filtering rule. * Adds data filtering rule.
* *
......
...@@ -22,6 +22,7 @@ abstract class Base extends Component implements MatcherInterface ...@@ -22,6 +22,7 @@ abstract class Base extends Component implements MatcherInterface
*/ */
protected $baseValue; protected $baseValue;
/** /**
* @inheritdoc * @inheritdoc
*/ */
......
...@@ -20,6 +20,7 @@ class SameAs extends Base ...@@ -20,6 +20,7 @@ class SameAs extends Base
*/ */
public $partial = false; public $partial = false;
/** /**
* @inheritdoc * @inheritdoc
*/ */
......
...@@ -33,6 +33,7 @@ class DefaultController extends Controller ...@@ -33,6 +33,7 @@ class DefaultController extends Controller
*/ */
public $summary; public $summary;
/** /**
* @inheritdoc * @inheritdoc
*/ */
......
...@@ -23,12 +23,12 @@ class Db extends Base ...@@ -23,12 +23,12 @@ class Db extends Base
* @var string type of the input search value * @var string type of the input search value
*/ */
public $type; public $type;
/** /**
* @var integer query attribute input search value * @var integer query attribute input search value
*/ */
public $query; public $query;
/** /**
* @inheritdoc * @inheritdoc
*/ */
......
...@@ -23,47 +23,40 @@ class Debug extends Base ...@@ -23,47 +23,40 @@ class Debug extends Base
* @var string tag attribute input search value * @var string tag attribute input search value
*/ */
public $tag; public $tag;
/** /**
* @var string ip attribute input search value * @var string ip attribute input search value
*/ */
public $ip; public $ip;
/** /**
* @var string method attribute input search value * @var string method attribute input search value
*/ */
public $method; public $method;
/** /**
* @var integer ajax attribute input search value * @var integer ajax attribute input search value
*/ */
public $ajax; public $ajax;
/** /**
* @var string url attribute input search value * @var string url attribute input search value
*/ */
public $url; public $url;
/** /**
* @var string status code attribute input search value * @var string status code attribute input search value
*/ */
public $statusCode; public $statusCode;
/** /**
* @var integer sql count attribute input search value * @var integer sql count attribute input search value
*/ */
public $sqlCount; public $sqlCount;
/** /**
* @var integer total mail count attribute input search value * @var integer total mail count attribute input search value
*/ */
public $mailCount; public $mailCount;
/** /**
* @var array critical codes, used to determine grid row options. * @var array critical codes, used to determine grid row options.
*/ */
public $criticalCodes = [400, 404, 500]; public $criticalCodes = [400, 404, 500];
/** /**
* @inheritdoc * @inheritdoc
*/ */
......
...@@ -23,17 +23,16 @@ class Log extends Base ...@@ -23,17 +23,16 @@ class Log extends Base
* @var string ip attribute input search value * @var string ip attribute input search value
*/ */
public $level; public $level;
/** /**
* @var string method attribute input search value * @var string method attribute input search value
*/ */
public $category; public $category;
/** /**
* @var integer message attribute input search value * @var integer message attribute input search value
*/ */
public $message; public $message;
/** /**
* @inheritdoc * @inheritdoc
*/ */
......
...@@ -22,52 +22,44 @@ class Mail extends Base ...@@ -22,52 +22,44 @@ class Mail extends Base
* @var string from attribute input search value * @var string from attribute input search value
*/ */
public $from; public $from;
/** /**
* @var string to attribute input search value * @var string to attribute input search value
*/ */
public $to; public $to;
/** /**
* @var string reply attribute input search value * @var string reply attribute input search value
*/ */
public $reply; public $reply;
/** /**
* @var string cc attribute input search value * @var string cc attribute input search value
*/ */
public $cc; public $cc;
/** /**
* @var string bcc attribute input search value * @var string bcc attribute input search value
*/ */
public $bcc; public $bcc;
/** /**
* @var string subject attribute input search value * @var string subject attribute input search value
*/ */
public $subject; public $subject;
/** /**
* @var string body attribute input search value * @var string body attribute input search value
*/ */
public $body; public $body;
/** /**
* @var string charset attribute input search value * @var string charset attribute input search value
*/ */
public $charset; public $charset;
/** /**
* @var string headers attribute input search value * @var string headers attribute input search value
*/ */
public $headers; public $headers;
/** /**
* @var string file attribute input search value * @var string file attribute input search value
*/ */
public $file; public $file;
public function rules() public function rules()
{ {
return [ return [
......
...@@ -23,12 +23,12 @@ class Profile extends Base ...@@ -23,12 +23,12 @@ class Profile extends Base
* @var string method attribute input search value * @var string method attribute input search value
*/ */
public $category; public $category;
/** /**
* @var integer info attribute input search value * @var integer info attribute input search value
*/ */
public $info; public $info;
/** /**
* @inheritdoc * @inheritdoc
*/ */
......
...@@ -28,16 +28,17 @@ class DbPanel extends Panel ...@@ -28,16 +28,17 @@ class DbPanel extends Panel
* the execution is considered taking critical number of DB queries. * the execution is considered taking critical number of DB queries.
*/ */
public $criticalQueryThreshold; public $criticalQueryThreshold;
/** /**
* @var array db queries info extracted to array as models, to use with data provider. * @var array db queries info extracted to array as models, to use with data provider.
*/ */
private $_models; private $_models;
/** /**
* @var array current database request timings * @var array current database request timings
*/ */
private $_timings; private $_timings;
/** /**
* @inheritdoc * @inheritdoc
*/ */
......
...@@ -25,6 +25,7 @@ class LogPanel extends Panel ...@@ -25,6 +25,7 @@ class LogPanel extends Panel
*/ */
private $_models; private $_models;
/** /**
* @inheritdoc * @inheritdoc
*/ */
......
...@@ -29,11 +29,13 @@ class MailPanel extends Panel ...@@ -29,11 +29,13 @@ class MailPanel extends Panel
* @var string path where all emails will be saved. should be an alias. * @var string path where all emails will be saved. should be an alias.
*/ */
public $mailPath = '@runtime/debug/mail'; public $mailPath = '@runtime/debug/mail';
/** /**
* @var array current request sent messages * @var array current request sent messages
*/ */
private $_messages = []; private $_messages = [];
/** /**
* @inheritdoc * @inheritdoc
*/ */
......
...@@ -25,6 +25,7 @@ class ProfilingPanel extends Panel ...@@ -25,6 +25,7 @@ class ProfilingPanel extends Panel
*/ */
private $_models; private $_models;
/** /**
* @inheritdoc * @inheritdoc
*/ */
......
...@@ -56,6 +56,7 @@ class ActiveRecord extends BaseActiveRecord ...@@ -56,6 +56,7 @@ class ActiveRecord extends BaseActiveRecord
private $_version; private $_version;
private $_highlight; private $_highlight;
/** /**
* Returns the database connection used by this AR class. * Returns the database connection used by this AR class.
* By default, the "elasticsearch" application component is used as the database connection. * By default, the "elasticsearch" application component is used as the database connection.
......
...@@ -43,9 +43,9 @@ class Command extends Component ...@@ -43,9 +43,9 @@ class Command extends Component
* @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-highlighting.html * @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-highlighting.html
*/ */
public $highlight; public $highlight;
public $options = []; public $options = [];
/** /**
* @param array $options * @param array $options
* @return mixed * @return mixed
......
...@@ -46,7 +46,6 @@ class Connection extends Component ...@@ -46,7 +46,6 @@ class Connection extends Component
* @var array the active node. key of [[nodes]]. Will be randomly selected on [[open()]]. * @var array the active node. key of [[nodes]]. Will be randomly selected on [[open()]].
*/ */
public $activeNode; public $activeNode;
// TODO http://www.elasticsearch.org/guide/en/elasticsearch/client/php-api/current/_configuration.html#_example_configuring_http_basic_auth // TODO http://www.elasticsearch.org/guide/en/elasticsearch/client/php-api/current/_configuration.html#_example_configuring_http_basic_auth
public $auth = []; public $auth = [];
/** /**
...@@ -62,6 +61,7 @@ class Connection extends Component ...@@ -62,6 +61,7 @@ class Connection extends Component
*/ */
public $dataTimeout = null; public $dataTimeout = null;
public function init() public function init()
{ {
foreach ($this->nodes as $node) { foreach ($this->nodes as $node) {
......
...@@ -36,6 +36,7 @@ class DebugAction extends Action ...@@ -36,6 +36,7 @@ class DebugAction extends Action
*/ */
public $controller; public $controller;
public function run($logId, $tag) public function run($logId, $tag)
{ {
$this->controller->loadData($tag); $this->controller->loadData($tag);
......
...@@ -24,6 +24,7 @@ class DebugPanel extends Panel ...@@ -24,6 +24,7 @@ class DebugPanel extends Panel
{ {
public $db = 'elasticsearch'; public $db = 'elasticsearch';
public function init() public function init()
{ {
$this->actions['elasticsearch-query'] = [ $this->actions['elasticsearch-query'] = [
......
...@@ -137,7 +137,6 @@ class Query extends Component implements QueryInterface ...@@ -137,7 +137,6 @@ class Query extends Component implements QueryInterface
* on one or more fields. * on one or more fields.
*/ */
public $highlight; public $highlight;
public $facets = []; public $facets = [];
......
...@@ -24,6 +24,7 @@ class QueryBuilder extends \yii\base\Object ...@@ -24,6 +24,7 @@ class QueryBuilder extends \yii\base\Object
*/ */
public $db; public $db;
/** /**
* Constructor. * Constructor.
* @param Connection $connection the database connection. * @param Connection $connection the database connection.
......
...@@ -164,6 +164,7 @@ class FixtureController extends \yii\console\controllers\FixtureController ...@@ -164,6 +164,7 @@ class FixtureController extends \yii\console\controllers\FixtureController
* More info in [Faker](https://github.com/fzaninotto/Faker.) library docs. * More info in [Faker](https://github.com/fzaninotto/Faker.) library docs.
*/ */
public $providers = []; public $providers = [];
/** /**
* @var \Faker\Generator Faker generator instance * @var \Faker\Generator Faker generator instance
*/ */
......
...@@ -54,6 +54,7 @@ class CodeFile extends Object ...@@ -54,6 +54,7 @@ class CodeFile extends Object
*/ */
public $operation; public $operation;
/** /**
* Constructor. * Constructor.
* @param string $path the file path that the new code should be saved to. * @param string $path the file path that the new code should be saved to.
......
...@@ -58,6 +58,7 @@ abstract class Generator extends Model ...@@ -58,6 +58,7 @@ abstract class Generator extends Model
*/ */
public $messageCategory = 'app'; public $messageCategory = 'app';
/** /**
* @return string name of the code generator * @return string name of the code generator
*/ */
......
...@@ -21,6 +21,7 @@ class ActiveField extends \yii\widgets\ActiveField ...@@ -21,6 +21,7 @@ class ActiveField extends \yii\widgets\ActiveField
*/ */
public $model; public $model;
/** /**
* @inheritdoc * @inheritdoc
*/ */
......
...@@ -27,6 +27,7 @@ class DefaultController extends Controller ...@@ -27,6 +27,7 @@ class DefaultController extends Controller
*/ */
public $generator; public $generator;
public function actionIndex() public function actionIndex()
{ {
$this->layout = 'main'; $this->layout = 'main';
......
...@@ -46,6 +46,7 @@ class Generator extends \yii\gii\Generator ...@@ -46,6 +46,7 @@ class Generator extends \yii\gii\Generator
*/ */
public $actions = 'index'; public $actions = 'index';
/** /**
* @inheritdoc * @inheritdoc
*/ */
......
...@@ -38,6 +38,7 @@ class Generator extends \yii\gii\Generator ...@@ -38,6 +38,7 @@ class Generator extends \yii\gii\Generator
public $indexWidgetType = 'grid'; public $indexWidgetType = 'grid';
public $searchModelClass = ''; public $searchModelClass = '';
/** /**
* @inheritdoc * @inheritdoc
*/ */
......
...@@ -34,6 +34,7 @@ class Generator extends \yii\gii\Generator ...@@ -34,6 +34,7 @@ class Generator extends \yii\gii\Generator
public $authorName; public $authorName;
public $authorEmail; public $authorEmail;
/** /**
* @inheritdoc * @inheritdoc
*/ */
......
<?php <?= "<?php\n" ?>
/**
* This is just an example.
*/
echo "<?php\n";
?>
namespace <?= substr($generator->namespace, 0, -1) ?>; namespace <?= substr($generator->namespace, 0, -1) ?>;
/**
* This is just an example.
*/
class AutoloadExample extends \yii\base\Widget class AutoloadExample extends \yii\base\Widget
{ {
public function run() public function run()
......
...@@ -26,6 +26,7 @@ class Generator extends \yii\gii\Generator ...@@ -26,6 +26,7 @@ class Generator extends \yii\gii\Generator
public $viewName; public $viewName;
public $scenarioName; public $scenarioName;
/** /**
* @inheritdoc * @inheritdoc
*/ */
......
...@@ -32,6 +32,7 @@ class Generator extends \yii\gii\Generator ...@@ -32,6 +32,7 @@ class Generator extends \yii\gii\Generator
public $generateLabelsFromComments = false; public $generateLabelsFromComments = false;
public $useTablePrefix = false; public $useTablePrefix = false;
/** /**
* @inheritdoc * @inheritdoc
*/ */
......
...@@ -26,6 +26,7 @@ class Generator extends \yii\gii\Generator ...@@ -26,6 +26,7 @@ class Generator extends \yii\gii\Generator
public $moduleClass; public $moduleClass;
public $moduleID; public $moduleID;
/** /**
* @inheritdoc * @inheritdoc
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment