@@ 72-77 (lines=6) @@ | ||
69 | if (strpos(pathinfo($cssFileName)['basename'], 'font-awesome-') !== false) { |
|
70 | $patternFound = $this->setCssFileCDNforFontAwesome($cssFileName); |
|
71 | } |
|
72 | if (is_null($patternFound)) { |
|
73 | $patternFound = [false, filter_var($cssFileName, FILTER_SANITIZE_STRING)]; |
|
74 | } |
|
75 | return $patternFound; |
|
76 | } |
|
77 | ||
78 | /** |
|
79 | * Returns css link to a given file |
|
80 | * Returns an array with CDN call of a known Font-websome css |
|
@@ 120-126 (lines=7) @@ | ||
117 | } elseif (strpos($onlyFileName, 'exporting-') !== false) { |
|
118 | $patternFound = $this->setJavascriptFileCDNforHighChartsExporting($jsFileName); |
|
119 | } |
|
120 | if (is_null($patternFound)) { |
|
121 | $patternFound = [false, filter_var($jsFileName, FILTER_SANITIZE_STRING), '']; |
|
122 | } |
|
123 | return $patternFound; |
|
124 | } |
|
125 | ||
126 | /** |
|
127 | * Returns an array with CDN call of a known Javascript library |
|
128 | * and fall-back line that points to local cache of it |
|
129 | * specific for HighCharts |