 ad1a9cd33f
			
		
	
	
		ad1a9cd33f
		
			
		
	
	
	
	
		
			
			* Fix these * Update phpstan * Transform these into their identifiers instead * Fix custom rule * License is wrong * Update these * Pint fixes * Fix this * Consolidate these * Never supported PHP 7 * Better evaluation * Fixes * Don’t need ignore * Replace trait with service * Subusers are simply the many to many relationship between Servers and Users * Adjust to remove ignores * Use new query builder instead! * wip * Update composer * Quick fixes * Use realtime facade * Small fixes * Convert to static to avoid new * Update to statics * Don’t modify protected properties directly * Run pint * Change to correct method * Give up and use the facade * Make sure this route is available * Filament hasn’t been loaded yet * This can be readonly * Typehint * These are no longer used * Quick fixes * Need doc block help * Always true * We use caddy with docker * Pint * Fix phpstan issues * Remove unused import --------- Co-authored-by: MartinOscar <40749467+RMartinOscar@users.noreply.github.com>
		
			
				
	
	
		
			99 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			99 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace App\Enums;
 | |
| 
 | |
| use Filament\Support\Contracts\HasLabel;
 | |
| 
 | |
| enum EditorLanguages: string implements HasLabel
 | |
| {
 | |
|     case plaintext = 'plaintext';
 | |
|     case abap = 'abap';
 | |
|     case apex = 'apex';
 | |
|     case azcali = 'azcali';
 | |
|     case bat = 'bat';
 | |
|     case bicep = 'bicep';
 | |
|     case cameligo = 'cameligo';
 | |
|     case coljure = 'coljure';
 | |
|     case coffeescript = 'coffeescript';
 | |
|     case c = 'c';
 | |
|     case cpp = 'cpp';
 | |
|     case csharp = 'csharp';
 | |
|     case csp = 'csp';
 | |
|     case css = 'css';
 | |
|     case cypher = 'cypher';
 | |
|     case dart = 'dart';
 | |
|     case dockerfile = 'dockerfile';
 | |
|     case ecl = 'ecl';
 | |
|     case elixir = 'elixir';
 | |
|     case flow9 = 'flow9';
 | |
|     case fsharp = 'fsharp';
 | |
|     case go = 'go';
 | |
|     case graphql = 'graphql';
 | |
|     case handlebars = 'handlebars';
 | |
|     case hcl = 'hcl';
 | |
|     case html = 'html';
 | |
|     case ini = 'ini';
 | |
|     case java = 'java';
 | |
|     case javascript = 'javascript';
 | |
|     case julia = 'julia';
 | |
|     case kotlin = 'kotlin';
 | |
|     case less = 'less';
 | |
|     case lexon = 'lexon';
 | |
|     case lua = 'lua';
 | |
|     case liquid = 'liquid';
 | |
|     case m3 = 'm3';
 | |
|     case markdown = 'markdown';
 | |
|     case mdx = 'mdx';
 | |
|     case mips = 'mips';
 | |
|     case msdax = 'msdax';
 | |
|     case mysql = 'mysql';
 | |
|     case objectivec = 'objective-c';
 | |
|     case pascal = 'pascal';
 | |
|     case pascaligo = 'pascaligo';
 | |
|     case perl = 'perl';
 | |
|     case pgsql = 'pgsql';
 | |
|     case php = 'php';
 | |
|     case pla = 'pla';
 | |
|     case postiats = 'postiats';
 | |
|     case powerquery = 'powerquery';
 | |
|     case powershell = 'powershell';
 | |
|     case proto = 'proto';
 | |
|     case pug = 'pug';
 | |
|     case python = 'python';
 | |
|     case qsharp = 'qsharp';
 | |
|     case r = 'r';
 | |
|     case razor = 'razor';
 | |
|     case redis = 'redis';
 | |
|     case redshift = 'redshift';
 | |
|     case restructuredtext = 'restructuredtext';
 | |
|     case ruby = 'ruby';
 | |
|     case rust = 'rust';
 | |
|     case sb = 'sb';
 | |
|     case scala = 'scala';
 | |
|     case scheme = 'scheme';
 | |
|     case scss = 'scss';
 | |
|     case shell = 'shell';
 | |
|     case sol = 'sol';
 | |
|     case aes = 'aes';
 | |
|     case sparql = 'sparql';
 | |
|     case sql = 'sql';
 | |
|     case st = 'st';
 | |
|     case swift = 'swift';
 | |
|     case systemverilog = 'systemverilog';
 | |
|     case verilog = 'verilog';
 | |
|     case tcl = 'tcl';
 | |
|     case twig = 'twig';
 | |
|     case typescript = 'typescript';
 | |
|     case typespec = 'typespec';
 | |
|     case vb = 'vb';
 | |
|     case wgsl = 'wgsl';
 | |
|     case xml = 'xml';
 | |
|     case yaml = 'yaml';
 | |
|     case json = 'json';
 | |
| 
 | |
|     public function getLabel(): string
 | |
|     {
 | |
|         return $this->name;
 | |
|     }
 | |
| }
 |