Issues (11)

Security Analysis    no request data  

This project does not seem to handle request data directly as such no vulnerable execution paths were found.

  Cross-Site Scripting
Cross-Site Scripting enables an attacker to inject code into the response of a web-request that is viewed by other users. It can for example be used to bypass access controls, or even to take over other users' accounts.
  File Exposure
File Exposure allows an attacker to gain access to local files that he should not be able to access. These files can for example include database credentials, or other configuration files.
  File Manipulation
File Manipulation enables an attacker to write custom data to files. This potentially leads to injection of arbitrary code on the server.
  Object Injection
Object Injection enables an attacker to inject an object into PHP code, and can lead to arbitrary code execution, file exposure, or file manipulation attacks.
  Code Injection
Code Injection enables an attacker to execute arbitrary code on the server.
  Response Splitting
Response Splitting can be used to send arbitrary responses.
  File Inclusion
File Inclusion enables an attacker to inject custom files into PHP's file loading mechanism, either explicitly passed to include, or for example via PHP's auto-loading mechanism.
  Command Injection
Command Injection enables an attacker to inject a shell command that is execute with the privileges of the web-server. This can be used to expose sensitive data, or gain access of your server.
  SQL Injection
SQL Injection enables an attacker to execute arbitrary SQL code on your database server gaining access to user data, or manipulating user data.
  XPath Injection
XPath Injection enables an attacker to modify the parts of XML document that are read. If that XML document is for example used for authentication, this can lead to further vulnerabilities similar to SQL Injection.
  LDAP Injection
LDAP Injection enables an attacker to inject LDAP statements potentially granting permission to run unauthorized queries, or modify content inside the LDAP tree.
  Header Injection
  Other Vulnerability
This category comprises other attack vectors such as manipulating the PHP runtime, loading custom extensions, freezing the runtime, or similar.
  Regex Injection
Regex Injection enables an attacker to execute arbitrary code in your PHP process.
  XML Injection
XML Injection enables an attacker to read files on your local filesystem including configuration files, or can be abused to freeze your web-server process.
  Variable Injection
Variable Injection enables an attacker to overwrite program variables with custom data, and can lead to further vulnerabilities.
Unfortunately, the security analysis is currently not available for your project. If you are a non-commercial open-source project, please contact support to gain access.

src/LoLApi/Api/MatchApi.php (3 issues)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
namespace LoLApi\Api;
4
5
use LoLApi\Result\ApiResult;
6
7
/**
8
 * Class MatchApi
9
 *
10
 * @package LoLApi\Api
11
 * @see     https://developer.riotgames.com/api-methods/
12
 */
13
class MatchApi extends BaseApi
14
{
15
    const API_URL_MATCH_BY_ID = '/lol/match/v3/matches/{matchId}';
16
    const API_URL_MATCH_LIST_BY_ACCOUNT = '/lol/match/v3/matchlists/by-account/{accountId}';
17
    const API_URL_RECENT_MATCH_LIST_BY_ACCOUNT = '/lol/match/v3/matchlists/by-account/{accountId}/recent';
18
    const API_URL_TIMELINES_BY_MATCH_ID = '/lol/match/v3/timelines/by-match/{matchId}';
19
    const API_URL_MATCH_ID_BY_TOURNAMENT_CODE = '/lol/match/v3/matches/by-tournament-code/{tournamentCode}/ids';
20
    const API_URL_MATCH_BY_MATCH_ID_AND_TOURNAMENT_CODE = '/lol/match/v3/matches/{matchId}/by-tournament-code/{tournamentCode}';
21
22
    /**
23 1
     * @param int $matchId
24
     *
25 1
     * @return ApiResult
26 1
     */
27
    public function getMatchByMatchId($matchId)
28 1
    {
29
        $url = str_replace('{matchId}', $matchId, self::API_URL_MATCH_BY_ID);
30 1
31
        return $this->callApiUrl($url, []);
32
    }
33
34
    /**
35
     * @param int   $accountId
36
     * @param array $championIds
37
     * @param array $rankedQueues
38
     * @param array $seasons
39
     * @param int   $beginTime
40
     * @param int   $endTime
41
     * @param int   $beginIndex
42
     * @param int   $endIndex
43
     *
44
     * @return ApiResult
45
     */
46
    public function getMatchListByAccountId($accountId, array $championIds = [], array $rankedQueues = [], array $seasons = [], $beginTime = null, $endTime = null, $beginIndex = null, $endIndex = null)
47
    {
48
        $url             = str_replace('{accountId}', $accountId, self::API_URL_MATCH_LIST_BY_ACCOUNT);
49
        $queryParameters = [];
50
51
        $queryParameters['championIds']  = implode(',', $championIds);
52
        $queryParameters['rankedQueues'] = implode(',', $rankedQueues);
53
        $queryParameters['seasons']      = implode(',', $seasons);
54
        $queryParameters['beginTime']    = $beginTime;
55
        $queryParameters['endTime']      = $endTime;
56
        $queryParameters['beginIndex']   = $beginIndex;
57
        $queryParameters['endIndex']     = $endIndex;
58
59
        return $this->callApiUrl($url, array_filter($queryParameters));
60
    }
61
62
63
    /**
64
     * Get matchlist for last 20 matches played on given account ID and platform ID.
65
     *
66
     * @throws \Exception
67
     */
68
    public function getLastMatchlistByAccountId()
69
    {
70
        throw new \Exception("Method not implemented yet");
71
    }
72
73
    /**
74
     * Get match timeline by match ID.
75
     *
76
     * @throws \Exception
77
     */
78
    public function getTimelineByMatchId()
79
    {
80
        throw new \Exception("Method not implemented yet");
81
    }
82
83
    /**
84
     * Get match IDs by tournament code.
85
     *
86
     * @param string $tournamentCode
87
     *
88
     * @throws \Exception
89
     */
90
    public function getMatchIdByTournamentCode($tournamentCode)
0 ignored issues
show
The parameter $tournamentCode is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
91
    {
92
        throw new \Exception("Method not implemented yet");
93
    }
94
95
    /**
96
     * Get match by match ID and tournament code.
97
     *
98
     * @param int    $matchId
99
     * @param string $tournamentCode
100
     *
101
     * @throws \Exception
102
     */
103
    public function getMatchByMatchIdAndTournamentCode($matchId, $tournamentCode)
0 ignored issues
show
The parameter $matchId is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
The parameter $tournamentCode is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
104
    {
105
        throw new \Exception("Method not implemented yet");
106
    }
107
}
108