original_string: public function findByRepositoryUrl($repositoryUrl)
      {
          $presets = $this->loadPresets();
          $repositoryPresets = [];
          foreach ($presets as $key => $preset) {
              foreach ($preset['applications'] as $application) {
                  if (!empty($application['options']['repositoryUrl']) && $repositoryUrl === $application['options']['repositoryUrl']) {
                      $repositoryPresets[$key] = $preset;
                  }
              }
          }
          return $repositoryPresets;
      }
code: public function findByRepositoryUrl($repositoryUrl)
      {
          $presets = $this->loadPresets();
          $repositoryPresets = [];
          foreach ($presets as $key => $preset) {
              foreach ($preset['applications'] as $application) {
                  if (!empty($application['options']['repositoryUrl']) && $repositoryUrl === $application['options']['repositoryUrl']) {
                      $repositoryPresets[$key] = $preset;
                  }
              }
          }
          return $repositoryPresets;
      }
code_tokens: public function findByRepositoryUrl ( $ repositoryUrl ) { $ presets = $ this -> loadPresets ( ) ; $ repositoryPresets = [ ] ; foreach ( $ presets as $ key => $ preset ) { foreach ( $ preset [ 'applications' ] as $ application ) { if ( ! empty ( $ application [ 'options' ] [ 'repositoryUrl' ] ) && $ repositoryUrl === $ application [ 'options' ] [ 'repositoryUrl' ] ) { $ repositoryPresets [ $ key ] = $ preset ; } } } return $ repositoryPresets ; }
docstring: Find presets matching the given repositoryUrl.
  
  @param string $repositoryUrl
  @return array $presets
docstring_tokens: Find presets matching the given repositoryUrl .