From eb7e2ac02d652ac1ec9c842b14e1efbc27e852fc Mon Sep 17 00:00:00 2001 From: AndreaChirulescu Date: Fri, 9 Apr 2021 16:53:04 +0200 Subject: Beuatified files after using editconfig with notepad++ --- includes/band.php | 107 +++++++++++++++++++++++++++--------------------------- 1 file changed, 54 insertions(+), 53 deletions(-) (limited to 'includes/band.php') diff --git a/includes/band.php b/includes/band.php index 12e80f4..9ed7a53 100644 --- a/includes/band.php +++ b/includes/band.php @@ -1,53 +1,54 @@ -. - */ - -if ( !class_exists('GiglogAdmin_Band') ) { - class GiglogAdmin_Band - { - static function create($name) - { - global $wpdb; - - $wpdb->insert('wpg_bands', array( - 'id' => '', - 'wpgband_name' => $name - )); - - return $wpdb->insert_id; - } - - static function find_or_create($name) - { - global $wpdb; - - $bandsql = 'SELECT id FROM wpg_bands WHERE upper(wpgband_name)="' . $name . '"'; - $results = $wpdb->get_results($bandsql); - - return $results ? $results[0]->id : GiglogAdmin_Band::create($name); - } - static function all_bands() - { - global $wpdb; - - $results = $wpdb->get_results("select id, wpgband_name as vname from wpg_bands order by wpgband_name"); - - return ($results); - } - - } -} +. + */ + +if ( !class_exists('GiglogAdmin_Band') ) { + class GiglogAdmin_Band + { + static function create($name) + { + global $wpdb; + + $wpdb->insert('wpg_bands', array( + 'id' => '', + 'wpgband_name' => $name + )); + + return $wpdb->insert_id; + } + + static function find_or_create($name) + { + global $wpdb; + + $bandsql = 'SELECT id FROM wpg_bands WHERE upper(wpgband_name)="' . $name . '"'; + $results = $wpdb->get_results($bandsql); + + return $results ? $results[0]->id : GiglogAdmin_Band::create($name); + } + + static function all_bands() + { + global $wpdb; + + $results = $wpdb->get_results("select id, wpgband_name as vname from wpg_bands order by wpgband_name"); + + return ($results); + } + + } +} -- cgit v1.2.3