private function sourcesToPatterns(string $sources): array
  {
    if (substr($sources, 0, 5)=='file:')
    {
      $patterns = $this->readPatterns(substr($sources, 5));
    }
    else
    {
      $patterns = [$sources];
    }

    return $patterns;
  }
private function sourcesToPatterns(string $sources): array
  {
    if (substr($sources, 0, 5)=='file:')
    {
      $patterns = $this->readPatterns(substr($sources, 5));
    }
    else
    {
      $patterns = [$sources];
    }

    return $patterns;
  }
private function sourcesToPatterns ( string $ sources ) : array { if ( substr ( $ sources , 0 , 5 ) == 'file:' ) { $ patterns = $ this -> readPatterns ( substr ( $ sources , 5 ) ) ; } else { $ patterns = [ $ sources ] ; } return $ patterns ; }
Converts the sources parameter to a list a patterns.

@param string $sources The value of the sources parameter.

@return string[]
Converts the sources parameter to a list a patterns .