Commit Graph

95 Commits

Author SHA1 Message Date
Carsten Brandt
1b7e1cd027 Merge pull request #2605 branch 'feature' of https://github.com/mongosoft/yii2 into code-style
* 'feature' of https://github.com/mongosoft/yii2:
  returned back formatting language files
  code style. WHILE
  code style. FOR
  code style. FOREACH
  code style. operator IF
  @param, @var, @property and @return must declare types as boolean, integer, string, array or null
  short echo tags
  short array syntax

Conflicts:
	extensions/apidoc/commands/RenderController.php
	extensions/apidoc/models/BaseDoc.php
	extensions/apidoc/models/Context.php
	extensions/apidoc/templates/bootstrap/Renderer.php
	extensions/apidoc/templates/bootstrap/layouts/guide.php
	extensions/apidoc/templates/bootstrap/layouts/main.php
	extensions/apidoc/templates/bootstrap/views/index.php
	extensions/apidoc/templates/html/Renderer.php
	extensions/apidoc/templates/offline/views/index.php
	extensions/apidoc/templates/offline/views/offline.php
	extensions/apidoc/templates/online/views/index.php
	extensions/elasticsearch/Connection.php
	extensions/redis/ActiveQuery.php
	framework/base/ErrorException.php
	framework/helpers/BaseFileHelper.php
	tests/unit/framework/helpers/FileHelperTest.php
2014-03-07 21:54:44 +01:00
Alexander Makarov
71835d977e More short syntax for arrays 2014-03-07 02:03:23 +04:00
Alexander Mohorev
95ea1c20bb code style. FOREACH 2014-03-03 21:47:47 +03:00
Alexander Mohorev
6e7edfdf5b short array syntax 2014-03-03 20:21:55 +03:00
Qiang Xue
04bf51b01a Fixes #2392: Added addCssStyle(), removeCssStyle(), cssStyleFromArray() and cssStyleToArray() to Html 2014-02-23 19:12:33 -05:00
John Was
b2b10d1685 more unit tests for helpers/FileHelper::findFiles using new wildcard exceptions matching 2014-01-26 15:02:26 +01:00
Qiang Xue
9e66e08bc7 Fixes #802: Added support for retrieving sub-array element or child object property through ArrayHelper::getValue() 2013-12-31 11:30:44 -05:00
Qiang Xue
0b28f290f3 Fixes #1704: Incorrect regexp is used in Inflector::camelize() 2013-12-30 10:07:44 -05:00
Antonio Ramirez
6f932d99ae Merge branch 'upstream' into 364-toAscii
* upstream: (21 commits)
  Fixes #1643: Added default value for `Captcha::options`
  Fixes #1654: Fixed the issue that a new message source object is generated for every new message being translated
  Allow dash char in ActionColumn’s button names.
  Added SecurityTest.
  fixed functional test when enablePrettyUrl is false.
  fixed composer.json
  minor doc fix.
  Fixes #1634: Use masked CSRF tokens to prevent BREACH exploits
  Use better random CSRF token.
  GII unique indexes avoid autoIncrement columns
  updated debug retry params.
  Added sleep().
  Added unit test for ActiveRecord::updateAttributes().
  Fixes #1641: Added `BaseActiveRecord::updateAttributes()`
  Fixed #1504: Debug toolbar isn't loaded successfully in some environments when xdebug is enabled
  Mongo README.md updated.
  Fixes #1611: Added `BaseActiveRecord::markAttributeDirty()`
  Number validator was missing
  Fixes #1638: prevent table names from being enclosed within curly brackets twice.
  Unique indexes rules for single columns into array
  ...
