Passed
Push — master ( 620cae...c5a08c )
by Henri
01:20
created
src/CrudTrait.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
examples/index.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Datamanager.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@
 block discarded – undo
137 137
             $this->check_fail();
138 138
 
139 139
             $this->transaction('commit');
140
-        }catch(Exception $er){
140
+        } catch(Exception $er){
141 141
             $this->transaction('rollback');
142 142
             throw $er;
143 143
         }
Please login to merge, or discard this patch.
src/DataTrait.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -266,7 +266,7 @@
 block discarded – undo
266 266
             
267 267
             $this->transaction('commit');
268 268
 
269
-        }catch(Exception $er){
269
+        } catch(Exception $er){
270 270
             $this->transaction('rollback');
271 271
             throw $er;
272 272
         }
Please login to merge, or discard this patch.