src/Commands/ShowCommand.php
private function shouldShowKey($key)
    {
        if ($this->key) {
            if (Str::contains($key, '.') && Str::startsWith($key, $this->key)) {
                return true;
            }

            if (! $this->option('close') && $key != $this->key) {
                return false;
            }

            if ($this->option('close') && ! Str::contains($key, $this->key)) {
                return false;
            }
        }

        return true;
    }
private function shouldShowKey($key)
    {
        if ($this->key) {
            if (Str::contains($key, '.') && Str::startsWith($key, $this->key)) {
                return true;
            }

            if (! $this->option('close') && $key != $this->key) {
                return false;
            }

            if ($this->option('close') && ! Str::contains($key, $this->key)) {
                return false;
            }
        }

        return true;
    }
private function shouldShowKey ( $ key ) { if ( $ this -> key ) { if ( Str :: contains ( $ key , '.' ) && Str :: startsWith ( $ key , $ this -> key ) ) { return true ; } if ( ! $ this -> option ( 'close' ) && $ key != $ this -> key ) { return false ; } if ( $ this -> option ( 'close' ) && ! Str :: contains ( $ key , $ this -> key ) ) { return false ; } } return true ; }
Determine if the given key should exist in the output.

@param $key

@return bool
Determine if the given key should exist in the output .