File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
src/Illuminate/Foundation/Console Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -32,16 +32,14 @@ public function handle()
32
32
{
33
33
$ config = $ this ->argument ('config ' );
34
34
35
- $ data = config ($ config );
36
-
37
- if (! $ data ) {
35
+ if (! config ()->has ($ config )) {
38
36
$ this ->components ->error ("Configuration file ` {$ config }` does not exist. " );
39
37
40
38
return Command::FAILURE ;
41
39
}
42
40
43
41
$ this ->newLine ();
44
- $ this ->render ($ config, $ data );
42
+ $ this ->render ($ config );
45
43
$ this ->newLine ();
46
44
47
45
return Command::SUCCESS ;
@@ -51,11 +49,12 @@ public function handle()
51
49
* Render the configuration values.
52
50
*
53
51
* @param string $name
54
- * @param mixed $data
55
52
* @return void
56
53
*/
57
- public function render ($ name, $ data )
54
+ public function render ($ name )
58
55
{
56
+ $ data = config ($ name );
57
+
59
58
if (! is_array ($ data )) {
60
59
$ this ->title ($ name , $ this ->formatValue ($ data ));
61
60
You can’t perform that action at this time.
0 commit comments