Browse Source

Merge pull request #1340 from pmoust/ocd

Removed whitespace etc.. *cringe*
tags/2.0.0-beta
Alexander Makarov 11 years ago
parent
commit
c12683158c
  1. 4
      README.md
  2. 12
      apps/advanced/frontend/widgets/Alert.php
  3. 2
      apps/basic/commands/HelloController.php
  4. 2
      apps/basic/tests/_helpers/CodeHelper.php
  5. 2
      apps/basic/tests/_helpers/TestHelper.php
  6. 2
      apps/basic/tests/_helpers/WebHelper.php
  7. 100
      apps/basic/tests/acceptance/WebGuy.php
  8. 104
      apps/basic/tests/functional/TestGuy.php
  9. 2
      apps/basic/tests/unit/CodeGuy.php
  10. 2
      docs/guide/active-record.md
  11. 2
      docs/guide/authentication.md
  12. 2
      docs/guide/composer.md
  13. BIN
      docs/guide/images/structure.vsd
  14. 2
      docs/guide/installation.md
  15. 4
      docs/guide/model.md
  16. 2
      docs/guide/mvc.md
  17. 2
      docs/guide/security.md
  18. 2
      docs/guide/upgrade-from-v1.md
  19. BIN
      docs/internals/exception_hierarchy.vsd
  20. 6
      framework/yii/assets/jquery.maskedinput.js
  21. 14
      framework/yii/db/pgsql/Schema.php
  22. 4
      framework/yii/web/Request.php
  23. 16
      framework/yii/web/Response.php
  24. BIN
      tests/unit/data/i18n/test.mo
  25. 4
      tests/unit/framework/ar/ActiveRecordTestTrait.php
  26. 2
      tests/unit/framework/base/ExceptionTest.php
  27. 2
      tests/unit/framework/data/ActiveDataProviderTest.php
  28. 4
      tests/unit/framework/web/AssetBundleTest.php
  29. 2
      tests/unit/framework/web/XmlResponseFormatterTest.php

4
README.md

