Passed
Branch master (1a5a52)
by Henri
03:07 queued 52s
created
src/CrudTrait.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
             $stmt = Connect::getInstance()->prepare("{$query}");
41 41
             $stmt->execute($data);
42 42
             return $stmt->fetchAll(PDO::FETCH_ASSOC);
43
-        }catch(Exception $exception){
43
+        } catch(Exception $exception){
44 44
             $this->fail = new DatamanagerException($exception->getMessage(), $exception->getCode(), $exception);
45 45
         }
46 46
         return [];
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
             $stmt = Connect::getInstance()->prepare("DESCRIBE {$this->table}");
53 53
             $stmt->execute();
54 54
             return $stmt->fetchAll(PDO::FETCH_ASSOC);
55
-        }catch(Exception $exception){
55
+        } catch(Exception $exception){
56 56
             $this->fail = new DatamanagerException($exception->getMessage(), $exception->getCode(), $exception);
57 57
             return [];
58 58
         }
Please login to merge, or discard this patch.
src/EntityTrait.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
             
53 53
             $this->transaction('commit');
54 54
 
55
-        }catch(DatamanagerException $er){
55
+        } catch(DatamanagerException $er){
56 56
             $this->transaction('rollback');
57 57
             throw $er;
58 58
         }
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
             $this->check_fail();
96 96
 
97 97
             $this->transaction('commit');
98
-        }catch(DatamanagerException $er){
98
+        } catch(DatamanagerException $er){
99 99
             $this->transaction('rollback');
100 100
             throw $er;
101 101
         }
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
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
         ['name','=','Other Name'],
52 52
         'OR' => ['email','LIKE','[email protected]']
53 53
     ])->execute();
54
-}catch(DatamanagerException $er){
54
+} catch(DatamanagerException $er){
55 55
 
56 56
     //var_dump($er);
57 57
     die("Code Error: {$er->getCode()}, Line: {$er->getLine()}, File: {$er->getFile()}, Message: {$er->getMessage()}.");
Please login to merge, or discard this patch.