Commit 6bfd50f7948c18788b5fa1fcf8d5dd43faae2348
1 parent
73824b10
merge with server
Showing
2 changed files
with
8 additions
and
8 deletions
Show diff stats
vendor/yiisoft/multiparser/Converter.php
1 | <?php | 1 | <?php |
2 | /** | 2 | /** |
3 | -* Created by PhpStorm. | 3 | + * Created by PhpStorm. |
4 | * User: Cibermag | 4 | * User: Cibermag |
5 | -* Date: 31.08.2015 | ||
6 | -* Time: 12:50 | ||
7 | -*/ | 5 | + * Date: 31.08.2015 |
6 | + * Time: 12:50 | ||
7 | + */ | ||
8 | 8 | ||
9 | namespace yii\multiparser; | 9 | namespace yii\multiparser; |
10 | use common\components\CustomVarDamp; | 10 | use common\components\CustomVarDamp; |
@@ -109,7 +109,7 @@ class Converter extends Behavior | @@ -109,7 +109,7 @@ class Converter extends Behavior | ||
109 | throw new ErrorException('Не указан обязательный параметр конфигурационного файла - converter_conf[configuration]'); | 109 | throw new ErrorException('Не указан обязательный параметр конфигурационного файла - converter_conf[configuration]'); |
110 | } | 110 | } |
111 | 111 | ||
112 | - // проставим аттрибуды из конфига{}{} | 112 | + // проставим аттрибуды из конфига{}{} |
113 | foreach ($configuration as $key_setting => $setting) { | 113 | foreach ($configuration as $key_setting => $setting) { |
114 | if( property_exists( static::class, $key_setting ) ) | 114 | if( property_exists( static::class, $key_setting ) ) |
115 | static::$$key_setting = $setting; | 115 | static::$$key_setting = $setting; |
@@ -138,7 +138,7 @@ class Converter extends Behavior | @@ -138,7 +138,7 @@ class Converter extends Behavior | ||
138 | if (isset($arr[$value])) { | 138 | if (isset($arr[$value])) { |
139 | // конвертируем только те ячейки которые сопоставлены в прочитанном массиве с колонками в конфигурационном файле | 139 | // конвертируем только те ячейки которые сопоставлены в прочитанном массиве с колонками в конфигурационном файле |
140 | $arr[$value] = self::$key( $arr[$value] ); | 140 | $arr[$value] = self::$key( $arr[$value] ); |
141 | - // CustomVarDamp::dump($result); | 141 | + // CustomVarDamp::dump($result); |
142 | } | 142 | } |
143 | 143 | ||
144 | } | 144 | } |
vendor/yiisoft/multiparser/CsvParser.php
@@ -108,7 +108,7 @@ class CsvParser implements ParserInterface | @@ -108,7 +108,7 @@ class CsvParser implements ParserInterface | ||
108 | } | 108 | } |
109 | 109 | ||
110 | for ($i = 1; $i <= count($row); $i++) { | 110 | for ($i = 1; $i <= count($row); $i++) { |
111 | - // CustomVarDamp::dump($row[$i]); | 111 | + // CustomVarDamp::dump($row[$i]); |
112 | 112 | ||
113 | if ($row[$i - 1] <> '') { | 113 | if ($row[$i - 1] <> '') { |
114 | $j++; | 114 | $j++; |
@@ -121,7 +121,7 @@ class CsvParser implements ParserInterface | @@ -121,7 +121,7 @@ class CsvParser implements ParserInterface | ||
121 | } | 121 | } |
122 | // @todo - сделать опционально | 122 | // @todo - сделать опционально |
123 | // код для того что бы парсить первую строку, закомментировано как предполагается что первая значимая строка это заголовок | 123 | // код для того что бы парсить первую строку, закомментировано как предполагается что первая значимая строка это заголовок |
124 | - // $this->current_line --; | 124 | + // $this->current_line --; |
125 | // $this->file->seek( $this->current_line ); | 125 | // $this->file->seek( $this->current_line ); |
126 | } | 126 | } |
127 | 127 |