Passed
Branch master (82fac4)
by Henri
01:42 queued 21s
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/Upload.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
     /* NOTE: Must already have the Model returned from a query */
24 24
     $user->save();
25 25
 
26
-}catch(DatamanagerException $er){
26
+} catch(DatamanagerException $er){
27 27
 
28 28
     die("Code Error: {$er->getCode()}, Line: {$er->getLine()}, File: {$er->getFile()}, Message: {$er->getMessage()}.");
29 29
 
Please login to merge, or discard this patch.
examples/Select.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
     /* Searches for all records and returns an array of Model\User objects */
58 58
     $results = $entity->find()->execute()->toEntity();
59 59
 
60
-}catch(DatamanagerException $er){
60
+} catch(DatamanagerException $er){
61 61
 
62 62
     die("Code Error: {$er->getCode()}, Line: {$er->getLine()}, File: {$er->getFile()}, Message: {$er->getMessage()}.");
63 63
 
Please login to merge, or discard this patch.
examples/Remove.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     /* OR */
25 25
     $entity->remove(true);
26 26
 
27
-}catch(DatamanagerException $er){
27
+} catch(DatamanagerException $er){
28 28
 
29 29
     die("Code Error: {$er->getCode()}, Line: {$er->getLine()}, File: {$er->getFile()}, Message: {$er->getMessage()}.");
30 30
 
Please login to merge, or discard this patch.
examples/Insert.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     /* Insert entity in database */
25 25
     $entity->persist();
26 26
 
27
-}catch(DatamanagerException $er){
27
+} catch(DatamanagerException $er){
28 28
 
29 29
     die("Code Error: {$er->getCode()}, Line: {$er->getLine()}, File: {$er->getFile()}, Message: {$er->getMessage()}.");
30 30
 
Please login to merge, or discard this patch.