@@ -97,8 +97,8 @@ discard block |
||
| 97 | 97 | $this->session = [ |
| 98 | 98 | "property_map" => false, |
| 99 | 99 | "section_map" => false, |
| 100 | - "work_dir" => pathinfo($absFilename, PATHINFO_DIRNAME) . DIRECTORY_SEPARATOR, |
|
| 101 | - "file_dir" => pathinfo($this->config['path'], PATHINFO_FILENAME) . "_files" . DIRECTORY_SEPARATOR, |
|
| 100 | + "work_dir" => pathinfo($absFilename, PATHINFO_DIRNAME).DIRECTORY_SEPARATOR, |
|
| 101 | + "file_dir" => pathinfo($this->config['path'], PATHINFO_FILENAME)."_files".DIRECTORY_SEPARATOR, |
|
| 102 | 102 | ]; |
| 103 | 103 | |
| 104 | 104 | $this->export(); |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | protected function export() |
| 113 | 113 | {
|
| 114 | 114 | $filesystem = new Filesystem(); |
| 115 | - $handle = fopen($this->config['path'] . $this->prefix, "w"); |
|
| 115 | + $handle = fopen($this->config['path'].$this->prefix, "w"); |
|
| 116 | 116 | |
| 117 | 117 | $checkPermissions = true; |
| 118 | 118 | if (PHP_SAPI == 'cli') {
|
@@ -162,6 +162,6 @@ discard block |
||
| 162 | 162 | |
| 163 | 163 | fclose($handle); |
| 164 | 164 | $filesystem->remove($this->config['path']); |
| 165 | - $filesystem->rename($this->config['path'] . $this->prefix, $this->config['path'], true); |
|
| 165 | + $filesystem->rename($this->config['path'].$this->prefix, $this->config['path'], true); |
|
| 166 | 166 | } |
| 167 | 167 | } |
| 168 | 168 | \ No newline at end of file |
@@ -92,7 +92,7 @@ |
||
| 92 | 92 | |
| 93 | 93 | try {
|
| 94 | 94 | $xml_id = \CIBlockCMLExport::GetIBlockXML_ID($iblock['ID']); |
| 95 | - $path = implode(DIRECTORY_SEPARATOR, [$this->dir, $xml_id]) . $this->extension; |
|
| 95 | + $path = implode(DIRECTORY_SEPARATOR, [$this->dir, $xml_id]).$this->extension; |
|
| 96 | 96 | |
| 97 | 97 | $export |
| 98 | 98 | ->setPath($path) |
@@ -91,9 +91,9 @@ |
||
| 91 | 91 | ->setType($this->type) |
| 92 | 92 | ->setSites($this->sites) |
| 93 | 93 | ->setActionSection($input->getOption('sections'))
|
| 94 | - ->setActionElement($input->getOption('elements'));;
|
|
| 94 | + ->setActionElement($input->getOption('elements')); ;
|
|
| 95 | 95 | |
| 96 | - foreach (glob(implode(DIRECTORY_SEPARATOR . '*', [$this->dir, $this->extension])) as $file) {
|
|
| 96 | + foreach (glob(implode(DIRECTORY_SEPARATOR.'*', [$this->dir, $this->extension])) as $file) {
|
|
| 97 | 97 | |
| 98 | 98 | try {
|
| 99 | 99 | $import |
@@ -110,7 +110,7 @@ |
||
| 110 | 110 | $this->session = [ |
| 111 | 111 | "section_map" => false, |
| 112 | 112 | "prices_map" => false, |
| 113 | - "work_dir" => pathinfo($absFilename, PATHINFO_DIRNAME) . DIRECTORY_SEPARATOR |
|
| 113 | + "work_dir" => pathinfo($absFilename, PATHINFO_DIRNAME).DIRECTORY_SEPARATOR |
|
| 114 | 114 | ]; |
| 115 | 115 | |
| 116 | 116 | $this->read(); |