Completed
Push — master ( 672085...644962 )
by Adeniyi
12s
created
src/Database/DatabaseQuery.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,6 @@
 block discarded – undo
13 13
 use PDOException;
14 14
 use Ibonly\PotatoORM\DatabaseQueryInterface;
15 15
 use Ibonly\PotatoORM\ColumnNotExistExeption;
16
-use Ibonly\PotatoORM\InvalidConnectionException;
17 16
 use Ibonly\PotatoORM\TableDoesNotExistException;
18 17
 
19 18
 class DatabaseQuery implements DatabaseQueryInterface
Please login to merge, or discard this patch.
src/Helper/Inflector.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -39,13 +39,13 @@  discard block
 block discarded – undo
39 39
 trait Inflector
40 40
 {
41 41
     /**
42
-    * Pluralizes English nouns.
43
-    *
44
-    * @access public
45
-    * @static
46
-    * @param    string    $word    English noun to pluralize
47
-    * @return string Plural noun
48
-    */
42
+     * Pluralizes English nouns.
43
+     *
44
+     * @access public
45
+     * @static
46
+     * @param    string    $word    English noun to pluralize
47
+     * @return string Plural noun
48
+     */
49 49
     public static function pluralize($word)
50 50
     {
51 51
         $plural = array(
@@ -102,13 +102,13 @@  discard block
 block discarded – undo
102 102
     }
103 103
 
104 104
     /**
105
-    * Singularizes English nouns.
106
-    *
107
-    * @access public
108
-    * @static
109
-    * @param    string    $word    English noun to singularize
110
-    * @return string Singular noun.
111
-    */
105
+     * Singularizes English nouns.
106
+     *
107
+     * @access public
108
+     * @static
109
+     * @param    string    $word    English noun to singularize
110
+     * @return string Singular noun.
111
+     */
112 112
     public function singularize($word)
113 113
     {
114 114
         $singular = array (
Please login to merge, or discard this patch.
src/Helper/Model.php 1 patch
Unused Use Statements   -5 removed lines patch added patch discarded remove patch
@@ -9,17 +9,12 @@
 block discarded – undo
9 9
 
10 10
 namespace Ibonly\PotatoORM;
11 11
 
12
-use PDO;
13
-use Exception;
14
-use PDOException;
15 12
 use Ibonly\PotatoORM\GetData;
16 13
 use Ibonly\PotatoORM\DatabaseQuery;
17 14
 use Ibonly\PotatoORM\ModelInterface;
18 15
 use Ibonly\PotatoORM\UserNotFoundException;
19 16
 use Ibonly\PotatoORM\EmptyDatabaseException;
20 17
 use Ibonly\PotatoORM\SaveUserExistException;
21
-use Ibonly\PotatoORM\ColumnNotExistExeption;
22
-use Ibonly\PotatoORM\InvalidConnectionException;
23 18
 
24 19
 class Model extends DatabaseQuery implements ModelInterface
25 20
 {
Please login to merge, or discard this patch.
src/Helper/GetData.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -53,8 +53,8 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Interface/GetDataInterface.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
23 23
 
24 24
     public function first();
25 25
 
26
-   public function getCount();
26
+    public function getCount();
27 27
 }
Please login to merge, or discard this patch.
src/Interface/RelationshipsInterface.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 
12 12
 interface RelationshipsInterface
13 13
 {
14
-	public function joinClause();
14
+    public function joinClause();
15 15
 
16 16
     public function whereClause($data, $condition);
17 17
 }
18 18
\ No newline at end of file
Please login to merge, or discard this patch.
src/Helper/Schema.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,10 +28,10 @@
 block discarded – undo
28 28
     public function field($type, $fieldName, $length=NULL)
29 29
     {
30 30
         if($length === null){
31
-             $this->fieldDescription[] = $type ." ".$fieldName;
31
+                $this->fieldDescription[] = $type ." ".$fieldName;
32 32
         }else
33 33
         {
34
-         $this->fieldDescription[] = $type ." ".$fieldName." ".$length;
34
+            $this->fieldDescription[] = $type ." ".$fieldName." ".$length;
35 35
         }
36 36
 
37 37
     }
Please login to merge, or discard this patch.
src/Helper/Relationships.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,9 +35,9 @@
 block discarded – undo
35 35
                 $whereAnd = $i > 1 ? 'AND' : 'WHERE';
36 36
                 $output .= ' '.$whereAnd.' '.self::getTableName($connection).'.'.$value->COLUMN_NAME.'='.$value->REFERENCED_TABLE_NAME.'.'.$value->REFERENCED_COLUMN_NAME.' ';
37 37
             }
38
-         } else {
38
+            } else {
39 39
             $output = false;
40
-         }
40
+            }
41 41
         return $output;
42 42
     }
43 43
 
Please login to merge, or discard this patch.