Skip to content

Commit

Permalink
Make Travis a happy robot
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas K. Dionysopoulos committed Dec 5, 2014
1 parent 293e29b commit dbfa014
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions libraries/joomla/updater/updateadapter.php
Expand Up @@ -128,11 +128,13 @@ abstract public function findUpdate($options);
*
* @param int $update_site_id The numeric ID of the update site to enable/disable
* @param bool $enabled Enable the site when true, disable it when false
*
* @return void
*/
protected function toggleUpdateSite($update_site_id, $enabled = true)
{
$update_site_id = (int)$update_site_id;
$enabled = (bool)$enabled;
$update_site_id = (int) $update_site_id;
$enabled = (bool) $enabled;

if (empty($update_site_id))
{
Expand Down Expand Up @@ -165,7 +167,7 @@ protected function toggleUpdateSite($update_site_id, $enabled = true)
*/
protected function getUpdateSiteName($updateSiteId)
{
$updateSiteId = (int)$updateSiteId;
$updateSiteId = (int) $updateSiteId;

if (empty($updateSiteId))
{
Expand Down Expand Up @@ -254,7 +256,8 @@ protected function getUpdateSiteResponse($options = array())
// Log the time it took to load this update site's information
$endTime = microtime(true);
$timeToLoad = sprintf('%0.2f', $endTime - $startTime);
JLog::add("Loading information from update site #{$this->updateSiteId} with name \"$this->updateSiteName\" and URL $url took $timeToLoad seconds", JLog::INFO, 'updater');
JLog::add("Loading information from update site #{$this->updateSiteId} with name " .
"\"$this->updateSiteName\" and URL $url took $timeToLoad seconds", JLog::INFO, 'updater');

if ($response === null || $response->code !== 200)
{
Expand Down

0 comments on commit dbfa014

Please sign in to comment.