| @@ -7,9 +7,9 @@ | ||
| 7 | 7 | * Read data config from file |
| 8 | 8 | * |
| 9 | 9 | * @package LP\Helpers |
| 10 | 10 | * @since 4.1.6.4 |
| 11 | - * @version 1.0.0 | |
| 11 | + * @version 1.0.1 | |
| 12 | 12 | */ |
| 13 | 13 | class Config { |
| 14 | 14 | /* |
| 15 | 15 | * All of configurations of items |
| @@ -16,10 +16,8 @@ | ||
| 16 | 16 | * |
| 17 | 17 | * @var array |
| 18 | 18 | */ |
| 19 | 19 | protected static $instance; |
| 20 | - protected $file_name = ''; | |
| 21 | - protected $items = array(); | |
| 22 | 20 | /** |
| 23 | 21 | * @var array Array name files config. |
| 24 | 22 | */ |
| 25 | 23 | protected $config_files = array(); |
| @@ -34,10 +32,8 @@ | ||
| 34 | 32 | * @param array $items |
| 35 | 33 | */ |
| 36 | 34 | protected function __construct( array $items = array() ) { |
| 37 | 35 | $this->dir = LP_PLUGIN_PATH . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR; |
| 38 | - | |
| 39 | - $this->items = $items; | |
| 40 | 36 | } |
| 41 | 37 | |
| 42 | 38 | /** |
| 43 | 39 | * Get the specified configuration value |
| @@ -89,9 +85,9 @@ | ||
| 89 | 85 | return $data_config_by_key; |
| 90 | 86 | } |
| 91 | 87 | } |
| 92 | 88 | |
| 93 | - public static function instance(): self { | |
| 89 | + public static function instance() { | |
| 94 | 90 | if ( is_null( self::$instance ) ) { |
| 95 | 91 | self::$instance = new self(); |
| 96 | 92 | } |
| 97 | 93 | |