Conditions | 5 |
Paths | 16 |
Total Lines | 24 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
121 | public function getConfigArray() |
||
122 | { |
||
123 | $c = [ |
||
124 | 'generator' => 'faker', |
||
125 | 'formatter' => $this->formatter, |
||
126 | ]; |
||
127 | |||
128 | if (null !== $this->arguments) { |
||
129 | $c['arguments'] = $this->arguments; |
||
130 | } |
||
131 | |||
132 | if (null !== $this->locale) { |
||
133 | $c['locale'] = $this->locale; |
||
134 | } |
||
135 | |||
136 | if (null !== $this->unique) { |
||
137 | $c['unique'] = $this->unique; |
||
138 | } |
||
139 | |||
140 | if (null !== $this->date) { |
||
141 | $c['date_format'] = 'Y-m-d H:i:s'; |
||
142 | } |
||
143 | |||
144 | return $c; |
||
145 | } |
||
147 |