Skip to content

Commit

Permalink
Tidying
Browse files Browse the repository at this point in the history
  • Loading branch information
olvlvl committed Jan 8, 2015
1 parent b0a185e commit 70c0b9b
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 14 deletions.
21 changes: 13 additions & 8 deletions lib/DateTimeFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,19 @@ public function __get($property)
throw new PropertyNotDefined([ $property, $this ]);
}

/**
* Alias to the {@link format()} method.
*
* @param mixed $datetime
* @param string $pattern_or_width_or_skeleton
*
* @return string
*/
public function __invoke($datetime, $pattern_or_width_or_skeleton)
{
return $this->format($datetime, $pattern_or_width_or_skeleton);
}

/**
* Formats a date according to a pattern.
*
Expand Down Expand Up @@ -253,14 +266,6 @@ protected function resolve_pattern($pattern_or_width_or_skeleton)
return $pattern;
}

/**
* Alias to the {@link format()} method.
*/
public function __invoke($datetime, $pattern_or_width_or_skeleton)
{
return $this->format($datetime, $pattern_or_width_or_skeleton);
}

/*
* era (G)
*/
Expand Down
1 change: 0 additions & 1 deletion lib/Locale.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

use ICanBoogie\OffsetNotWritable;
use ICanBoogie\OffsetNotDefined;
use ICanBoogie\PropertyNotDefined;

/**
* Representation of a locale.
Expand Down
2 changes: 0 additions & 2 deletions lib/Numbers.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@

namespace ICanBoogie\CLDR;

use ICanBoogie\PropertyNotDefined;

/**
* Representation of a locale numbers
*
Expand Down
1 change: 0 additions & 1 deletion lib/Territory.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
namespace ICanBoogie\CLDR;

use ICanBoogie\DateTime;
use ICanBoogie\PropertyNotDefined;

/**
* A territory.
Expand Down
2 changes: 0 additions & 2 deletions lib/TerritoryCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@

namespace ICanBoogie\CLDR;

use ICanBoogie\OffsetNotWritable;

/**
* Representation of a territory collection.
*
Expand Down

0 comments on commit 70c0b9b

Please sign in to comment.