@@ -59,7 +59,7 @@ class Setting
5959 */
6060 public static function read ($ key = null , $ type = null )
6161 {
62- if (!self ::_tableExists ()) {
62+ if (!self ::_tableExists ()) {
6363 return ;
6464 }
6565
@@ -125,7 +125,7 @@ public static function read($key = null, $type = null)
125125 */
126126 public static function write ($ key , $ value = null , $ options = [])
127127 {
128- if (!self ::_tableExists ()) {
128+ if (!self ::_tableExists ()) {
129129 return ;
130130 }
131131
@@ -175,7 +175,7 @@ public static function write($key, $value = null, $options = [])
175175 */
176176 public static function check ($ key )
177177 {
178- if (!self ::_tableExists ()) {
178+ if (!self ::_tableExists ()) {
179179 return ;
180180 }
181181
@@ -229,7 +229,7 @@ public static function model($model = null)
229229 */
230230 public static function register ($ key , $ value , $ data = [])
231231 {
232- if (!self ::_tableExists ()) {
232+ if (!self ::_tableExists ()) {
233233 return ;
234234 }
235235
@@ -260,16 +260,17 @@ public static function register($key, $value, $data = [])
260260 * @param array $value Options to use.
261261 * @return mixed
262262 */
263- public static function options ($ key , $ value = null ) {
264- if (!self ::_tableExists ()) {
263+ public static function options ($ key , $ value = null )
264+ {
265+ if (!self ::_tableExists ()) {
265266 return ;
266267 }
267268
268- if ($ value ) {
269+ if ($ value ) {
269270 self ::$ _options [$ key ] = $ value ;
270271 }
271272
272- if (array_key_exists ($ key , self ::$ _options )) {
273+ if (array_key_exists ($ key , self ::$ _options )) {
273274 return self ::$ _options [$ key ];
274275 } else {
275276 return false ;
@@ -286,7 +287,7 @@ public static function options($key, $value = null) {
286287 */
287288 public static function autoLoad ()
288289 {
289- if (!self ::_tableExists ()) {
290+ if (!self ::_tableExists ()) {
290291 return ;
291292 }
292293 if (self ::$ _autoloaded ) {
@@ -337,11 +338,12 @@ protected static function _store($key, $value)
337338 *
338339 * @return bool
339340 */
340- protected static function _tableExists () {
341+ protected static function _tableExists ()
342+ {
341343 $ db = ConnectionManager::get ('default ' );
342344 $ tables = $ db ->schemaCollection ()->listTables ();
343345
344- if (in_array ('settings_configurations ' , $ tables )) {
346+ if (in_array ('settings_configurations ' , $ tables )) {
345347 return true ;
346348 }
347349 return false ;
0 commit comments