GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Issues (66)

src/Client/Commands/MeetingFeatureUpdate.php (2 issues)

Labels
Severity
1
<?php
2
3
namespace Soheilrt\AdobeConnectClient\Client\Commands;
4
5
use Soheilrt\AdobeConnectClient\Client\Abstracts\Command;
6
use Soheilrt\AdobeConnectClient\Client\Converter\Converter;
7
use Soheilrt\AdobeConnectClient\Client\Helpers\StatusValidate;
8
use Soheilrt\AdobeConnectClient\Client\Helpers\StringCaseTransform as SCT;
9
use Soheilrt\AdobeConnectClient\Client\Helpers\ValueTransform as VT;
10
11
/**
12
 * Set a feature.
13
 *
14
 * More info see {@link https://helpx.adobe.com/adobe-connect/webservices/meeting-feature-update.html}
15
 */
16
class MeetingFeatureUpdate extends Command
17
{
18
    /**
19
     * @var array
20
     */
21
    protected $parameters;
22
23
    /**
24
     * @param int    $accountId
25
     * @param string $featureId
26
     * @param bool   $enable
27
     */
28
    public function __construct($accountId, $featureId, $enable)
29
    {
30
        $this->parameters = [
31
            'action'     => 'meeting-feature-update',
32
            'account-id' => (int) $accountId,
33
            'enable'     => VT::toString($enable),
34
        ];
35
36
        $featureId = SCT::toHyphen($featureId);
37
38
        if (mb_strpos($featureId, 'fid-') === false) {
39
            $featureId = 'fid-' . $featureId;
40
        }
41
42
        $this->parameters['feature-id'] = $featureId;
43
    }
44
45
    /**
46
     * {@inheritdoc}
47
     *
48
     * @return bool
49
     */
50
    protected function process()
51
    {
52
        $response = Converter::convert(
53
            $this->client->doGet(
0 ignored issues
show
The method doGet() does not exist on Soheilrt\AdobeConnectCli...lient\Abstracts\Command. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

53
            $this->client->/** @scrutinizer ignore-call */ 
54
                           doGet(

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
54
                $this->parameters + ['session' => $this->client->getSession()]
0 ignored issues
show
The method getSession() does not exist on Soheilrt\AdobeConnectCli...lient\Abstracts\Command. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

54
                $this->parameters + ['session' => $this->client->/** @scrutinizer ignore-call */ getSession()]

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
55
            )
56
        );
57
        StatusValidate::validate($response['status']);
58
59
        return true;
60
    }
61
}
62