mirror of
https://github.com/joomla-extensions/patchtester.git
synced 2024-09-27 20:19:01 +00:00
Fix PHPCS issues
This commit is contained in:
parent
f479a355c3
commit
bf2b6d27bc
@ -193,7 +193,8 @@ class PullModel extends \JModelBase
|
|||||||
throw new \RuntimeException(sprintf(\JText::_('COM_PATCHTESTER_FILE_MODIFIED_DOES_NOT_EXIST_S'), $file->old));
|
throw new \RuntimeException(sprintf(\JText::_('COM_PATCHTESTER_FILE_MODIFIED_DOES_NOT_EXIST_S'), $file->old));
|
||||||
}
|
}
|
||||||
|
|
||||||
$url = 'https://raw.github.com/' . urlencode($pull->head->user->login) . '/' . urlencode($pull->head->repo->name) . '/' . urlencode($pull->head->ref) . '/' . $file->new;
|
$url = 'https://raw.github.com/' . urlencode($pull->head->user->login) . '/' . urlencode($pull->head->repo->name)
|
||||||
|
. '/' . urlencode($pull->head->ref) . '/' . $file->new;
|
||||||
|
|
||||||
$file->body = $transport->get($url)->body;
|
$file->body = $transport->get($url)->body;
|
||||||
}
|
}
|
||||||
|
@ -64,7 +64,7 @@ class PullsModel extends \JModelDatabase
|
|||||||
$db = $this->getDb();
|
$db = $this->getDb();
|
||||||
|
|
||||||
$db->setQuery(
|
$db->setQuery(
|
||||||
$db->getQuery(true)
|
$db->getQuery(true)
|
||||||
->select('*')
|
->select('*')
|
||||||
->from($db->quoteName('#__patchtester_tests'))
|
->from($db->quoteName('#__patchtester_tests'))
|
||||||
->where($db->quoteName('applied') . ' = 1')
|
->where($db->quoteName('applied') . ' = 1')
|
||||||
|
Loading…
Reference in New Issue
Block a user