Skip to content

Commit

Permalink
Fixes yiisoft#3793: Changed inline autocomplete hints style to get mo…
Browse files Browse the repository at this point in the history
…re IDEs support
  • Loading branch information
samdark committed Jun 20, 2014
1 parent 0ab4da0 commit 0c14f47
Show file tree
Hide file tree
Showing 186 changed files with 641 additions and 818 deletions.
7 changes: 3 additions & 4 deletions apps/advanced/backend/views/layouts/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@
use yii\bootstrap\NavBar;
use yii\widgets\Breadcrumbs;

/**
* @var \yii\web\View $this
* @var string $content
*/
/* @var $this \yii\web\View */
/* @var $content string */

AppAsset::register($this);
?>
<?php $this->beginPage() ?>
Expand Down
10 changes: 4 additions & 6 deletions apps/advanced/backend/views/site/error.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@

use yii\helpers\Html;

/**
* @var yii\web\View $this
* @var string $name
* @var string $message
* @var Exception $exception
*/
/* @var $this yii\web\View */
/* @var $name string */
/* @var $message string */
/* @var $exception Exception */

$this->title = $name;
?>
Expand Down
5 changes: 2 additions & 3 deletions apps/advanced/backend/views/site/index.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php
/**
* @var yii\web\View $this
*/
/* @var $this yii\web\View */

$this->title = 'My Yii Application';
?>
<div class="site-index">
Expand Down
9 changes: 4 additions & 5 deletions apps/advanced/backend/views/site/login.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
use yii\helpers\Html;
use yii\widgets\ActiveForm;

/**
* @var yii\web\View $this
* @var yii\widgets\ActiveForm $form
* @var \common\models\LoginForm $model
*/
/* @var $this yii\web\View */
/* @var $form yii\widgets\ActiveForm */
/* @var $model \common\models\LoginForm */

$this->title = 'Login';
$this->params['breadcrumbs'][] = $this->title;
?>
Expand Down
7 changes: 3 additions & 4 deletions apps/advanced/common/mail/layouts/html.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<?php
use yii\helpers\Html;

/**
* @var \yii\web\View $this
* @var string $content
*/
/* @var $this \yii\web\View */
/* @var $content string */

?>
<?php $this->beginPage() ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Expand Down
6 changes: 2 additions & 4 deletions apps/advanced/common/mail/passwordResetToken.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
<?php
use yii\helpers\Html;

/**
* @var yii\web\View $this
* @var common\models\User $user
*/
/* @var $this yii\web\View */
/* @var $user common\models\User */