@ -11,7 +11,7 @@ without prior notices. **Yii 2.0 is not ready for production use yet.**
[![Latest Stable Version](https://poser.pugx.org/yiisoft/yii2/v/stable.png)](https://packagist.org/packages/yiisoft/yii2)
[![Total Downloads](https://poser.pugx.org/yiisoft/yii2/downloads.png)](https://packagist.org/packages/yiisoft/yii2)
[![Build Status](https://secure.travis-ci.org/yiisoft/yii2.png)](http://travis-ci.org/yiisoft/yii2)
[![Build Status](https://secure.travis-ci.org/yiisoft/yii2.png)](http://travis-ci.org/yiisoft/yii2)
[![Dependency Status](https://www.versioneye.com/php/yiisoft:yii2/dev-master/badge.png)](https://www.versioneye.com/php/yiisoft:yii2/dev-master)
@ -24,7 +24,7 @@ DIRECTORY STRUCTURE
benchmark/ app demonstrating the minimal overhead introduced by the framework
build/ internally used build tools
docs/ documentation
extensions/ extensions
extensions/ extensions
framework/ framework files
yii/ framework source files
tests/ tests of the core framework code

12
apps/advanced/frontend/widgets/Alert.php

@ -27,13 +27,13 @@ class Alert extends \yii\bootstrap\Widget
* - $value is the bootstrap alert type (i.e. danger, success, info, warning)
*/
public $alertTypes = [
'error' => 'danger',
'danger' => 'danger',
'success' => 'success',
'info' => 'info',
'error' => 'danger',
'danger' => 'danger',
'success' => 'success',
'info' => 'info',
'warning' => 'warning'
];
/**
* @var array the options for rendering the close button tag.
*/
@ -49,7 +49,7 @@ class Alert extends \yii\bootstrap\Widget
foreach ($flashes as $type => $message) {
/* initialize css class for each alert box */
$this->options['class'] = 'alert-' . $this->alertTypes[$type] . $appendCss;
$this->options['class'] = 'alert-' . $this->alertTypes[$type] . $appendCss;
/* assign unique id to each alert box */
$this->options['id'] = $this->getId() . '-' . $type;

2
apps/basic/commands/HelloController.php

@ -13,7 +13,7 @@ use yii\console\Controller;
* This command echoes what the first argument that you have entered.
*
* This command is provided as an example for you to learn how to create console commands.
*
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0
*/

2
apps/basic/tests/_helpers/CodeHelper.php

@ -1,7 +1,7 @@
<?php
namespace Codeception\Module;
// here you can define custom functions for CodeGuy
// here you can define custom functions for CodeGuy
class CodeHelper extends \Codeception\Module
{

2
apps/basic/tests/_helpers/TestHelper.php

@ -1,7 +1,7 @@
<?php
namespace Codeception\Module;
// here you can define custom functions for TestGuy
// here you can define custom functions for TestGuy
class TestHelper extends \Codeception\Module
{

2
apps/basic/tests/_helpers/WebHelper.php

@ -1,7 +1,7 @@
<?php
namespace Codeception\Module;
// here you can define custom functions for WebGuy
// here you can define custom functions for WebGuy
class WebHelper extends \Codeception\Module
{

100
apps/basic/tests/acceptance/WebGuy.php

@ -26,7 +26,7 @@ use Codeception\Module\WebHelper;
class WebGuy extends \Codeception\AbstractGuy
{
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -82,7 +82,7 @@ class WebGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -118,7 +118,7 @@ class WebGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -143,7 +143,7 @@ class WebGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -180,7 +180,7 @@ class WebGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -223,7 +223,7 @@ class WebGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -245,7 +245,7 @@ class WebGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -287,7 +287,7 @@ class WebGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -350,7 +350,7 @@ class WebGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -411,7 +411,7 @@ class WebGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -432,7 +432,7 @@ class WebGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -466,7 +466,7 @@ class WebGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -509,7 +509,7 @@ class WebGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -574,7 +574,7 @@ class WebGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -637,7 +637,7 @@ class WebGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -698,7 +698,7 @@ class WebGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -744,7 +744,7 @@ class WebGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -797,7 +797,7 @@ class WebGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -806,7 +806,7 @@ class WebGuy extends \Codeception\AbstractGuy
* Checks if element does not exist (or is visible) on a page, matching it by CSS or XPath
*
* Example:
*
*
* ``` php
* <?php
* $I->dontSeeElement('.error');
@ -834,7 +834,7 @@ class WebGuy extends \Codeception\AbstractGuy
* Checks if element does not exist (or is visible) on a page, matching it by CSS or XPath
*
* Example:
*
*
* ``` php
* <?php
* $I->dontSeeElement('.error');
@ -854,7 +854,7 @@ class WebGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -873,7 +873,7 @@ class WebGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -892,7 +892,7 @@ class WebGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -911,16 +911,16 @@ class WebGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
* ----------------------------------------------
*
* Fills a text field or textarea with value.
*
*
* Example:
*
*
* ``` php
* <?php
* $I->fillField("//input[@type='text']", "Hello World!");
@ -941,7 +941,7 @@ class WebGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -981,7 +981,7 @@ class WebGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -1011,7 +1011,7 @@ class WebGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -1040,7 +1040,7 @@ class WebGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -1099,7 +1099,7 @@ class WebGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -1152,7 +1152,7 @@ class WebGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -1209,7 +1209,7 @@ class WebGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -1266,7 +1266,7 @@ class WebGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -1321,7 +1321,7 @@ class WebGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -1376,7 +1376,7 @@ class WebGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -1419,7 +1419,7 @@ class WebGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -1462,7 +1462,7 @@ class WebGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -1485,7 +1485,7 @@ class WebGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -1507,7 +1507,7 @@ class WebGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -1529,7 +1529,7 @@ class WebGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -1560,7 +1560,7 @@ class WebGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -1591,7 +1591,7 @@ class WebGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -1648,7 +1648,7 @@ class WebGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -1705,7 +1705,7 @@ class WebGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -1774,7 +1774,7 @@ class WebGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -1841,7 +1841,7 @@ class WebGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -1874,7 +1874,7 @@ class WebGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -1907,7 +1907,7 @@ class WebGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -1962,7 +1962,7 @@ class WebGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.

104
apps/basic/tests/functional/TestGuy.php

@ -27,7 +27,7 @@ use Codeception\Module\Yii2;
class TestGuy extends \Codeception\AbstractGuy
{
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -49,7 +49,7 @@ class TestGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -79,7 +79,7 @@ class TestGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -106,7 +106,7 @@ class TestGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -133,7 +133,7 @@ class TestGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -161,7 +161,7 @@ class TestGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -220,7 +220,7 @@ class TestGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -281,7 +281,7 @@ class TestGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -336,7 +336,7 @@ class TestGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -355,7 +355,7 @@ class TestGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -412,7 +412,7 @@ class TestGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -439,13 +439,13 @@ class TestGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
* ----------------------------------------------
*
* Authenticates user for HTTP_AUTH
* Authenticates user for HTTP_AUTH
*
* @param $username
* @param $password
@ -461,7 +461,7 @@ class TestGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -494,7 +494,7 @@ class TestGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -540,7 +540,7 @@ class TestGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -605,7 +605,7 @@ class TestGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -670,7 +670,7 @@ class TestGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -733,7 +733,7 @@ class TestGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -794,7 +794,7 @@ class TestGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -853,7 +853,7 @@ class TestGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -906,7 +906,7 @@ class TestGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -963,7 +963,7 @@ class TestGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -1020,7 +1020,7 @@ class TestGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -1075,7 +1075,7 @@ class TestGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -1130,7 +1130,7 @@ class TestGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -1161,7 +1161,7 @@ class TestGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -1224,7 +1224,7 @@ class TestGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -1285,7 +1285,7 @@ class TestGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -1354,7 +1354,7 @@ class TestGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -1421,7 +1421,7 @@ class TestGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -1477,16 +1477,16 @@ class TestGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
* ----------------------------------------------
*
* Fills a text field or textarea with value.
*
*
* Example:
*
*
* ``` php
* <?php
* $I->fillField("//input[@type='text']", "Hello World!");
@ -1507,7 +1507,7 @@ class TestGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -1547,7 +1547,7 @@ class TestGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -1577,7 +1577,7 @@ class TestGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -1606,7 +1606,7 @@ class TestGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -1637,7 +1637,7 @@ class TestGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -1662,7 +1662,7 @@ class TestGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -1698,7 +1698,7 @@ class TestGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -1731,7 +1731,7 @@ class TestGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -1764,7 +1764,7 @@ class TestGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -1817,7 +1817,7 @@ class TestGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -1826,7 +1826,7 @@ class TestGuy extends \Codeception\AbstractGuy
* Checks if element does not exist (or is visible) on a page, matching it by CSS or XPath
*
* Example:
*
*
* ``` php
* <?php
* $I->dontSeeElement('.error');
@ -1854,7 +1854,7 @@ class TestGuy extends \Codeception\AbstractGuy
* Checks if element does not exist (or is visible) on a page, matching it by CSS or XPath
*
* Example:
*
*
* ``` php
* <?php
* $I->dontSeeElement('.error');
@ -1874,7 +1874,7 @@ class TestGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -1931,7 +1931,7 @@ class TestGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -1988,7 +1988,7 @@ class TestGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -2025,7 +2025,7 @@ class TestGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -2068,7 +2068,7 @@ class TestGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.
@ -2123,7 +2123,7 @@ class TestGuy extends \Codeception\AbstractGuy
return new Maybe();
}
/**
* This method is generated.
* Documentation taken from corresponding module.

2
apps/basic/tests/unit/CodeGuy.php

@ -25,6 +25,6 @@ use Codeception\Module\CodeHelper;
class CodeGuy extends \Codeception\AbstractGuy
{
}

2
docs/guide/active-record.md

@ -3,7 +3,7 @@ Active Record
Active Record implements the [Active Record design pattern](http://en.wikipedia.org/wiki/Active_record).
The premise behind Active Record is that an individual [[ActiveRecord]] object is associated with a specific row in a database table. The object's attributes are mapped to the columns of the corresponding table. Referencing an Active Record attribute is equivalent to accessing
the corresponding table column for that record.
the corresponding table column for that record.
As an example, say that the `Customer` ActiveRecord class is associated with the
`tbl_customer` table. This would mean that the class's `name` attribute is automatically mapped to the `name` column in `tbl_customer`.

2
docs/guide/authentication.md

@ -3,7 +3,7 @@ Authentication
Authentication is the act of verifying who a user is, and is the basis of the login process. Typically, authentication uses an identifier--a username or email address--and password, submitted through a form. The application then compares this information against that previously stored.
In Yii all this is done semi-automatically, leaving the developer to merely implement [[\yii\web\IdentityInterface]]. Typically, implementation is accomplished using the `User` model. You can find a full featured example in the
In Yii all this is done semi-automatically, leaving the developer to merely implement [[\yii\web\IdentityInterface]]. Typically, implementation is accomplished using the `User` model. You can find a full featured example in the
[advanced application template](installation.md). Below only the interface methods are listed:
```php

2
docs/guide/composer.md

@ -9,7 +9,7 @@ Installing Composer
In order to install Composer, check the official guide for your operating system:
* [Linux](http://getcomposer.org/doc/00-intro.md#installation-nix)
* [Linux](http://getcomposer.org/doc/00-intro.md#installation-nix)
* [Windows](http://getcomposer.org/doc/00-intro.md#installation-windows)
All of the details can be found in the guide, but you'll either download Composer directly from [http://getcomposer.org/](http://getcomposer.org/), or run the following command:

BIN
docs/guide/images/structure.vsd

Binary file not shown.

2
docs/guide/installation.md

@ -19,7 +19,7 @@ curl -s http://getcomposer.org/installer | php
For problems or more information, see the official Composer guide:
* [Linux](http://getcomposer.org/doc/00-intro.md#installation-nix)
* [Linux](http://getcomposer.org/doc/00-intro.md#installation-nix)
* [Windows](http://getcomposer.org/doc/00-intro.md#installation-windows)
With Composer installed, you can create a new Yii site using one of Yii's ready-to-use application templates.

4
docs/guide/model.md

@ -59,7 +59,7 @@ Attribute Labels
----------------
Attribute labels are mainly used for display purpose. For example, given an attribute `firstName`, we can declare
a label `First Name` that is more user-friendly when displayed to end users in places such as form labels and
a label `First Name` that is more user-friendly when displayed to end users in places such as form labels and
error messages. Given an attribute name, you can obtain its label by calling [[\yii\base\Model::getAttributeLabel()]].
To declare attribute labels, override the [[\yii\base\Model::attributeLabels()]] method. The overridden method returns a mapping of attribute names to attribute labels, as shown in the example below. If an attribute is not found
@ -86,7 +86,7 @@ Scenarios
---------
A model may be used in different *scenarios*. For example, a `User` model may be used to collect user login inputs,
but it may also be used for user registration purposes. In the one scenario, every piece of data is required; in the other, only the username and password would be.
but it may also be used for user registration purposes. In the one scenario, every piece of data is required; in the other, only the username and password would be.
To easily implement the business logic for different scenarios, each model has a property named `scenario`
that stores the name of the scenario that the model is currently being used in. As will be explained in the next

2
docs/guide/mvc.md

@ -3,7 +3,7 @@ MVC Overview
Yii implements the model-view-controller (MVC) design pattern, which is
widely adopted in web and other application programming. MVC aims to separate business logic from
user interface considerations, allowing developers to more easily change individual components of an application without affecting, or even touching, another.
user interface considerations, allowing developers to more easily change individual components of an application without affecting, or even touching, another.
In MVC, the *model* represents the
information (the data) and the business rules to which the data must adhere. The *view* contains elements

2
docs/guide/security.md

@ -1,7 +1,7 @@
Security
========
Good security is vital to the health and success of many websites. Unfortunately, many developers may cut corners when it comes to security due to a lack of understanding or too large of an implementation hurdle. To make your Yii-based site as secure as possible, the Yii framework has baked in several excellent, and easy to use, security features.
Good security is vital to the health and success of many websites. Unfortunately, many developers may cut corners when it comes to security due to a lack of understanding or too large of an implementation hurdle. To make your Yii-based site as secure as possible, the Yii framework has baked in several excellent, and easy to use, security features.
Hashing and verifying passwords
-------------------------------

2
docs/guide/upgrade-from-v1.md

@ -135,7 +135,7 @@ Path alias is also closely related with class namespaces. It is recommended that
alias be defined for each root namespace so that you can use Yii the class autoloader without
any further configuration. For example, because `@yii` refers to the Yii installation directory,
a class like `yii\web\Request` can be autoloaded by Yii. If you use a third party library
such as Zend Framework, you may define a path alias `@Zend` which refers to its installation
such as Zend Framework, you may define a path alias `@Zend` which refers to its installation
directory and Yii will be able to autoload any class in this library.
More on path aliases can be found in the [Basic concepts section](basics.md).

BIN
docs/internals/exception_hierarchy.vsd

Binary file not shown.

6
framework/yii/assets/jquery.maskedinput.js

@ -9,7 +9,7 @@
var el = document.createElement('input'),
name = 'onpaste';
el.setAttribute(name, '');
return (typeof el[name] === 'function')?'paste':'input';
return (typeof el[name] === 'function')?'paste':'input';
}
var pasteEventName = getPasteEvent() + ".mask",
@ -322,9 +322,9 @@ $.fn.extend({
.bind("keydown.mask", keydownEvent)
.bind("keypress.mask", keypressEvent)
.bind(pasteEventName, function() {
setTimeout(function() {
setTimeout(function() {
var pos=checkVal(true);
input.caret(pos);
input.caret(pos);
if (settings.completed && pos == input.val().length)
settings.completed.call(input);
}, 0);

14
framework/yii/db/pgsql/Schema.php

@ -196,13 +196,13 @@ EOD;
//http://www.postgresql.org/message-id/26677.1086673982@sss.pgh.pa.us
$sql = <<<SQL
select
select
(select string_agg(attname,',') attname from pg_attribute where attrelid=ct.conrelid and attnum = any(ct.conkey)) as columns,
fc.relname as foreign_table_name,
fns.nspname as foreign_table_schema,
(select string_agg(attname,',') attname from pg_attribute where attrelid=ct.confrelid and attnum = any(ct.confkey)) as foreign_columns
from
pg_constraint ct
pg_constraint ct
inner join pg_class c on c.oid=ct.conrelid
inner join pg_namespace ns on c.relnamespace=ns.oid
left join pg_class fc on fc.oid=ct.confrelid
@ -241,7 +241,7 @@ SQL;
$tableName = $this->db->quoteValue($table->name);
$schemaName = $this->db->quoteValue($table->schemaName);
$sql = <<<SQL
SELECT
SELECT
d.nspname AS table_schema,
c.relname AS table_name,
a.attname AS column_name,
@ -266,11 +266,11 @@ SELECT
WHEN 701 /*float8*/ THEN 53 /*DBL_MANT_DIG*/
ELSE null
END AS numeric_precision,
CASE
CASE
WHEN atttypid IN (21, 23, 20) THEN 0
WHEN atttypid IN (1700) THEN
CASE
WHEN atttypmod = -1 THEN null
WHEN atttypid IN (1700) THEN
CASE
WHEN atttypmod = -1 THEN null
ELSE (atttypmod - 4) & 65535
END
ELSE null

4
framework/yii/web/Request.php

@ -174,7 +174,7 @@ class Request extends \yii\base\Request
{
return $this->getMethod() === 'OPTIONS';
}
/**
* Returns whether this is a HEAD request.
* @return boolean whether this is a HEAD request.
@ -183,7 +183,7 @@ class Request extends \yii\base\Request
{
return $this->getMethod() === 'HEAD';
}
/**
* Returns whether this is a POST request.
* @return boolean whether this is a POST request.

16
framework/yii/web/Response.php

@ -513,8 +513,8 @@ class Response extends \yii\base\Response
* specified by that header using web server internals including all optimizations like caching-headers.
*
* As this header directive is non-standard different directives exists for different web servers applications:
*
* - Apache: [X-Sendfile](http://tn123.org/mod_xsendfile)
*
* - Apache: [X-Sendfile](http://tn123.org/mod_xsendfile)
* - Lighttpd v1.4: [X-LIGHTTPD-send-file](http://redmine.lighttpd.net/projects/lighttpd/wiki/X-LIGHTTPD-send-file)
* - Lighttpd v1.5: [X-Sendfile](http://redmine.lighttpd.net/projects/lighttpd/wiki/X-LIGHTTPD-send-file)
* - Nginx: [X-Accel-Redirect](http://wiki.nginx.org/XSendfile)
@ -524,23 +524,23 @@ class Response extends \yii\base\Response
* a proper xHeader should be sent.
*
* **Note**
*
* This option allows to download files that are not under web folders, and even files that are otherwise protected
*
* This option allows to download files that are not under web folders, and even files that are otherwise protected
* (deny from all) like `.htaccess`.
*
* **Side effects**
*
*
* If this option is disabled by the web server, when this method is called a download configuration dialog
* will open but the downloaded file will have 0 bytes.
*
* **Known issues**
*
*
* There is a Bug with Internet Explorer 6, 7 and 8 when X-SENDFILE is used over an SSL connection, it will show
* an error message like this: "Internet Explorer was not able to open this Internet site. The requested site
* an error message like this: "Internet Explorer was not able to open this Internet site. The requested site
* is either unavailable or cannot be found.". You can work around this problem by removing the `Pragma`-header.
*
* **Example**
*
*
* ~~~
* Yii::$app->request->xSendFile('/home/user/Pictures/picture1.jpg');
* ~~~

BIN
tests/unit/data/i18n/test.mo

Binary file not shown.

4
tests/unit/framework/ar/ActiveRecordTestTrait.php

@ -1,7 +1,7 @@
<?php
/**
*
*
*
*
* @author Carsten Brandt <mail@cebe.cc>
*/

2
tests/unit/framework/base/ExceptionTest.php

@ -8,7 +8,7 @@ use yii\base\InvalidCallException;
class ExceptionTest extends TestCase
{
public function testToArrayWithPrevious()
public function testToArrayWithPrevious()
{
$e = new InvalidCallException('bar', 0 ,new InvalidCallException('foo'));
$array = $e->toArray();

2
tests/unit/framework/data/ActiveDataProviderTest.php

@ -160,7 +160,7 @@ class ActiveDataProviderTest extends DatabaseTestCase
$this->assertEquals(2, count($provider->getModels()));
}
public function testPaginationBeforeModels()
public function testPaginationBeforeModels()
{
$query = new Query;
$provider = new ActiveDataProvider([

4
tests/unit/framework/web/AssetBundleTest.php

@ -1,7 +1,7 @@
<?php
/**
*
*
*
*
* @author Carsten Brandt <mail@cebe.cc>
*/

2
tests/unit/framework/web/XmlResponseFormatterTest.php

@ -48,7 +48,7 @@ class XmlResponseFormatterTest extends \yiiunit\TestCase
}
/**
* @param mixed $data the data to be formatted
* @param mixed $data the data to be formatted
* @param string $xml the expected XML body
* @dataProvider formatScalarDataProvider
*/

Loading…
Cancel
Save