| Conditions | 4 |
| Paths | 6 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | public function updateSubmitErrors() |
||
| 18 | { |
||
| 19 | $array = array(); |
||
| 20 | foreach ($this->owner->OrderItems() as $item) { |
||
| 21 | if (!$item->AllRequiredQuestionsAnswered()) { |
||
| 22 | $txt = _t("ProductQuestion.PROVIDE_MORE_INFORMATION", "Please answer question in relation to:"); |
||
| 23 | $array[$item->ID] = $txt." <em>".$item->getTableTitle()."</em>"; |
||
| 24 | } |
||
| 25 | } |
||
| 26 | return count($array) ? $array : null; |
||
| 27 | } |
||
| 28 | } |
||
| 29 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.