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.
Completed
Push — master ( 321516...5ae950 )
by Nikhil
08:33
created

CheckPurchaseArrival::handle()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 2
eloc 3
nc 2
nop 0
1
<?php
2
3
namespace App\Console\Commands;
4
5
use App\Purchase;
6
use Illuminate\Console\Command;
7
8
class CheckPurchaseArrival extends Command
9
{
10
    /**
11
     * The name and signature of the console command.
12
     *
13
     * @var string
14
     */
15
    protected $signature = 'purchases:check';
16
17
    /**
18
     * The console command description.
19
     *
20
     * @var string
21
     */
22
    protected $description = 'Check the purchases for arrival.';
23
24
    /**
25
     * Execute the console command.
26
     *
27
     * @return mixed
28
     */
29
    public function handle()
30
    {
31
        foreach (Purchase::delivered()->pendingStorage()->has('notifications', '=', 0)->get() as $purchase) {
0 ignored issues
show
Bug introduced by
The method delivered() does not exist on App\Purchase. Did you maybe mean scopeDelivered()?

This check marks calls to methods that do not seem to exist on an object.

This is most likely the result of a method being renamed without all references to it being renamed likewise.

Loading history...
32
            $purchase->makeNotification();
33
        }
34
    }
35
}
36