Skip to content

Commit

Permalink
removed some commented test code and ran php fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinkhill committed Apr 25, 2015
1 parent 13ad274 commit bf96e99
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 29 deletions.
27 changes: 1 addition & 26 deletions src/Configs/DataTable.php
Expand Up @@ -525,15 +525,10 @@ public function hasFormats()
*/
public function toJson()
{
$json = json_encode(array(
return json_encode(array(
'cols' => $this->cols,
'rows' => $this->rows,
));

// Removes the "" from Date() so it is treated
// as a JS new Date() instead of a string.
//return preg_replace('/"(Date\([0-9,]+\))"/', 'new $1', $json);
return $json;
}

/**
Expand Down Expand Up @@ -561,25 +556,6 @@ private function parseDate($date)
}

return $this->carbonToJsString($carbonDate);
//return $carbonDate->toIso8601String();
}

/**
* Outputs the Carbon object as a valid javascript Date string.
*
* @return string Javscript date declaration
*/
private function _carbonToJsString(Carbon $c)
{
// Javascript
//Wed Apr 15 2015 16:01:22 GMT-0700 (PDT)
//Sun Oct 19 2014 0:00:00 UTC+0000

// Carbon
//"Wed, 01 Oct 2014 00:00:00 +0000"

return $c->format('D M j Y G:i:s TO');
//return $c->toRfc2822String();
}

/**
Expand All @@ -599,5 +575,4 @@ private function carbonToJsString(Carbon $c)
isset($c->second) ? $c->second : 'null'
);
}

}
1 change: 0 additions & 1 deletion src/Lavacharts.php
Expand Up @@ -438,5 +438,4 @@ private function usingComposer()
return false;
}
}

}
2 changes: 0 additions & 2 deletions src/Psr4Autoloader.php
Expand Up @@ -77,7 +77,6 @@ public function loadClass($class)
// work backwards through the namespace names of the fully-qualified
// class name to find a mapped file name
while (false !== $pos = strrpos($prefix, '\\')) {

// retain the trailing namespace separator in the prefix
$prefix = substr($class, 0, $pos + 1);

Expand Down Expand Up @@ -116,7 +115,6 @@ protected function loadMappedFile($prefix, $relative_class)

// look through base directories for this namespace prefix
foreach ($this->prefixes[$prefix] as $base_dir) {

// replace the namespace prefix with the base directory,
// replace namespace separators with directory separators
// in the relative class name, append with .php
Expand Down

0 comments on commit bf96e99

Please sign in to comment.