2013-12-27 18:07:42 +01:00
Antonio Ramirez
08aaeda397 refactored inflector's slug and improved fallback char map 2013-12-27 18:06:27 +01:00
Antonio Ramirez
b7904c46aa remove TransliteratorHelper 2013-12-27 18:04:05 +01:00
Qiang Xue
3b1602acc8 Added SecurityTest. 2013-12-27 09:12:58 -05:00
Antonio Ramirez
fc9fb80c21 added TransliteratorHelper class 2013-12-26 20:56:11 +01:00
Florian Fackler
ff7c25ea7b Fixes #1497 (wrong file rendered if language != sourceLanguage) 2013-12-12 22:55:10 +01:00
Alexander Makarov
26767735dc Renamed byte methods, moved path methods back to StringHelper 2013-12-04 14:26:47 +01:00
Alexander Makarov
5f2a612c78 Moved file and path related methods from StringHelper to FileHelper, renamed StringHelper byte methods not to be misused as string methods 2013-12-04 09:48:01 +01:00
Qiang Xue
7a5a29c767 Added ArrayHelper::keyExists(). 2013-12-02 20:57:24 -05:00
Carsten Brandt
c10e8af824 fixed array helper test 2013-11-23 18:36:26 +01:00
Qiang Xue
53457a0a3f Simplified ArrayHelper::multisort(). 2013-11-19 14:10:00 -05:00
Qiang Xue
9efe446545 Fixes #1236: removed Sort::ASC and DESC 2013-11-19 10:20:07 -05:00
Qiang Xue
1c24b3e0d8 removed TestCase and WebTestCase. 2013-11-16 21:30:20 -05:00
Alexander Makarov
979e8d1619 Replaced assertTrue(file_exists with assertFileExists in FileHelperTest 2013-11-17 04:19:57 +04:00
Alexander Mohorev
51211898f8 Control statements based on the if and elseif constructs must have a single space before the opening parenthesis of the conditional and a single space after the closing parenthesis. 2013-10-28 23:51:48 +03:00
Alexander Makarov
1f6a823073 Short array syntax 2013-10-18 20:52:38 +04:00
Qiang Xue
fceb2d6e21 Fixes #957: Json::encode() doesn't handle empty object correctly. 2013-10-09 20:33:06 -04:00
Qiang Xue
463ff43b4f test break fix. 2013-09-20 16:39:22 -04:00
Carsten Brandt
949dda5fdb tagged tests with @group tags 2013-09-14 12:49:47 +02:00
Carsten Brandt
b5a6dac3ae renamed test method after implementation rename in FileHelper 2013-08-30 17:03:09 +02:00
Carsten Brandt
4b7f5a728a improved control over and handling of file and dir permissions
- rename FileHelper::mkdir for API consistency
- changed default permission for directories to 775 instead of 777
- added some properties to classes that deal with files to allow control
  over directory permissions.
2013-08-30 16:52:33 +02:00
Alexander Makarov
b968402ebd more tests for FileHelper 2013-08-26 03:39:11 +04:00
Alexander Makarov
cc5618c034 More tests for ArrayHelper and Inflector 2013-08-26 03:21:19 +04:00
Qiang Xue
65352e500f refactored ActiveField. 2013-08-14 21:17:13 -04:00
Alexander Makarov
0596fa82fd code style fixes 2013-08-13 02:43:47 +04:00
Qiang Xue
24a66b383d test break fix. 2013-08-09 09:50:19 -04:00
Qiang Xue
6d66a98acb test break fix. 2013-08-09 09:32:28 -04:00
Qiang Xue
7aeb2fcf4f Fixed test breaks. 2013-08-09 09:21:41 -04:00
Qiang Xue
915a3cd779 Fixes #653: use boolean type to indicate boolean attributes. 2013-07-23 20:45:14 -04:00
Qiang Xue
9aa7b26184 Added LinkSorter. 2013-07-20 07:28:22 -04:00
Qiang Xue
a6cd7b72bb refactored helper organization. 2013-07-17 20:45:36 -04:00
Qiang Xue
7ebbc46a5b Fixed wrong class uses. 2013-07-17 20:14:43 -04:00
Qiang Xue
c3df0beecd changed parameter ordering. 2013-07-07 09:46:14 -04:00
Qiang Xue
0845f4b183 Enhanced ArrayHelper::toArray() 2013-06-28 07:07:18 -04:00
Qiang Xue
71a156ebdf Added itemOptions for Html::ol 2013-06-25 16:16:36 -04:00
Qiang Xue
d87afeb496 encode checkbox and radio list by default. 2013-06-25 16:12:18 -04:00
Qiang Xue
d5bd9853ea Added Html::ol() and Html::ul() 2013-06-25 13:53:20 -04:00
Alexander Kochetov
9bb0ce4b1c Html helper pure HTML 5 mode without support old standarts 2013-06-19 20:14:40 +04:00
Qiang Xue
11c14a20e9 Simplified button signature. 2013-06-19 08:54:09 -04:00
Qiang Xue
f18d6df625 Revert "Merge pull request #548 from cebe/action-response"
This reverts commit 9d7597d61a, reversing
changes made to 6b6390f72b.
2013-06-16 19:45:58 -04:00
Carsten Brandt
71782b344e Changed existing code to match the changes regarding response 2013-06-16 18:52:56 +02:00
Qiang Xue
2369019d22 Fixed test break. 2013-06-15 15:56:37 -04:00