@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Defining Interface for class GetData. |
|
4 | - * |
|
5 | - * @package Ibonly\PotatoORM\ModelInterface |
|
6 | - * @author Ibraheem ADENIYI <[email protected]> |
|
7 | - * @license MIT <https://opensource.org/licenses/MIT> |
|
8 | - */ |
|
3 | + * Defining Interface for class GetData. |
|
4 | + * |
|
5 | + * @package Ibonly\PotatoORM\ModelInterface |
|
6 | + * @author Ibraheem ADENIYI <[email protected]> |
|
7 | + * @license MIT <https://opensource.org/licenses/MIT> |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | namespace Ibonly\PotatoORM; |
11 | 11 |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Defining Interface for class Model. |
|
4 | - * |
|
5 | - * @package Ibonly\PotatoORM\ModelInterface |
|
6 | - * @author Ibraheem ADENIYI <[email protected]> |
|
7 | - * @license MIT <https://opensource.org/licenses/MIT> |
|
8 | - */ |
|
3 | + * Defining Interface for class Model. |
|
4 | + * |
|
5 | + * @package Ibonly\PotatoORM\ModelInterface |
|
6 | + * @author Ibraheem ADENIYI <[email protected]> |
|
7 | + * @license MIT <https://opensource.org/licenses/MIT> |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | namespace Ibonly\PotatoORM; |
11 | 11 |
@@ -25,6 +25,6 @@ |
||
25 | 25 | */ |
26 | 26 | public function errorMessage() |
27 | 27 | { |
28 | - return "Error: " . $this->getMessage(); |
|
28 | + return "Error: ".$this->getMessage(); |
|
29 | 29 | } |
30 | 30 | } |
31 | 31 | \ No newline at end of file |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Defining Interface for class SchemaInterface. |
|
4 | - * |
|
5 | - * @package Ibonly\PotatoORM\DatabaseQueryInterface |
|
6 | - * @author Ibraheem ADENIYI <[email protected]> |
|
7 | - * @license MIT <https://opensource.org/licenses/MIT> |
|
8 | - */ |
|
3 | + * Defining Interface for class SchemaInterface. |
|
4 | + * |
|
5 | + * @package Ibonly\PotatoORM\DatabaseQueryInterface |
|
6 | + * @author Ibraheem ADENIYI <[email protected]> |
|
7 | + * @license MIT <https://opensource.org/licenses/MIT> |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | namespace Ibonly\PotatoORM; |
11 | 11 |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Exception for user already exist |
|
4 | - * |
|
5 | - * @package Ibonly\PotatoORM\DataAlreadyExistException |
|
6 | - * @author Ibraheem ADENIYI <[email protected]> |
|
7 | - * @license MIT <https://opensource.org/licenses/MIT> |
|
8 | - */ |
|
3 | + * Exception for user already exist |
|
4 | + * |
|
5 | + * @package Ibonly\PotatoORM\DataAlreadyExistException |
|
6 | + * @author Ibraheem ADENIYI <[email protected]> |
|
7 | + * @license MIT <https://opensource.org/licenses/MIT> |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | namespace Ibonly\PotatoORM; |
11 | 11 |
@@ -25,6 +25,6 @@ |
||
25 | 25 | */ |
26 | 26 | public function errorMessage() |
27 | 27 | { |
28 | - return "Error: " . $this->getMessage(); |
|
28 | + return "Error: ".$this->getMessage(); |
|
29 | 29 | } |
30 | 30 | } |
31 | 31 | \ No newline at end of file |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Exception for user not found |
|
4 | - * |
|
5 | - * @package Ibonly\PotatoORM\DataNotFoundException |
|
6 | - * @author Ibraheem ADENIYI <[email protected]> |
|
7 | - * @license MIT <https://opensource.org/licenses/MIT> |
|
8 | - */ |
|
3 | + * Exception for user not found |
|
4 | + * |
|
5 | + * @package Ibonly\PotatoORM\DataNotFoundException |
|
6 | + * @author Ibraheem ADENIYI <[email protected]> |
|
7 | + * @license MIT <https://opensource.org/licenses/MIT> |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | namespace Ibonly\PotatoORM; |
11 | 11 |
@@ -25,6 +25,6 @@ |
||
25 | 25 | */ |
26 | 26 | public function errorMessage() |
27 | 27 | { |
28 | - return "Error: " . $this->getMessage(); |
|
28 | + return "Error: ".$this->getMessage(); |
|
29 | 29 | } |
30 | 30 | } |
31 | 31 | \ No newline at end of file |
@@ -53,8 +53,8 @@ |
||
53 | 53 | /** |
54 | 54 | * Get the count of the fetch element |
55 | 55 | */ |
56 | - public function getCount() |
|
57 | - { |
|
56 | + public function getCount() |
|
57 | + { |
|
58 | 58 | return sizeof($this->value); |
59 | - } |
|
59 | + } |
|
60 | 60 | } |
61 | 61 | \ No newline at end of file |
@@ -62,7 +62,7 @@ |
||
62 | 62 | */ |
63 | 63 | public function first() |
64 | 64 | { |
65 | - return json_decode( $this->toJson() ); |
|
65 | + return json_decode($this->toJson()); |
|
66 | 66 | } |
67 | 67 | |
68 | 68 | /** |