Skip to content

Commit 1190734

Browse files
author
Phil Sturgeon
committed
Destatificated the Format class.
1 parent f9fd37a commit 1190734

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

application/libraries/Format.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class Format {
2424
* @param string data format the file was provided in
2525
* @return Factory
2626
*/
27-
public static function factory($data, $from_type = null)
27+
public function factory($data, $from_type = null)
2828
{
2929
// Stupid stuff to emulate the "new static()" stuff in this libraries PHP 5.3 equivilent
3030
$class = __CLASS__;
@@ -68,7 +68,7 @@ public function to_array($data = null)
6868
{
6969
if (is_object($value) or is_array($value))
7070
{
71-
$array[$key] = static::to_array($value);
71+
$array[$key] = $this->to_array($value);
7272
}
7373

7474
else

0 commit comments

Comments
 (0)