@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Defining Interface for class DatabaseQueryInterface. |
|
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 DatabaseQueryInterface. |
|
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,17 +1,17 @@ discard block |
||
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 | |
12 | 12 | interface GetDataInterface |
13 | 13 | { |
14 | - public function all(); |
|
14 | + public function all(); |
|
15 | 15 | |
16 | 16 | public function allDESC($limit); |
17 | 17 | |
@@ -23,5 +23,5 @@ discard block |
||
23 | 23 | |
24 | 24 | public function first(); |
25 | 25 | |
26 | - public function getCount(); |
|
26 | + public function getCount(); |
|
27 | 27 | } |
@@ -214,25 +214,15 @@ |
||
214 | 214 | |
215 | 215 | if (!$this->ValidateExtension()) { |
216 | 216 | die($this->GetMessage()); |
217 | - } |
|
218 | - |
|
219 | - else if (!$this->ValidateSize()) { |
|
217 | + } else if (!$this->ValidateSize()) { |
|
220 | 218 | die($this->GetMessage()); |
221 | - } |
|
222 | - |
|
223 | - else if ($this->ValidateExistance()) { |
|
219 | + } else if ($this->ValidateExistance()) { |
|
224 | 220 | die($this->GetMessage()); |
225 | - } |
|
226 | - |
|
227 | - else if (!$this->ValidateDirectory()) { |
|
221 | + } else if (!$this->ValidateDirectory()) { |
|
228 | 222 | die($this->GetMessage()); |
229 | - } |
|
230 | - |
|
231 | - else if ($this->IsImage && !$this->ValidateImage()) { |
|
223 | + } else if ($this->IsImage && !$this->ValidateImage()) { |
|
232 | 224 | die($this->GetMessage()); |
233 | - } |
|
234 | - |
|
235 | - else { |
|
225 | + } else { |
|
236 | 226 | |
237 | 227 | $FileName = $this->FileName; |
238 | 228 | $TempFileName = $this->TempFileName; |