@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | $stmt = Connect::getInstance()->prepare("{$query}"); |
34 | 34 | $stmt->execute($data); |
35 | 35 | return $stmt->fetchAll(PDO::FETCH_ASSOC); |
36 | - }catch(Exception $exception){ |
|
36 | + } catch(Exception $exception){ |
|
37 | 37 | $this->fail = $exception; |
38 | 38 | } |
39 | 39 | return []; |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | $stmt = Connect::getInstance()->prepare("DESCRIBE {$this->table}"); |
46 | 46 | $stmt->execute(); |
47 | 47 | return $stmt->fetchAll(PDO::FETCH_ASSOC); |
48 | - }catch(Exception $exception){ |
|
48 | + } catch(Exception $exception){ |
|
49 | 49 | $this->fail = $exception; |
50 | 50 | return []; |
51 | 51 | } |
@@ -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("Code Error: {$er->getCode()}, Line: {$er->getLine()}, File: {$er->getFile()}, Message: {$er->getMessage()}."); |
52 | 52 |
@@ -248,7 +248,7 @@ discard block |
||
248 | 248 | |
249 | 249 | $this->transaction('commit'); |
250 | 250 | |
251 | - }catch(Exception $er){ |
|
251 | + } catch(Exception $er){ |
|
252 | 252 | $this->transaction('rollback'); |
253 | 253 | throw $er; |
254 | 254 | } |
@@ -327,7 +327,7 @@ discard block |
||
327 | 327 | $this->check_fail(); |
328 | 328 | |
329 | 329 | $this->transaction('commit'); |
330 | - }catch(Exception $er){ |
|
330 | + } catch(Exception $er){ |
|
331 | 331 | $this->transaction('rollback'); |
332 | 332 | throw $er; |
333 | 333 | } |