File tree Expand file tree Collapse file tree 1 file changed +0
-39
lines changed Expand file tree Collapse file tree 1 file changed +0
-39
lines changed Original file line number Diff line number Diff line change @@ -134,43 +134,4 @@ public function handle()
134134
135135 return Command::SUCCESS ;
136136 }
137-
138- public static function displaySection (Command $ cmd , string $ section , array $ data ) {
139- $ cmd ->newLine ();
140- $ cmd ->components ->twoColumnDetail (' <fg=green;options=bold> ' .$ section .'</> ' );
141- foreach ($ data as $ key => $ value ) {
142- $ cmd ->components ->twoColumnDetail ($ key , $ value );
143- }
144- }
145-
146- public static function styleDebugLevel ($ level ) {
147- switch (strtolower ($ level )) {
148- // sorted in descending order of severity
149- case 'emergency ' :
150- $ color = 'magenta ' ;
151- break ;
152- case 'alert ' :
153- case 'critical ' :
154- $ color = 'bright-red ' ;
155- break ;
156- case 'error ' :
157- $ color = 'red ' ;
158- break ;
159- case 'warning ' :
160- case 'notice ' :
161- $ color = 'yellow ' ;
162- break ;
163- case 'info ' :
164- $ color = 'blue ' ;
165- break ;
166- case 'debug ' :
167- $ color = 'gray ' ;
168- break ;
169- default :
170- $ color = 'white ' ;
171- break ;
172- }
173- $ value = '<fg= ' .$ color .'> ' .strtoupper ($ level ).'</> ' ;
174- return $ value ;
175- }
176137}
You can’t perform that action at this time.
0 commit comments