$resetLink = Yii::$app->urlManager->createAbsoluteUrl(['site/reset-password', 'token' => $user->password_reset_token]);
?>
Expand Down
2 changes: 1 addition & 1 deletion apps/advanced/frontend/models/PasswordResetRequestForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function rules()
*/
public function sendEmail()
{
/** @var User $user */
/* @var $user User */
$user = User::findOne([
'status' => User::STATUS_ACTIVE,
'email' => $this->email,
Expand Down
7 changes: 3 additions & 4 deletions apps/advanced/frontend/views/layouts/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@
use frontend\assets\AppAsset;
use frontend\widgets\Alert;

/**
* @var \yii\web\View $this
* @var string $content
*/
/* @var $this \yii\web\View */
/* @var $content string */

AppAsset::register($this);
?>
<?php $this->beginPage() ?>
Expand Down
4 changes: 1 addition & 3 deletions apps/advanced/frontend/views/site/about.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
<?php
use yii\helpers\Html;

/**
* @var yii\web\View $this
*/
/* @var $this yii\web\View */
$this->title = 'About';
$this->params['breadcrumbs'][] = $this->title;
?>
Expand Down
9 changes: 4 additions & 5 deletions apps/advanced/frontend/views/site/contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
use yii\widgets\ActiveForm;
use yii\captcha\Captcha;

/**
* @var yii\web\View $this
* @var yii\widgets\ActiveForm $form
* @var \frontend\models\ContactForm $model
*/
/* @var $this yii\web\View */
/* @var $form yii\widgets\ActiveForm */
/* @var $model \frontend\models\ContactForm */

$this->title = 'Contact';
$this->params['breadcrumbs'][] = $this->title;
?>
Expand Down
10 changes: 4 additions & 6 deletions apps/advanced/frontend/views/site/error.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@

use yii\helpers\Html;

/**
* @var yii\web\View $this
* @var string $name
* @var string $message
* @var Exception $exception
*/
/* @var $this yii\web\View */
/* @var $name string */
/* @var $message string */
/* @var $exception Exception */

$this->title = $name;
?>
Expand Down
4 changes: 1 addition & 3 deletions apps/advanced/frontend/views/site/index.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php
/**
* @var yii\web\View $this
*/
/* @var $this yii\web\View */
$this->title = 'My Yii Application';
?>
<div class="site-index">
Expand Down
9 changes: 4 additions & 5 deletions apps/advanced/frontend/views/site/login.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
use yii\helpers\Html;
use yii\widgets\ActiveForm;

/**
* @var yii\web\View $this
* @var yii\widgets\ActiveForm $form
* @var \common\models\LoginForm $model
*/
/* @var $this yii\web\View */
/* @var $form yii\widgets\ActiveForm */
/* @var $model \common\models\LoginForm */

$this->title = 'Login';
$this->params['breadcrumbs'][] = $this->title;
?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
use yii\helpers\Html;
use yii\widgets\ActiveForm;

/**
* @var yii\web\View $this
* @var yii\widgets\ActiveForm $form
* @var \frontend\models\PasswordResetRequestForm $model
*/
/* @var $this yii\web\View */
/* @var $form yii\widgets\ActiveForm */
/* @var $model \frontend\models\PasswordResetRequestForm */

$this->title = 'Request password reset';
$this->params['breadcrumbs'][] = $this->title;
?>
Expand Down
9 changes: 4 additions & 5 deletions apps/advanced/frontend/views/site/resetPassword.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
use yii\helpers\Html;
use yii\widgets\ActiveForm;

/**
* @var yii\web\View $this
* @var yii\widgets\ActiveForm $form
* @var \frontend\models\ResetPasswordForm $model
*/
/* @var $this yii\web\View */
/* @var $form yii\widgets\ActiveForm */
/* @var $model \frontend\models\ResetPasswordForm */

$this->title = 'Reset password';
$this->params['breadcrumbs'][] = $this->title;
?>
Expand Down
9 changes: 4 additions & 5 deletions apps/advanced/frontend/views/site/signup.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
use yii\helpers\Html;
use yii\widgets\ActiveForm;

/**
* @var yii\web\View $this
* @var yii\widgets\ActiveForm $form
* @var \frontend\models\SignupForm $model
*/
/* @var $this yii\web\View */
/* @var $form yii\widgets\ActiveForm */
/* @var $model \frontend\models\SignupForm */

$this->title = 'Signup';
$this->params['breadcrumbs'][] = $this->title;
?>
Expand Down
7 changes: 3 additions & 4 deletions apps/basic/mail/layouts/html.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<?php
use yii\helpers\Html;

/**
* @var \yii\web\View $this
* @var string $content
*/
/* @var $this \yii\web\View */
/* @var $content string */

?>
<?php $this->beginPage() ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Expand Down
7 changes: 3 additions & 4 deletions apps/basic/views/layouts/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@
use yii\widgets\Breadcrumbs;
use app\assets\AppAsset;

/**
* @var \yii\web\View $this
* @var string $content
*/
/* @var $this \yii\web\View */
/* @var $content string */

AppAsset::register($this);
?>
<?php $this->beginPage() ?>
Expand Down
4 changes: 1 addition & 3 deletions apps/basic/views/site/about.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
<?php
use yii\helpers\Html;

/**
* @var yii\web\View $this
*/
/* @var $this yii\web\View */
$this->title = 'About';
$this->params['breadcrumbs'][] = $this->title;
?>
Expand Down
9 changes: 4 additions & 5 deletions apps/basic/views/site/contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
use yii\widgets\ActiveForm;
use yii\captcha\Captcha;

/**
* @var yii\web\View $this
* @var yii\widgets\ActiveForm $form
* @var app\models\ContactForm $model
*/
/* @var $this yii\web\View */
/* @var $form yii\widgets\ActiveForm */
/* @var $model app\models\ContactForm */

$this->title = 'Contact';
$this->params['breadcrumbs'][] = $this->title;
?>
Expand Down
10 changes: 4 additions & 6 deletions apps/basic/views/site/error.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@

use yii\helpers\Html;

/**
* @var yii\web\View $this
* @var string $name
* @var string $message
* @var Exception $exception
*/
/* @var $this yii\web\View */
/* @var $name string */
/* @var $message string */
/* @var $exception Exception */

$this->title = $name;
?>
Expand Down
4 changes: 1 addition & 3 deletions apps/basic/views/site/index.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php
/**
* @var yii\web\View $this
*/
/* @var $this yii\web\View */
$this->title = 'My Yii Application';
?>
<div class="site-index">
Expand Down
9 changes: 4 additions & 5 deletions apps/basic/views/site/login.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
use yii\helpers\Html;
use yii\widgets\ActiveForm;

/**
* @var yii\web\View $this
* @var yii\widgets\ActiveForm $form
* @var app\models\LoginForm $model
*/
/* @var $this yii\web\View */
/* @var $form yii\widgets\ActiveForm */
/* @var $model app\models\LoginForm */

$this->title = 'Login';
$this->params['breadcrumbs'][] = $this->title;
?>
Expand Down
4 changes: 2 additions & 2 deletions build/controllers/TranslationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function actionReport($sourcePath, $translationPath, $title = 'Translatio

$dir = new DirectoryIterator($sourcePath);
foreach ($dir as $fileinfo) {
/** @var DirectoryIterator $fileinfo */
/* @var $fileinfo DirectoryIterator */
if (!$fileinfo->isDot() && !$fileinfo->isDir()) {
$translatedFilePath = $translationPath . '/' . $fileinfo->getFilename();
$sourceFilePath = $sourcePath . '/' . $fileinfo->getFilename();
Expand All @@ -63,7 +63,7 @@ public function actionReport($sourcePath, $translationPath, $title = 'Translatio
// checking if there are obsolete translation files
$dir = new DirectoryIterator($translationPath);
foreach ($dir as $fileinfo) {
/** @var \DirectoryIterator $fileinfo */
/* @var $fileinfo \DirectoryIterator */
if (!$fileinfo->isDot() && !$fileinfo->isDir()) {
$translatedFilePath = $translationPath . '/' . $fileinfo->getFilename();

Expand Down
16 changes: 7 additions & 9 deletions docs/guide/structure-views.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@ page title and the form, while HTML code organizes them into a presentable HTML
use yii\helpers\Html;
use yii\widgets\ActiveForm;

/**
* @var yii\web\View $this
* @var yii\widgets\ActiveForm $form
* @var app\models\LoginForm $model
*/
/* @var $this yii\web\View */
/* @var $form yii\widgets\ActiveForm */
/* @var $model app\models\LoginForm */

$this->title = 'Login';
?>
<h1><?= Html::encode($this->title) ?></h1>
Expand Down Expand Up @@ -323,10 +322,9 @@ the code in the layout. In practice, you may want to add more content to it, suc
```php
<?php
use yii\helpers\Html;
/**
* @var yii\web\View $this
* @var string $content
*/

/* @var $this yii\web\View */
/* @var $content string */
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
Expand Down
14 changes: 6 additions & 8 deletions docs/guide/tutorial-mailing.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ Example mail view file content:
use yii\helpers\Html;
use yii\helpers\Url;

/**
* @var \yii\web\View $this view component instance
* @var \yii\mail\BaseMessage $message instance of newly created mail message
*/

/* @var $this \yii\web\View view component instance */
/* @var $message \yii\mail\BaseMessage instance of newly created mail message */

?>
<h2>This message allows you to visit out site home page by one click</h2>
<?= Html::a('Go to home page', Url::home('http')) ?>
Expand Down Expand Up @@ -140,10 +140,8 @@ Layout can be used to setup mail CSS styles or other shared content:
<?php
use yii\helpers\Html;

/**
* @var \yii\web\View $this view component instance
* @var string $content main view render result
*/
/* @var $this \yii\web\View view component instance */
/* @var $content string main view render result */
?>
<?php $this->beginPage() ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Expand Down
Loading

0 comments on commit 0c14f47

Please sign in to comment.