53 Commits

Author SHA1 Message Date
4d21c48bc4 Fixes #9288: Fixed FileHelper::createDirectory directory creation to be concurrency friendly 2015-09-05 01:39:27 +03:00
39cb131984 Spelling and sc fixes 2015-06-16 23:53:12 +03:00
ae42a054bb PSR-2 spaces, commas, etc 2015-06-09 00:05:06 +03:00
38ca276e1f PSR-2 try-catch statement 2015-06-08 23:32:08 +03:00
14c003acab improved error message on createDirectory
ensure the directory name is included in the error message.

fixes #6442
2015-04-01 00:53:03 +02:00
16c94efaf5 improved error messages in FileHelper 2015-03-26 13:24:59 +01:00
6481d13494 Optimized checks order in conditions 2015-02-08 17:56:36 +03:00
64b4d6dca1 Correct order of property declaration 2014-10-25 16:28:36 +03:00
b835422479 Fixes #4897: Added `yii\helpers\FileHelper::mimeMagicFile 2014-09-10 14:17:16 -04:00
0bf16497af Convert 'caseless' option into 'caseSensitive' option at yii\helpers\BaseFileHelper::findFiles() 2014-08-19 17:33:11 +03:00
6461523aca Added 'caseless' option to yii\helpers\BaseFileHelper::findFiles() 2014-08-19 14:52:56 +03:00
3a1e0f3a5c property codestyle framework 2014-07-30 00:21:31 +02:00
77e4a80edc Removed unused code 2014-07-25 17:34:16 +04:00
92c64994cd Improved strtr calls 2014-07-23 16:19:28 +04:00
74843ccbf4 make fileinfo optional requirement 2014-06-30 11:31:15 +02:00
9bc8c3304b https://github.com/yiisoft/yii2/pull/4091#discussion_r14296860 2014-06-27 21:07:12 +06:00
1327d8ad2d Fix possibility of non-removed symlinked directory. 2014-06-27 20:38:05 +06:00
fb9df78795 Fixes #4080, FileHelper::removeDirectory():
1. Added proper handling and support of the symlinked directories.
2. Added $options parameter.
2014-06-27 13:47:43 +06:00
084819b84c refactored file validator. 2014-06-14 16:21:59 -04:00
42643e3747 type validation adjusted 2014-06-14 12:42:12 +04:00
718d114828 file helper adjusted , upgrade notes added 2014-06-11 21:43:51 +04:00
f19a97e308 Fix yii\helpers\FileHelper::copyDirectory() pattern not working 2014-05-30 14:50:11 +03:00
330f4609bf Implemented qiangxue's solution as it is much simpler. 2014-05-22 08:23:26 +10:00
39265da4f5 Code style fix & CHANGELOG typo fix for bug #3522 2014-05-21 22:24:49 +10:00
be89ff97d3 fixed normalizePath to keep a '.' path when necessary. 2014-05-21 20:55:52 +10:00
78a8694eb5 file helper did not preserve relative paths 2014-04-25 04:06:07 +02:00
ab218addda Fixes #2563: Theming is not working if the path map of the theme contains ".." or "." in the paths 2014-04-18 15:13:50 -04:00
3c400dbca8 fixed file PHPdoc
issue #3026
2014-04-10 22:10:59 +02:00
27659d1776 fixed FileHelper private method static call 2014-03-26 17:51:52 +01:00
bf3c75147d reverted breaking PHPdoc codestyle changes
issue #2852
2014-03-23 20:51:09 +01:00
b5f8a4dc22 Reformat code te be PSR-2 compatible 2014-03-16 10:46:21 +06:00
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
d3171b6cfb fix code style php5.4 syntax 2014-03-04 06:37:49 +02:00
045eb9f7ee Inline control structures are not allowed 2014-03-04 06:32:37 +02:00
eaaa5b1bb5 fix code style 2014-03-04 06:12:30 +02:00
35651ea122 fix code style Expected 1 space after FUNCTION keyword; 0 found 2014-03-04 05:53:06 +02:00
0f50e038c8 fix phpDoc, added @throws annotation BaseFileHelper::copyDirectory 2014-03-04 05:05:11 +02:00
95ea1c20bb code style. FOREACH 2014-03-03 21:47:47 +03:00
b2f1b00bf2 code style. operator IF 2014-03-03 21:32:34 +03:00
6e7edfdf5b short array syntax 2014-03-03 20:21:55 +03:00
f9dee9c951 Fixed an issue with Filehelper and not accessable directories
which resulted in endless loop

http://www.yiiframework.com/forum/index.php/topic/50982-cfilehelper-bug-security-flaw/
2014-01-28 11:09:41 +01:00
21ae27b306 updated phpdoc properties 2014-01-28 00:11:18 +01:00
ff8e78c655 Merge branch '2048-improve-messages-config-exceptions' of github.com:nineinchnick/yii2 into nineinchnick-2048-improve-messages-config-exceptions
Conflicts:
	framework/messages/config.php
2014-01-26 17:48:44 -05:00
26564fb9b5 fixed code style for assignments inside if conditions 2014-01-26 17:00:43 +01:00
07ce08d970 updated helpers/BaseFileHelper::findFiles description and comments in messages/config.php 2014-01-26 15:28:55 +01:00
f90e594f4f remove _FLAG from PATTERN_FLAG constants 2014-01-26 15:03:24 +01:00
b2b10d1685 more unit tests for helpers/FileHelper::findFiles using new wildcard exceptions matching 2014-01-26 15:02:26 +01:00
1e602adb6e - Fixed BaseFileHelper::localize docs.
- DbMessageSource now performs UNION ALL.
- Fixed message merging for php and po.
- Updated tests.
2014-01-23 20:34:46 +04:00
8bdc437bc2 Fixes #2079:
- i18n now falls back to `en` from `en-US` if message translation isn't found
- View now falls back to `en` from `en-US` if file not found
- Default `sourceLanguage` and `language` are now `en`
2014-01-23 04:51:17 +04:00
6a84bfffba refactored flag names 2014-01-20 12:27:53 +01:00