| @@ 159-174 (lines=16) @@ | ||
| 156 | * It recursively check changes in the files |
|
| 157 | * @return bool |
|
| 158 | */ |
|
| 159 | protected function check() |
|
| 160 | { |
|
| 161 | foreach ($iterator = new \RecursiveIteratorIterator( |
|
| 162 | new \RecursiveDirectoryIterator( |
|
| 163 | $this->installer->getOption('vendorPath'), |
|
| 164 | \RecursiveDirectoryIterator::SKIP_DOTS |
|
| 165 | ), |
|
| 166 | \RecursiveIteratorIterator::SELF_FIRST |
|
| 167 | ) as $item) { |
|
| 168 | $this->installer->getIo()->write($iterator->getSubPathName()); |
|
| 169 | $this->installer->getIo()->write(PATH_ROOT . DS . $iterator->getSubPathName()); |
|
| 170 | ||
| 171 | } |
|
| 172 | ||
| 173 | return false; |
|
| 174 | } |
|
| 175 | ||
| 176 | /** |
|
| 177 | * It recursively removes the files and directories |
|
| @@ 180-195 (lines=16) @@ | ||
| 177 | * It recursively removes the files and directories |
|
| 178 | * @return bool |
|
| 179 | */ |
|
| 180 | protected function remove() |
|
| 181 | { |
|
| 182 | foreach ($iterator = new \RecursiveIteratorIterator( |
|
| 183 | new \RecursiveDirectoryIterator( |
|
| 184 | $this->installer->getOption('vendorPath'), |
|
| 185 | \RecursiveDirectoryIterator::SKIP_DOTS |
|
| 186 | ), |
|
| 187 | \RecursiveIteratorIterator::SELF_FIRST |
|
| 188 | ) as $item) { |
|
| 189 | $this->installer->getIo()->write($iterator->getSubPathName()); |
|
| 190 | $this->installer->getIo()->write(PATH_ROOT . DS . $iterator->getSubPathName()); |
|
| 191 | ||
| 192 | } |
|
| 193 | ||
| 194 | return false; |
|
| 195 | } |
|
| 196 | } |
|
| 197 | ||