Completed
Pull Request — master (#20)
by
unknown
01:34
created
src/Iblock/Command/ImportCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -95,9 +95,9 @@
 block discarded – undo
95 95
             ->setType($this->type)
96 96
             ->setSites($this->sites)
97 97
             ->setActionSection($input->getOption('sections'))
98
-            ->setActionElement($input->getOption('elements'));;
98
+            ->setActionElement($input->getOption('elements')); ;
99 99
 
100
-        foreach (glob(implode(DIRECTORY_SEPARATOR . '*', [$this->dir, $this->extension])) as $file) {
100
+        foreach (glob(implode(DIRECTORY_SEPARATOR.'*', [$this->dir, $this->extension])) as $file) {
101 101
 
102 102
             try {
103 103
                 $importer
Please login to merge, or discard this patch.
src/Iblock/Command/ExportCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
 
97 97
             try {
98 98
                 $xml_id = \CIBlockCMLExport::GetIBlockXML_ID($iblock['ID']);
99
-                $path = implode(DIRECTORY_SEPARATOR, [$this->dir, $xml_id]) . $this->extension;
99
+                $path = implode(DIRECTORY_SEPARATOR, [$this->dir, $xml_id]).$this->extension;
100 100
 
101 101
                 $exporter
102 102
                     ->setPath($path)
Please login to merge, or discard this patch.
src/Iblock/Exporter.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -104,8 +104,8 @@  discard block
 block discarded – undo
104 104
         $this->session = [
105 105
             "property_map" => false,
106 106
             "section_map" => false,
107
-            "work_dir" => $pathinfo['dirname'] . DIRECTORY_SEPARATOR,
108
-            "file_dir" => $pathinfo['filename'] . "_files" . DIRECTORY_SEPARATOR,
107
+            "work_dir" => $pathinfo['dirname'].DIRECTORY_SEPARATOR,
108
+            "file_dir" => $pathinfo['filename']."_files".DIRECTORY_SEPARATOR,
109 109
         ];
110 110
 
111 111
         $this->export();
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
     protected function export()
121 121
     {
122 122
         $filesystem = new Filesystem();
123
-        $handle = fopen($this->config['path'] . $this->prefix, "w");
123
+        $handle = fopen($this->config['path'].$this->prefix, "w");
124 124
 
125 125
         $checkPermissions = true;
126 126
         if (PHP_SAPI == 'cli') {
@@ -170,6 +170,6 @@  discard block
 block discarded – undo
170 170
 
171 171
         fclose($handle);
172 172
         $filesystem->remove($this->config['path']);
173
-        $filesystem->rename($this->config['path'] . $this->prefix, $this->config['path'], true);
173
+        $filesystem->rename($this->config['path'].$this->prefix, $this->config['path'], true);
174 174
     }
175 175
 }
176 176
\ No newline at end of file
Please login to merge, or discard this patch.
src/Iblock/Command/MigrationCommandTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
         if (!$dir) {
71 71
             $dir = $app->getRoot();
72 72
         } elseif (!$filesystem->isAbsolutePath($dir)) {
73
-            $dir = $app->getRoot() . DIRECTORY_SEPARATOR . $dir;
73
+            $dir = $app->getRoot().DIRECTORY_SEPARATOR.$dir;
74 74
         }
75 75
         $dir = rtrim($dir, DIRECTORY_SEPARATOR);
76 76
 
Please login to merge, or discard this patch.
src/Iblock/Importer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@
 block discarded – undo
117 117
         $this->session = [
118 118
             "section_map" => false,
119 119
             "prices_map" => false,
120
-            "work_dir" => pathinfo($this->config['path'], PATHINFO_DIRNAME) . DIRECTORY_SEPARATOR
120
+            "work_dir" => pathinfo($this->config['path'], PATHINFO_DIRNAME).DIRECTORY_SEPARATOR
121 121
         ];
122 122
 
123 123
         $this->read();
Please login to merge, or discard this patch.