Server IP : 162.213.251.212 / Your IP : 18.117.100.99 [ Web Server : LiteSpeed System : Linux business55.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : allssztx ( 535) PHP Version : 8.1.31 Disable Function : NONE Domains : 1 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/allssztx/public_html/easybuyer/vendor/fzaninotto/faker/src/Faker/Provider/pt_BR/ |
Upload File : |
<?php namespace Faker\Provider\pt_BR; require_once "check_digit.php"; class Company extends \Faker\Provider\Company { protected static $formats = array( '{{lastName}} {{companySuffix}}', '{{lastName}}-{{lastName}}', '{{lastName}} e {{lastName}}', '{{lastName}} e {{lastName}} {{companySuffix}}', '{{lastName}} Comercial Ltda.' ); protected static $companySuffix = array('e Filhos', 'e Associados', 'Ltda.', 'S.A.'); /** * A random CNPJ number. * @link http://en.wikipedia.org/wiki/CNPJ * @param bool $formatted If the number should have dots/slashes/dashes or not. * @return string */ public function cnpj($formatted = true) { $n = $this->generator->numerify('########0001'); $n .= check_digit($n); $n .= check_digit($n); return $formatted? vsprintf('%d%d.%d%d%d.%d%d%d/%d%d%d%d-%d%d', str_split($n)) : $n; } }