Passed
Push — master ( 0dbe95...e58ec5 )
by Prateek
10:08 queued 06:33
created
src/Models/Types/LaragenType.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -5,17 +5,17 @@  discard block
 block discarded – undo
5 5
 use Prateekkarki\Laragen\Models\TypeResolver;
6 6
 
7 7
 /**
8
-  * The LaragenType abstract class. This class cannot be instantiated. It's implementations are used to create new types.
9
-  * Column instances are created from types that are implementations of this class.
10
-  *
11
-  * @method integer getSize()
12
-  * @method integer getDataType()
13
-  * @method array getPivotColumns()
14
-  * @method void setSize()
15
-  * @method void setIsRequired()
16
-  * @method void setIsUnique()
17
-  * @method void setIsDisplay()
18
-  */
8
+ * The LaragenType abstract class. This class cannot be instantiated. It's implementations are used to create new types.
9
+ * Column instances are created from types that are implementations of this class.
10
+ *
11
+ * @method integer getSize()
12
+ * @method integer getDataType()
13
+ * @method array getPivotColumns()
14
+ * @method void setSize()
15
+ * @method void setIsRequired()
16
+ * @method void setIsUnique()
17
+ * @method void setIsDisplay()
18
+ */
19 19
 abstract class LaragenType
20 20
 {
21 21
     /**
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
 
213 213
     public function getTextRows() {
214 214
         if (!$this->size) {
215
-           return 4;
215
+            return 4;
216 216
         }
217 217
 
218 218
         return floor($this->getsize() / 120);
Please login to merge, or discard this patch.
src/Models/Module.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -100,8 +100,9 @@
 block discarded – undo
100 100
         foreach ($moduleStructure as $columnName => $columnOptions) {
101 101
             $column = TypeResolver::getType($this->name, $columnName, $columnOptions);
102 102
             $this->columnsData[$columnName] = $column;
103
-            if ($column->isDisplay())
104
-                $this->displayColumns[] = $column;
103
+            if ($column->isDisplay()) {
104
+                            $this->displayColumns[] = $column;
105
+            }
105 106
         }
106 107
 
107 108
         if (sizeof($this->displayColumns) == 0) {
Please login to merge, or discard this patch.