original_string: public function findGlobals()
      {
          $presets = $this->loadPresets();
          $globalPresets = [];
          foreach ($presets as $key => $preset) {
              foreach ($preset['applications'] as $application) {
                  if (empty($application['options']['repositoryUrl'])) {
                      $globalPresets[$key] = $preset;
                  }
              }
          }
          return $globalPresets;
      }
code: public function findGlobals()
      {
          $presets = $this->loadPresets();
          $globalPresets = [];
          foreach ($presets as $key => $preset) {
              foreach ($preset['applications'] as $application) {
                  if (empty($application['options']['repositoryUrl'])) {
                      $globalPresets[$key] = $preset;
                  }
              }
          }
          return $globalPresets;
      }
code_tokens: public function findGlobals ( ) { $ presets = $ this -> loadPresets ( ) ; $ globalPresets = [ ] ; foreach ( $ presets as $ key => $ preset ) { foreach ( $ preset [ 'applications' ] as $ application ) { if ( empty ( $ application [ 'options' ] [ 'repositoryUrl' ] ) ) { $ globalPresets [ $ key ] = $ preset ; } } } return $ globalPresets ; }
docstring: Finds all presets without a repositoryUrl.
  
  @return array $presets
docstring_tokens: Finds all presets without a repositoryUrl .