@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | $stmt = Connect::getInstance()->prepare("{$query}"); |
30 | 30 | $stmt->execute($data); |
31 | 31 | return $stmt->fetchAll(PDO::FETCH_ASSOC); |
32 | - }catch(Exception $exception){ |
|
32 | + } catch(Exception $exception){ |
|
33 | 33 | $this->fail = $exception; |
34 | 34 | } |
35 | 35 | return []; |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | $stmt = Connect::getInstance()->prepare("DESCRIBE {$this->table}"); |
42 | 42 | $stmt->execute(); |
43 | 43 | return $stmt->fetchAll(PDO::FETCH_ASSOC); |
44 | - }catch(Exception $exception){ |
|
44 | + } catch(Exception $exception){ |
|
45 | 45 | $this->fail = $exception; |
46 | 46 | return null; |
47 | 47 | } |
@@ -46,7 +46,7 @@ |
||
46 | 46 | ['name','=','Other Name'], |
47 | 47 | 'OR' => ['email','LIKE','[email protected]'] |
48 | 48 | ])->execute(); |
49 | -}catch(Exception $er){ |
|
49 | +} catch(Exception $er){ |
|
50 | 50 | |
51 | 51 | die($er->getCode().' - '.$er->getMessage()); |
52 | 52 |
@@ -370,7 +370,7 @@ discard block |
||
370 | 370 | $this->check_fail(); |
371 | 371 | |
372 | 372 | $this->transaction('commit'); |
373 | - }catch(Exception $er){ |
|
373 | + } catch(Exception $er){ |
|
374 | 374 | $this->transaction('rollback'); |
375 | 375 | throw $er; |
376 | 376 | } |
@@ -409,7 +409,7 @@ discard block |
||
409 | 409 | |
410 | 410 | $this->transaction('commit'); |
411 | 411 | |
412 | - }catch(Exception $er){ |
|
412 | + } catch(Exception $er){ |
|
413 | 413 | $this->transaction('rollback'); |
414 | 414 | throw $er; |
415 | 415 | } |
@@ -472,7 +472,7 @@ discard block |
||
472 | 472 | $where .= " {$key} {$v[0]} {$v[1]} :q_{$v[0]} "; |
473 | 473 | $whereData["q_{$v[0]}"] = $v[2]; |
474 | 474 | } |
475 | - }else{ |
|
475 | + } else{ |
|
476 | 476 | $where .= " {$key} {$value[0]} {$value[1]} :q_{$value[0]} "; |
477 | 477 | $whereData["q_{$value[0]}"] = $value[2]; |
478 | 478 | } |