original_string: public function findSources(string $fieldType, array $attributes, string $indexFrom, string $indexTo): array
      {
          foreach ($attributes as $key => $attribute) {
              if ($key === 'source') {
                  $attributes[$key] = $this->getSource($fieldType, $attribute, $indexFrom, $indexTo);
              } elseif ($key === 'sources') {
                  $attributes[$key] = $this->getSources($fieldType, $attribute, $indexFrom, $indexTo);
              } elseif (is_array($attribute)) {
                  $attributes[$key] = $this->findSources($fieldType, $attribute, $indexFrom, $indexTo);
              }
          }
  
          return $attributes;
      }
code: public function findSources(string $fieldType, array $attributes, string $indexFrom, string $indexTo): array
      {
          foreach ($attributes as $key => $attribute) {
              if ($key === 'source') {
                  $attributes[$key] = $this->getSource($fieldType, $attribute, $indexFrom, $indexTo);
              } elseif ($key === 'sources') {
                  $attributes[$key] = $this->getSources($fieldType, $attribute, $indexFrom, $indexTo);
              } elseif (is_array($attribute)) {
                  $attributes[$key] = $this->findSources($fieldType, $attribute, $indexFrom, $indexTo);
              }
          }
  
          return $attributes;
      }
code_tokens: public function findSources ( string $ fieldType , array $ attributes , string $ indexFrom , string $ indexTo ) : array { foreach ( $ attributes as $ key => $ attribute ) { if ( $ key === 'source' ) { $ attributes [ $ key ] = $ this -> getSource ( $ fieldType , $ attribute , $ indexFrom , $ indexTo ) ; } elseif ( $ key === 'sources' ) { $ attributes [ $ key ] = $ this -> getSources ( $ fieldType , $ attribute , $ indexFrom , $ indexTo ) ; } elseif ( is_array ( $ attribute ) ) { $ attributes [ $ key ] = $ this -> findSources ( $ fieldType , $ attribute , $ indexFrom , $ indexTo ) ; } } return $ attributes ; }
docstring: Recursively find sources in definition attributes.
  
  @param string $fieldType
  @param array  $attributes
  @param string $indexFrom
  @param string $indexTo
  
  @return array
docstring_tokens: Recursively find sources in definition attributes .