/** * @return array */ private function getModifiedRemoteFiles() { $this->currentRemoteState = $this->remote->remoteScan(); $currentArray = $this->utils->tabSepStringToArray($this->currentRemoteState, 0, 3); $saved = $this->utils->readSavedState(BASEPATH . '/deployhelper/remotestate'); $savedArray = $this->utils->tabSepStringToArray($saved, 0, 3); $changeSet = array(); foreach ($savedArray as $file => $sum) { if (isset($currentArray[$file])) { if ($currentArray[$file] != $sum) { $changeSet[$file] = array('state' => 'REMOTEMOD', 'file' => $file); } } else { $changeSet[$file] = array('state' => 'REMOTEDEL', 'file' => $file); } } return $changeSet; }