original_string: private function gitclone()
      {
          $this->output->writeln('');
          $this->output->writeln('<green>Cloning Bits</green>');
          $this->output->writeln('============');
          $this->output->writeln('');
  
          foreach ($this->config['git'] as $repo => $data) {
              $this->destination = rtrim($this->destination, DS);
              $path = $this->destination . DS . $data['path'];
              if (!file_exists($path)) {
                  exec('cd "' . $this->destination . '" && git clone -b ' . $data['branch'] . ' --depth 1 ' . $data['url'] . ' ' . $data['path'], $output, $return);
  
                  if (!$return) {
                      $this->output->writeln('<green>SUCCESS</green> cloned <magenta>' . $data['url'] . '</magenta> -> <cyan>' . $path . '</cyan>');
                  } else {
                      $this->output->writeln('<red>ERROR</red> cloning <magenta>' . $data['url']);
  
                  }
  
                  $this->output->writeln('');
              } else {
                  $this->output->writeln('<red>' . $path . ' already exists, skipping...</red>');
                  $this->output->writeln('');
              }
  
          }
      }
code: private function gitclone()
      {
          $this->output->writeln('');
          $this->output->writeln('<green>Cloning Bits</green>');
          $this->output->writeln('============');
          $this->output->writeln('');
  
          foreach ($this->config['git'] as $repo => $data) {
              $this->destination = rtrim($this->destination, DS);
              $path = $this->destination . DS . $data['path'];
              if (!file_exists($path)) {
                  exec('cd "' . $this->destination . '" && git clone -b ' . $data['branch'] . ' --depth 1 ' . $data['url'] . ' ' . $data['path'], $output, $return);
  
                  if (!$return) {
                      $this->output->writeln('<green>SUCCESS</green> cloned <magenta>' . $data['url'] . '</magenta> -> <cyan>' . $path . '</cyan>');
                  } else {
                      $this->output->writeln('<red>ERROR</red> cloning <magenta>' . $data['url']);
  
                  }
  
                  $this->output->writeln('');
              } else {
                  $this->output->writeln('<red>' . $path . ' already exists, skipping...</red>');
                  $this->output->writeln('');
              }
  
          }
      }
code_tokens: private function gitclone ( ) { $ this -> output -> writeln ( '' ) ; $ this -> output -> writeln ( '<green>Cloning Bits</green>' ) ; $ this -> output -> writeln ( '============' ) ; $ this -> output -> writeln ( '' ) ; foreach ( $ this -> config [ 'git' ] as $ repo => $ data ) { $ this -> destination = rtrim ( $ this -> destination , DS ) ; $ path = $ this -> destination . DS . $ data [ 'path' ] ; if ( ! file_exists ( $ path ) ) { exec ( 'cd "' . $ this -> destination . '" && git clone -b ' . $ data [ 'branch' ] . ' --depth 1 ' . $ data [ 'url' ] . ' ' . $ data [ 'path' ] , $ output , $ return ) ; if ( ! $ return ) { $ this -> output -> writeln ( '<green>SUCCESS</green> cloned <magenta>' . $ data [ 'url' ] . '</magenta> -> <cyan>' . $ path . '</cyan>' ) ; } else { $ this -> output -> writeln ( '<red>ERROR</red> cloning <magenta>' . $ data [ 'url' ] ) ; } $ this -> output -> writeln ( '' ) ; } else { $ this -> output -> writeln ( '<red>' . $ path . ' already exists, skipping...</red>' ) ; $ this -> output -> writeln ( '' ) ; } } }
docstring: Clones from Git
docstring_tokens: Clones from Git