Passed
Branch master (ea1420)
by Henri
07:10
created
src/CrudTrait.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Datamanager.php 1 patch
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -374,7 +374,7 @@  discard block
 block discarded – undo
374 374
             }
375 375
 
376 376
             $this->transaction('commit');
377
-        }catch(Exception $er){
377
+        } catch(Exception $er){
378 378
             $this->transaction('rollback');
379 379
             throw $er;
380 380
         }
@@ -418,7 +418,7 @@  discard block
 block discarded – undo
418 418
             
419 419
             $this->transaction('commit');
420 420
 
421
-        }catch(Exception $er){
421
+        } catch(Exception $er){
422 422
             $this->transaction('rollback');
423 423
             throw $er;
424 424
         }
@@ -481,7 +481,7 @@  discard block
 block discarded – undo
481 481
                     $where .= " {$key} {$v[0]} {$v[1]} :q_{$v[0]} ";
482 482
                     $whereData["q_{$v[0]}"] = $v[2];
483 483
                 }
484
-            }else{
484
+            } else{
485 485
                 $where .= " {$key} {$value[0]} {$value[1]} :q_{$value[0]} ";
486 486
                 $whereData["q_{$value[0]}"] = $value[2];
487 487
             }
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($er->getCode().'  -  '.$er->getMessage());
52 52
 
Please login to merge, or discard this patch.