@@ -813,15 +813,15 @@ discard block |
||
813 | 813 | $this->enable = 0; |
814 | 814 | $this->icms = 1; |
815 | 815 | $this->billing = 0; |
816 | - $this->registerDate = new \DateTime('now'); |
|
817 | - $this->people = new \Doctrine\Common\Collections\ArrayCollection(); |
|
818 | - $this->config = new \Doctrine\Common\Collections\ArrayCollection(); |
|
819 | - $this->company = new \Doctrine\Common\Collections\ArrayCollection(); |
|
820 | - $this->user = new \Doctrine\Common\Collections\ArrayCollection(); |
|
821 | - $this->document = new \Doctrine\Common\Collections\ArrayCollection(); |
|
822 | - $this->address = new \Doctrine\Common\Collections\ArrayCollection(); |
|
823 | - $this->email = new \Doctrine\Common\Collections\ArrayCollection(); |
|
824 | - $this->phone = new \Doctrine\Common\Collections\ArrayCollection(); |
|
816 | + $this->registerDate = new \DateTime('now'); |
|
817 | + $this->people = new \Doctrine\Common\Collections\ArrayCollection(); |
|
818 | + $this->config = new \Doctrine\Common\Collections\ArrayCollection(); |
|
819 | + $this->company = new \Doctrine\Common\Collections\ArrayCollection(); |
|
820 | + $this->user = new \Doctrine\Common\Collections\ArrayCollection(); |
|
821 | + $this->document = new \Doctrine\Common\Collections\ArrayCollection(); |
|
822 | + $this->address = new \Doctrine\Common\Collections\ArrayCollection(); |
|
823 | + $this->email = new \Doctrine\Common\Collections\ArrayCollection(); |
|
824 | + $this->phone = new \Doctrine\Common\Collections\ArrayCollection(); |
|
825 | 825 | $this->billingDays = 'daily'; |
826 | 826 | $this->paymentTerm = 1; |
827 | 827 | |
@@ -1159,7 +1159,7 @@ discard block |
||
1159 | 1159 | } |
1160 | 1160 | public function getOneDocument(): ?Document |
1161 | 1161 | { |
1162 | - $documents = $this->getDocument()->filter(function ($peopleDocument) { |
|
1162 | + $documents = $this->getDocument()->filter(function($peopleDocument) { |
|
1163 | 1163 | if ($peopleDocument->getPeople()->getPeopleType() == 'F') { |
1164 | 1164 | return $peopleDocument->getDocumentType()->getDocumentType() == 'CPF'; |
1165 | 1165 | } |