original_string: protected function copy($from, $to = null)
      {
          if (is_array($from) && is_null($to)) {
              foreach ($from as $key => $value) {
                  $this->copy($key, $value);
              }
  
              return;
          }
  
          if (!file_exists($from)) {
              return;
          }
  
          $to = $this->extensionPath($to);
  
          $this->filesystem->copy($from, $to);
      }
code: protected function copy($from, $to = null)
      {
          if (is_array($from) && is_null($to)) {
              foreach ($from as $key => $value) {
                  $this->copy($key, $value);
              }
  
              return;
          }
  
          if (!file_exists($from)) {
              return;
          }
  
          $to = $this->extensionPath($to);
  
          $this->filesystem->copy($from, $to);
      }
code_tokens: protected function copy ( $ from , $ to = null ) { if ( is_array ( $ from ) && is_null ( $ to ) ) { foreach ( $ from as $ key => $ value ) { $ this -> copy ( $ key , $ value ) ; } return ; } if ( ! file_exists ( $ from ) ) { return ; } $ to = $ this -> extensionPath ( $ to ) ; $ this -> filesystem -> copy ( $ from , $ to ) ; }
docstring: Copy files to extension path.
  
  @param string|array $from
  @param string|null  $to
docstring_tokens: Copy files to extension path .