original_string: private function sourcesToPatterns(string $sources): array
    {
      if (substr($sources, 0, 5)=='file:')
      {
        $patterns = $this->readPatterns(substr($sources, 5));
      }
      else
      {
        $patterns = [$sources];
      }
  
      return $patterns;
    }
code: private function sourcesToPatterns(string $sources): array
    {
      if (substr($sources, 0, 5)=='file:')
      {
        $patterns = $this->readPatterns(substr($sources, 5));
      }
      else
      {
        $patterns = [$sources];
      }
  
      return $patterns;
    }
code_tokens: private function sourcesToPatterns ( string $ sources ) : array { if ( substr ( $ sources , 0 , 5 ) == 'file:' ) { $ patterns = $ this -> readPatterns ( substr ( $ sources , 5 ) ) ; } else { $ patterns = [ $ sources ] ; } return $ patterns ; }
docstring: Converts the sources parameter to a list a patterns.
  
  @param string $sources The value of the sources parameter.
  
  @return string[]
docstring_tokens: Converts the sources parameter to a list a patterns .