@@ -4,9 +4,9 @@ |
||
4 | 4 | |
5 | 5 | class TextType extends GeneralType |
6 | 6 | { |
7 | - protected $dataType = 'text'; |
|
7 | + protected $dataType = 'text'; |
|
8 | 8 | protected $formType = 'text'; |
9 | - protected $validationRule = 'string'; |
|
9 | + protected $validationRule = 'string'; |
|
10 | 10 | |
11 | 11 | public function getFormOptions() { |
12 | 12 | $options = ""; |
@@ -5,6 +5,6 @@ |
||
5 | 5 | class IntegerType extends GeneralType |
6 | 6 | { |
7 | 7 | protected $dataType = 'integer'; |
8 | - protected $formType = 'integer'; |
|
9 | - protected $size = false; |
|
8 | + protected $formType = 'integer'; |
|
9 | + protected $size = false; |
|
10 | 10 | } |
@@ -4,9 +4,9 @@ |
||
4 | 4 | |
5 | 5 | class DateType extends GeneralType |
6 | 6 | { |
7 | - protected $dataType = 'date'; |
|
8 | - protected $formType = 'date'; |
|
9 | - protected $size = false; |
|
10 | - protected $validationRule = 'date_format:Y-m-d'; |
|
7 | + protected $dataType = 'date'; |
|
8 | + protected $formType = 'date'; |
|
9 | + protected $size = false; |
|
10 | + protected $validationRule = 'date_format:Y-m-d'; |
|
11 | 11 | |
12 | 12 | } |
@@ -4,7 +4,7 @@ |
||
4 | 4 | |
5 | 5 | class MixedFileType extends SingleType |
6 | 6 | { |
7 | - protected $hasFile = true; |
|
8 | - protected $extensions = '.zip,.doc,.txt,.pdf,.csv'; |
|
9 | - protected $formType = 'file'; |
|
7 | + protected $hasFile = true; |
|
8 | + protected $extensions = '.zip,.doc,.txt,.pdf,.csv'; |
|
9 | + protected $formType = 'file'; |
|
10 | 10 | } |
@@ -4,7 +4,7 @@ |
||
4 | 4 | |
5 | 5 | class ImageType extends SingleType |
6 | 6 | { |
7 | - protected $hasImage = true; |
|
8 | - protected $formType = 'image'; |
|
9 | - protected $extensions = '.png,.jpg,.gif,.bmp,.jpeg'; |
|
7 | + protected $hasImage = true; |
|
8 | + protected $formType = 'image'; |
|
9 | + protected $extensions = '.png,.jpg,.gif,.bmp,.jpeg'; |
|
10 | 10 | } |
@@ -5,7 +5,7 @@ |
||
5 | 5 | class AttachmentType extends MultipleType |
6 | 6 | { |
7 | 7 | protected $hasFile = true; |
8 | - protected $formType = 'multipleFiles'; |
|
8 | + protected $formType = 'multipleFiles'; |
|
9 | 9 | |
10 | 10 | public function getLaragenColumns() |
11 | 11 | { |
@@ -5,7 +5,7 @@ |
||
5 | 5 | class GalleryType extends MultipleType |
6 | 6 | { |
7 | 7 | protected $hasImage = true; |
8 | - protected $formType = 'gallery'; |
|
8 | + protected $formType = 'gallery'; |
|
9 | 9 | |
10 | 10 | public function getLaragenColumns() |
11 | 11 | { |
@@ -4,5 +4,5 @@ |
||
4 | 4 | |
5 | 5 | class SingleType extends FileType |
6 | 6 | { |
7 | - protected $dataType = 'string'; |
|
7 | + protected $dataType = 'string'; |
|
8 | 8 | } |
@@ -9,14 +9,14 @@ discard block |
||
9 | 9 | protected $uniqueFlag; |
10 | 10 | protected $requiredFlag; |
11 | 11 | protected $isDisplay; |
12 | - protected $dataType; |
|
13 | - protected $formType; |
|
14 | - protected $stubs = []; |
|
15 | - protected $size = false; |
|
16 | - protected $validationRule = null; |
|
17 | - protected $moduleName; |
|
18 | - protected $columnName; |
|
19 | - protected $optionString; |
|
12 | + protected $dataType; |
|
13 | + protected $formType; |
|
14 | + protected $stubs = []; |
|
15 | + protected $size = false; |
|
16 | + protected $validationRule = null; |
|
17 | + protected $moduleName; |
|
18 | + protected $columnName; |
|
19 | + protected $optionString; |
|
20 | 20 | |
21 | 21 | public function __construct($moduleName, $columnName, $optionString) |
22 | 22 | { |
@@ -52,11 +52,11 @@ discard block |
||
52 | 52 | } |
53 | 53 | |
54 | 54 | return property_exists($this, $method) ? $this->$method : ""; |
55 | - } |
|
55 | + } |
|
56 | 56 | |
57 | 57 | public function isRelational() |
58 | 58 | { |
59 | - return $this->relationalType; |
|
59 | + return $this->relationalType; |
|
60 | 60 | } |
61 | 61 | |
62 | 62 | public function getSchema() |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | $schema .= ";"; |
69 | 69 | |
70 | 70 | return $schema; |
71 | - } |
|
71 | + } |
|
72 | 72 | |
73 | 73 | public function getValidationLine() |
74 | 74 | { |