REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 2.36 KB
Close
/home/byroehnu/easetack.com/vendor/fakerphp/faker/src/Faker/Provider/pl_PL/Company.php
Text
Base64
<?php namespace Faker\Provider\pl_PL; class Company extends \Faker\Provider\Company { protected static $formats = [ '{{lastName}}', '{{lastName}}', '{{lastName}} {{companySuffix}}', '{{lastName}} {{companySuffix}}', '{{lastName}} {{companySuffix}}', '{{lastName}} {{companySuffix}}', '{{companyPrefix}} {{lastName}}', '{{lastName}}-{{lastName}}', ]; protected static $companySuffix = ['S.A.', 'i syn', 'sp. z o.o.', 'sp. j.', 'sp. p.', 'sp. k.', 'S.K.A', 's. c.', 'P.P.O.F']; protected static $companyPrefix = ['Grupa', 'Fundacja', 'Stowarzyszenie', 'Spółdzielnia']; /** * @example 'Grupa' */ public static function companyPrefix() { return static::randomElement(static::$companyPrefix); } /** * Register of the National Economy * * @see http://pl.wikipedia.org/wiki/REGON * * @return string 9 digit number */ public static function regon() { $weights = [8, 9, 2, 3, 4, 5, 6, 7]; $regionNumber = self::numberBetween(0, 49) * 2 + 1; $result = [(int) ($regionNumber / 10), $regionNumber % 10]; for ($i = 2, $size = count($weights); $i < $size; ++$i) { $result[$i] = static::randomDigit(); } $checksum = 0; for ($i = 0, $size = count($result); $i < $size; ++$i) { $checksum += $weights[$i] * $result[$i]; } $checksum %= 11; if ($checksum == 10) { $checksum = 0; } $result[] = $checksum; return implode('', $result); } /** * Register of the National Economy, local entity number * * @see http://pl.wikipedia.org/wiki/REGON * * @return string 14 digit number */ public static function regonLocal() { $weights = [2, 4, 8, 5, 0, 9, 7, 3, 6, 1, 2, 4, 8]; $result = str_split(static::regon()); for ($i = count($result), $size = count($weights); $i < $size; ++$i) { $result[$i] = static::randomDigit(); } $checksum = 0; for ($i = 0, $size = count($result); $i < $size; ++$i) { $checksum += $weights[$i] * $result[$i]; } $checksum %= 11; if ($checksum == 10) { $checksum = 0; } $result[] = $checksum; return implode('', $result); } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 9
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
Address.php
15.77 KB
lrw-rw-rw-
2024-11-21 13:46:39
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Color.php
2.67 KB
lrw-rw-rw-
2024-11-21 13:46:39
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Company.php
2.36 KB
lrw-rw-rw-
2024-11-21 13:46:39
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Internet.php
351 B
lrw-rw-rw-
2024-11-21 13:46:39
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
LicensePlate.php
18.86 KB
lrw-rw-rw-
2024-11-21 13:46:39
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Payment.php
6.06 KB
lrw-rw-rw-
2024-11-21 13:46:39
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Person.php
10.56 KB
lrw-rw-rw-
2024-11-21 13:46:39
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
PhoneNumber.php
374 B
lrw-rw-rw-
2024-11-21 13:46:39
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Text.php
193.53 KB
lrw-rw-rw-
2024-11-21 13:46:39
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).