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 (187)

src/Jobs/FlushRows.php (17 issues)

1
<?php
2
0 ignored issues
show
Missing file doc comment
Loading history...
3
namespace BristolSU\AirTable\Jobs;
4
5
use BristolSU\AirTable\AirTable;
6
use Illuminate\Bus\Queueable;
7
use Illuminate\Contracts\Queue\ShouldQueue;
8
use Illuminate\Foundation\Bus\Dispatchable;
9
use Illuminate\Support\Facades\Log;
10
11
class FlushRows implements ShouldQueue
0 ignored issues
show
Missing doc comment for class FlushRows
Loading history...
12
{
13
    use Dispatchable, Queueable;
14
15
    private string $apiKey;
0 ignored issues
show
Private member variable "apiKey" must be prefixed with an underscore
Loading history...
16
17
    private string $baseId;
0 ignored issues
show
Private member variable "baseId" must be prefixed with an underscore
Loading history...
18
19
    private string $tableName;
0 ignored issues
show
Private member variable "tableName" must be prefixed with an underscore
Loading history...
20
21
    private bool $debug = false;
0 ignored issues
show
Private member variable "debug" must be prefixed with an underscore
Loading history...
22
23 5
    public function __construct(string $apiKey, string $baseId, string $tableName)
0 ignored issues
show
Missing doc comment for function __construct()
Loading history...
24
    {
25 5
        $this->apiKey = $apiKey;
26 5
        $this->baseId = $baseId;
27 5
        $this->tableName = $tableName;
28 5
    }
29
30 1
    public function handle(AirTable $airTable)
0 ignored issues
show
Missing doc comment for function handle()
Loading history...
31
    {
32 1
        $airTable->setApiKey($this->apiKey);
33 1
        $airTable->setBaseId($this->baseId);
34 1
        $airTable->setTableName($this->tableName);
35 1
        $this->log('Retrieving IDs');
36 1
        $ids = $airTable->getIdsFromTable();
37 1
        $this->log('Retrieved IDs');
38 1
        $this->log('Deleting Rows');
39 1
        foreach(array_chunk($ids, 50) as $idsToDelete) {
0 ignored issues
show
Expected "foreach (...) {\n"; found "foreach(...) {\n"
Loading history...
40 1
            dispatch((new DeleteRows(
0 ignored issues
show
The opening parenthesis of a multi-line function call should be the last content on the line.
Loading history...
41 1
                $idsToDelete,
42 1
                $this->apiKey,
43 1
                $this->baseId,
44 1
                $this->tableName)
0 ignored issues
show
This line of the multi-line function call does not seem to be indented correctly. Expected 12 spaces, but found 16.
Loading history...
For multi-line function calls, the closing parenthesis should be on a new line.

If a function call spawns multiple lines, the coding standard suggests to move the closing parenthesis to a new line:

someFunctionCall(
    $firstArgument,
    $secondArgument,
    $thirdArgument
); // Closing parenthesis on a new line.
Loading history...
45 1
            )->withDebug($this->debug));
0 ignored issues
show
For multi-line function calls, the closing parenthesis should be on a new line.

If a function call spawns multiple lines, the coding standard suggests to move the closing parenthesis to a new line:

someFunctionCall(
    $firstArgument,
    $secondArgument,
    $thirdArgument
); // Closing parenthesis on a new line.
Loading history...
46
        }
47 1
    }
48
49 4
    public function withDebug(bool $debug)
0 ignored issues
show
Missing doc comment for function withDebug()
Loading history...
50
    {
51 4
        $this->debug = $debug;
52 4
        return $this;
53
    }
54
55 1
    private function log(string $string)
0 ignored issues
show
Private method name "FlushRows::log" must be prefixed with an underscore
Loading history...
Missing doc comment for function log()
Loading history...
56
    {
57 1
        if($this->debug) {
0 ignored issues
show
Expected "if (...) {\n"; found "if(...) {\n"
Loading history...
58
            Log::debug($string);
59
        }
60
    }
61
}