Example #1
0
 public function execute()
 {
     reset($this->_leftFiles);
     reset($this->_rightFiles);
     while (($left = current($this->_leftFiles)) && ($right = current($this->_rightFiles))) {
         $diff = Engine_File_Diff::factory($left, $right);
         $diff->execute();
         $this->_diffs[] = $diff;
         next($this->_leftFiles);
         next($this->_rightFiles);
     }
     return $this;
 }
 public function execute()
 {
     reset($this->_leftFiles);
     reset($this->_rightFiles);
     reset($this->_originalFiles);
     $break = false;
     while (!$break) {
         $left = current($this->_leftFiles);
         $right = current($this->_rightFiles);
         $original = current($this->_originalFiles);
         if (!$left && !$right && !$original) {
             $break = true;
             continue;
         } else {
             $diff = Engine_File_Diff::factory($left, $right, $original);
             $diff->execute();
             $this->_diffs[] = $diff;
         }
         next($this->_leftFiles);
         next($this->_rightFiles);
         next($this->_originalFiles);
     }
     return $this;
 }