original_string: protected function utilGitPull()
      {
          foreach (File::directories(plugins_path()) as $authorDir) {
              foreach (File::directories($authorDir) as $pluginDir) {
                  if (!File::isDirectory($pluginDir.'/.git')) continue;
                  $exec = 'cd ' . $pluginDir . ' && ';
                  $exec .= 'git pull 2>&1';
                  echo 'Updating plugin: '. basename(dirname($pluginDir)) .'.'. basename($pluginDir) . PHP_EOL;
                  echo shell_exec($exec);
              }
          }
  
          foreach (File::directories(themes_path()) as $themeDir) {
              if (!File::isDirectory($themeDir.'/.git')) continue;
              $exec = 'cd ' . $themeDir . ' && ';
              $exec .= 'git pull 2>&1';
              echo 'Updating theme: '. basename($themeDir) . PHP_EOL;
              echo shell_exec($exec);
          }
      }
code: protected function utilGitPull()
      {
          foreach (File::directories(plugins_path()) as $authorDir) {
              foreach (File::directories($authorDir) as $pluginDir) {
                  if (!File::isDirectory($pluginDir.'/.git')) continue;
                  $exec = 'cd ' . $pluginDir . ' && ';
                  $exec .= 'git pull 2>&1';
                  echo 'Updating plugin: '. basename(dirname($pluginDir)) .'.'. basename($pluginDir) . PHP_EOL;
                  echo shell_exec($exec);
              }
          }
  
          foreach (File::directories(themes_path()) as $themeDir) {
              if (!File::isDirectory($themeDir.'/.git')) continue;
              $exec = 'cd ' . $themeDir . ' && ';
              $exec .= 'git pull 2>&1';
              echo 'Updating theme: '. basename($themeDir) . PHP_EOL;
              echo shell_exec($exec);
          }
      }
code_tokens: protected function utilGitPull ( ) { foreach ( File :: directories ( plugins_path ( ) ) as $ authorDir ) { foreach ( File :: directories ( $ authorDir ) as $ pluginDir ) { if ( ! File :: isDirectory ( $ pluginDir . '/.git' ) ) continue ; $ exec = 'cd ' . $ pluginDir . ' && ' ; $ exec .= 'git pull 2>&1' ; echo 'Updating plugin: ' . basename ( dirname ( $ pluginDir ) ) . '.' . basename ( $ pluginDir ) . PHP_EOL ; echo shell_exec ( $ exec ) ; } } foreach ( File :: directories ( themes_path ( ) ) as $ themeDir ) { if ( ! File :: isDirectory ( $ themeDir . '/.git' ) ) continue ; $ exec = 'cd ' . $ themeDir . ' && ' ; $ exec .= 'git pull 2>&1' ; echo 'Updating theme: ' . basename ( $ themeDir ) . PHP_EOL ; echo shell_exec ( $ exec ) ; } }
docstring: This command requires the git binary to be installed.
docstring_tokens: This command requires the git binary to be installed .