Completed
Push — master ( b8ae50...5a01e4 )
by Surajudeen
155:11
created
index.php 1 patch
Unused Use Statements   -9 removed lines patch added patch discarded remove patch
@@ -2,17 +2,8 @@
 block discarded – undo
2 2
 
3 3
 require_once 'vendor/autoload.php';
4 4
 
5
-use Sirolad\Potato;
6
-use Sirolad\DB\DBConnect;
7
-use Sirolad\Entities\Car;
8 5
 use Sirolad\Entities\User;
9
-use Sirolad\Entities\Motor;
10
-use Sirolad\Entities\Bicycle;
11
-use Sirolad\Libraries\Formatter;
12
-use Sirolad\Libraries\TableMapper;
13
-use Sirolad\Exceptions\EmptyTableException;
14 6
 use Sirolad\Exceptions\RecordNotFoundException;
15
-use Sirolad\Exceptions\TableDoesNotExistException;
16 7
 
17 8
 #User Operations
18 9
 //insert
Please login to merge, or discard this patch.
src/Libraries/Formatter.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
  * */
8 8
 namespace Sirolad\Libraries;
9 9
 
10
-use Sirolad\Exception;
11 10
 use Sirolad\Interfaces\FormatterInterface;
12 11
 
13 12
 /**
Please login to merge, or discard this patch.
src/Libraries/TableMapper.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,6 @@
 block discarded – undo
12 12
 use Sirolad\DB\DBConnect;
13 13
 use Sirolad\Libraries\Formatter;
14 14
 use Sirolad\Interfaces\TableMapperInterface;
15
-use Sirolad\Exceptions\TableDoesNotExistException;
16 15
 
17 16
 /**
18 17
  *
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,8 +36,7 @@
 block discarded – undo
36 36
             }
37 37
         } catch (PDOException $e) {
38 38
             return $e->getMessage();
39
-        }
40
-        finally {
39
+        } finally {
41 40
             $dbConnect = null;
42 41
         }
43 42
     }
Please login to merge, or discard this patch.
src/Potato.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,6 @@
 block discarded – undo
18 18
 use Sirolad\Interfaces\PotatoInterface;
19 19
 use Sirolad\Exceptions\EmptyTableException;
20 20
 use Sirolad\Exceptions\RecordNotFoundException;
21
-use Sirolad\Exceptions\TableDoesNotExistException;
22 21
 
23 22
 /**
24 23
  * Potato is the main class which is not to be instantiated.
Please login to merge, or discard this patch.
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -104,8 +104,7 @@  discard block
 block discarded – undo
104 104
             }
105 105
         } catch (RecordNotFoundException $e) {
106 106
             return $e->message();
107
-        }
108
-        finally {
107
+        } finally {
109 108
             $dbConnect = null;
110 109
         }
111 110
     }
@@ -129,8 +128,7 @@  discard block
 block discarded – undo
129 128
             }
130 129
         } catch (PDOException $e) {
131 130
             return $e->getMessage();
132
-        }
133
-        finally {
131
+        } finally {
134 132
             $dbConn = null;
135 133
         }
136 134
     }
@@ -158,8 +156,7 @@  discard block
 block discarded – undo
158 156
             return $e->getMessage();
159 157
         } catch (RecordNotFoundException $e) {
160 158
             return $e->message();
161
-        }
162
-        finally {
159
+        } finally {
163 160
             $dbConn = null;
164 161
         }
165 162
 
@@ -186,8 +183,7 @@  discard block
 block discarded – undo
186 183
             }
187 184
         } catch (PDOException $e) {
188 185
             echo $e->getMessage();
189
-        }
190
-        finally {
186
+        } finally {
191 187
             $dbConn = null;
192 188
         }
193 189
     }
Please login to merge, or discard this patch.