| Conditions | 3 |
| Paths | 2 |
| Total Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | public static function getMainUrls($forceRefresh = false) |
||
| 29 | { |
||
| 30 | if (!isset(self::$cache['main_urls']) || $forceRefresh) { |
||
| 31 | $configs = Link::where('main', '=', true)->get(['url']); |
||
| 32 | self::$cache['main_urls'] = $configs->pluck('url')->toArray(); |
||
| 33 | } |
||
| 34 | return self::$cache['main_urls']; |
||
| 35 | } |
||
| 36 | public function addNewLink($url, $label, $visibility) // getAndSave( |
||
| 43 | } |