From 7a1685ed773ac44d45eb1f97f0abdfbe5e703c77 Mon Sep 17 00:00:00 2001 From: Matt Lody Date: Mon, 17 Oct 2011 21:46:26 +0100 Subject: [PATCH] Removed unnecessary files --- src/Faker/Provider/en_GB/Company.php | 66 ----------- src/Faker/Provider/en_GB/DateTime.php | 157 -------------------------- src/Faker/Provider/en_GB/Name.php | 95 ---------------- 3 files changed, 318 deletions(-) delete mode 100644 src/Faker/Provider/en_GB/Company.php delete mode 100644 src/Faker/Provider/en_GB/DateTime.php delete mode 100644 src/Faker/Provider/en_GB/Name.php diff --git a/src/Faker/Provider/en_GB/Company.php b/src/Faker/Provider/en_GB/Company.php deleted file mode 100644 index 9021dbeb..00000000 --- a/src/Faker/Provider/en_GB/Company.php +++ /dev/null @@ -1,66 +0,0 @@ -format($format); - } - - /** - * @example '15:02:34' - */ - public static function time($format = 'H:i:s') - { - return static::dateTime()->format($format); - } - - /** - * @example DateTime('1999-02-02 11:42:52') - * @return \DateTime - */ - public static function dateTimeBetween($startDate = "-30 years", $endDate = "now") - { - $startTimestamp = strtotime($startDate); - $endTimestamp = strtotime($endDate); - $timestamp = mt_rand($startTimestamp, $endTimestamp); - - return new \DateTime('@' . $timestamp); - } - - /** - * @example DateTime('1964-04-04 11:02:02') - * @return \DateTime - */ - public static function dateTimeThisCentury() - { - return static::dateTimeBetween("-100 year"); - } - - /** - * @example DateTime('2010-03-10 05:18:58') - * @return \DateTime - */ - public static function dateTimeThisDecade() - { - return static::dateTimeBetween("-10 year"); - } - - /** - * @example DateTime('2011-09-19 09:24:37') - * @return \DateTime - */ - public static function dateTimeThisYear() - { - return static::dateTimeBetween("-1 year"); - } - - /** - * @example DateTime('2011-10-05 12:51:46') - * @return \DateTime - */ - public static function dateTimeThisMonth() - { - return static::dateTimeBetween("-1 month"); - } - - /** - * @example 'am' - */ - public static function amPm() - { - return static::dateTime()->format('a'); - } - - /** - * @example '22' - */ - public static function dayOfMonth() - { - return static::dateTime()->format('d'); - } - - /** - * @example 'Tuesday' - */ - public static function dayOfWeek() - { - return static::dateTime()->format('l'); - } - - /** - * @example '7' - */ - public static function month() - { - return static::dateTime()->format('m'); - } - - /** - * @example 'September' - */ - public static function monthName() - { - return static::dateTime()->format('F'); - } - - /** - * @example 1673 - */ - public static function year() - { - return static::dateTime()->format('Y'); - } - - /** - * @example 'XVII' - */ - public static function century() - { - return static::randomElement(static::$century); - } - -} \ No newline at end of file diff --git a/src/Faker/Provider/en_GB/Name.php b/src/Faker/Provider/en_GB/Name.php deleted file mode 100644 index 14372cb4..00000000 --- a/src/Faker/Provider/en_GB/Name.php +++ /dev/null @@ -1,95 +0,0 @@ -