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.

Client   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 5
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getFacadeAccessor() 0 3 1
1
<?php
2
3
4
namespace Soheilrt\AdobeConnectClient\Facades;
5
6
7
use Illuminate\Support\Facades\Facade;
8
use Soheilrt\AdobeConnectClient\Client\Contracts\ArrayableInterface as Arrayable;
9
use SplFileInfo;
10
use \Soheilrt\AdobeConnectClient\Client\Entities\SCO;
0 ignored issues
show
Bug introduced by
This use statement conflicts with another class in this namespace, Soheilrt\AdobeConnectClient\Facades\SCO. Consider defining an alias.

Let?s assume that you have a directory layout like this:

.
|-- OtherDir
|   |-- Bar.php
|   `-- Foo.php
`-- SomeDir
    `-- Foo.php

and let?s assume the following content of Bar.php:

// Bar.php
namespace OtherDir;

use SomeDir\Foo; // This now conflicts the class OtherDir\Foo

If both files OtherDir/Foo.php and SomeDir/Foo.php are loaded in the same runtime, you will see a PHP error such as the following:

PHP Fatal error:  Cannot use SomeDir\Foo as Foo because the name is already in use in OtherDir/Foo.php

However, as OtherDir/Foo.php does not necessarily have to be loaded and the error is only triggered if it is loaded before OtherDir/Bar.php, this problem might go unnoticed for a while. In order to prevent this error from surfacing, you must import the namespace with a different alias:

// Bar.php
namespace OtherDir;

use SomeDir\Foo as SomeDirFoo; // There is no conflict anymore.
Loading history...
11
12
/**
13
 * @method static bool login(string $login, string $password) Login in the Service.
14
 * @method static bool logout() Ends the service session
15
 * @method static CommonInfo commonInfo(string $domain = '') Gets the Common Info
16
 * @method static SCO scoInfo(int $scoId) Gets the info about a SCO
17
 * @method static SCO scoCreate(Arrayable $sco) Create a SCO
18
 * @method static bool scoUpdate(Arrayable $sco) Update a SCO
19
 * @method static bool scoDelete(int $scoId) Delete a SCO or a Folder
20
 * @method static SCO[] scoShortcuts(Arrayable $filter = null, Arrayable $sorter = null) Get SCO Shortcuts to SCO
21
 *         different types.
22
 * @method static bool scoMove(int $scoId, int $folderId) Move the SCO to other Folder
23
 * @method static SCO[] scoContents(int $scoId, Arrayable $filter = null, Arrayable $sorter = null) Get the SCO
24
 *         Contents from a folder or from other SCO
25
 * @method static SCORecord[] listRecordings(int $folderId) Provides a list of recordings for a specified folder or SCO
26
 * @method static Principal principalInfo(int $principalId) Gets the info about an user or group
27
 * @method static Principal principalCreate(Arrayable $principal) Create a Principal.
28
 * @method static bool principalUpdate(Arrayable $principal) Update a Principal.
29
 * @method static bool principalDelete(int $principalId) Remove one principal, either user or group
30
 * @method static Principal[] principalList(int $groupId = 0, Arrayable $filter = null, Arrayable $sorter = null)
31
 *         Provides a complete list of users and groups, including primary groups.
32
 * @method static bool userUpdatePassword(int $userId, string $newPassword, string $oldPassword = '') Changes user’s
33
 *         password
34
 * @method static bool groupMembershipUpdate(int $groupId, int $principalId, bool $isMember) Add or remove a principal
35
 *         from a group
36
 * @method static bool permissionUpdate(Arrayable $permission) Updates the principal's permissions to access a SCO or
37
 *         the access mode if the acl-id is a Meeting
38
 * @method static Principal[] permissionsInfo(int $aclId, Arrayable $filter = null, Arrayable $sorter = null) Get a list of
39
 *         principals who have permissions to act on a SCO, Principal or Account
40
 * @method static Permission permissionInfoFromPrincipal(int $aclId, int $principalId) Get the Principal's permission
41
 *         in a SCO, Principal or Account
42
 * @method static bool meetingFeatureUpdate(int $accountId, string $featureId, bool $enable) Set a feature
43
 * @method static bool aclFieldUpdate(int $aclId, string $fieldId, mixed $value, Arrayable $extraParams = null) Updates
44
 *         the passed in Field for the specified ACL
45
 * @method static bool recordingPasscode(int $scoId, string $passcode) Set the passcode on a Recording and turned into
46
 *         public
47
 * @method static int|null scoUpload(int $folderId, string $resourceName, resource|SplFileInfo $file) Uploads a file
48
 *         and then builds the file
49
 * @method static getSession() get current session
50
 * @method static setSession($session) set session
51
 */
52
class Client extends Facade
53
{
54
    protected static function getFacadeAccessor()
55
    {
56
        return \Soheilrt\AdobeConnectClient\Client\Client::class;
57
    }
58
}
59