Skip to content

Commit

Permalink
Merge pull request #28 from spekulatius/fixing-license
Browse files Browse the repository at this point in the history
Fixing license
  • Loading branch information
spekulatius committed May 22, 2016
2 parents df5ebad + 812aabb commit 298dc01
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion code/jobs/CheckComposerSecurityJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Composer security checker job. Runs the task which does the check as a queuedjob.
*
* @author Peter Thaleikis
* @license MIT
* @license BSD-3-Clause
*/
class CheckComposerSecurityJob extends AbstractQueuedJob implements QueuedJob
{
Expand Down
16 changes: 8 additions & 8 deletions code/tasks/CheckComposerSecurityTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,19 @@ public function run($request)
foreach ($packageDetails['advisories'] as $details) {
// check if this vulnerability is already known
$vulnerability = ComposerSecurityVulnerability::get()->filter(array(
'Package' => $package,
'Version' => $packageDetails['version'],
'Title' => $details['title'],
'Package' => $package,
'Version' => $packageDetails['version'],
'Title' => $details['title'],
));

// Is this vulnerability known? No, lets add it.
if ((int) $vulnerability->count() === 0) {
$vulnerability = new ComposerSecurityVulnerability();
$vulnerability->Package = $package;
$vulnerability->Version = $packageDetails['version'];
$vulnerability->Title = $details['title'];
$vulnerability->ExternalLink = $details['link'];
$vulnerability->CVE = $details['cve'];
$vulnerability->Package = $package;
$vulnerability->Version = $packageDetails['version'];
$vulnerability->Title = $details['title'];
$vulnerability->ExternalLink = $details['link'];
$vulnerability->CVE = $details['cve'];
$vulnerability->write();

// add the new entries to the list of the remaining entries
Expand Down

0 comments on commit 298dc01

Please sign in to comment.