Completed
Branch master (91f4fe)
by
unknown
15:38
created
src/Models/Model.php 2 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,12 +2,12 @@
 block discarded – undo
2 2
 
3 3
 namespace Opeyemiabiodun\PotatoORM\Models;
4 4
 
5
-use RuntimeException;
6 5
 use InvalidArgumentException;
7 6
 use Opeyemiabiodun\PotatoORM\Connections\Connection;
8 7
 use Opeyemiabiodun\PotatoORM\Connections\PgSqlConnection;
9 8
 use Opeyemiabiodun\PotatoORM\Exceptions\AssignmentException;
10 9
 use Opeyemiabiodun\PotatoORM\Exceptions\PropertyNotFoundException;
10
+use RuntimeException;
11 11
 
12 12
 trait Model
13 13
 {
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
      *
124 124
      * @param int $number Specifies which model instance to find; the 1st, 2nd, 3rd, .....
125 125
      *
126
-     * @return array Returns the particular instance of the model.
126
+     * @return Model Returns the particular instance of the model.
127 127
      */
128 128
     public static function find($number)
129 129
     {
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
     /**
207 207
      * Sets the model's connection.
208 208
      *
209
-     * @param Opeyemiabiodun\PotatoORM\Connections\Connection $connection An instance of Opeyemiabiodun\PotatoORM\Connections\Connection.
209
+     * @param Connection $connection An instance of Opeyemiabiodun\PotatoORM\Connections\Connection.
210 210
      */
211 211
     protected function setConnection(Connection $connection)
212 212
     {
Please login to merge, or discard this patch.
src/Connections/LoadEnvVariablesTrait.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace Opeyemiabiodun\PotatoORM\Connections;
4 4
 
5
-use Exception;
6 5
 use Dotenv\Dotenv;
6
+use Exception;
7 7
 use RuntimeException;
8 8
 
9 9
 trait LoadEnvVariablesTrait
Please login to merge, or discard this patch.
src/Connections/MySqlConnection.php 1 patch
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,12 +2,12 @@
 block discarded – undo
2 2
 
3 3
 namespace Opeyemiabiodun\PotatoORM\Connections;
4 4
 
5
-use PDO;
6
-use PDOException;
7 5
 use InvalidArgumentException;
8 6
 use Opeyemiabiodun\PotatoORM\Connections\Connection;
9
-use Opeyemiabiodun\PotatoORM\Connections\LoadEnvVariablesTrait;
10 7
 use Opeyemiabiodun\PotatoORM\Connections\DatabaseTransactionsTrait;
8
+use Opeyemiabiodun\PotatoORM\Connections\LoadEnvVariablesTrait;
9
+use PDO;
10
+use PDOException;
11 11
 
12 12
 final class MySqlConnection implements Connection
13 13
 {
Please login to merge, or discard this patch.
src/Connections/PgSqlConnection.php 1 patch
Unused Use Statements   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2,13 +2,13 @@
 block discarded – undo
2 2
 
3 3
 namespace Opeyemiabiodun\PotatoORM\Connections;
4 4
 
5
-use PDO;
6
-use PDOException;
7
-use RuntimeException;
8 5
 use InvalidArgumentException;
9 6
 use Opeyemiabiodun\PotatoORM\Connections\Connection;
10
-use Opeyemiabiodun\PotatoORM\Connections\LoadEnvVariablesTrait;
11 7
 use Opeyemiabiodun\PotatoORM\Connections\DatabaseTransactionsTrait;
8
+use Opeyemiabiodun\PotatoORM\Connections\LoadEnvVariablesTrait;
9
+use PDO;
10
+use PDOException;
11
+use RuntimeException;
12 12
 
13 13
 final class PgSqlConnection implements Connection
14 14
 {
Please login to merge, or discard this patch.