Issues (8)

src/GatewayServiceProvider.php (2 issues)

Labels
Severity
1
<?php
2
3
namespace Sinarajabpour1998\Gateway;
4
5
use Sinarajabpour1998\Gateway\Core\TransactionManager;
6
use Sinarajabpour1998\Gateway\Facades\Transaction;
7
use Illuminate\Support\ServiceProvider;
8
9
class GatewayServiceProvider extends ServiceProvider
10
{
11
    /**
12
     * Register services.
13
     *
14
     * @return void
15
     */
16
    public function register()
17
    {
18
        Transaction::shouldProxyTo(TransactionManager::class);
19
    }
20
21
    /**
22
     * Bootstrap services.
23
     *
24
     * @return void
25
     */
26
    public function boot()
27
    {
28
        $this->loadMigrationsFrom(__DIR__ . '/database/migrations');
0 ignored issues
show
The method loadMigrationsFrom() does not exist on Sinarajabpour1998\Gateway\GatewayServiceProvider. ( Ignorable by Annotation )

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

28
        $this->/** @scrutinizer ignore-call */ 
29
               loadMigrationsFrom(__DIR__ . '/database/migrations');

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...
29
30
        $this->publishes([
0 ignored issues
show
The method publishes() does not exist on Sinarajabpour1998\Gateway\GatewayServiceProvider. ( Ignorable by Annotation )

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

30
        $this->/** @scrutinizer ignore-call */ 
31
               publishes([

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...
31
            __DIR__.'/config/gateway.php' =>config_path('gateway.php')
32
        ], 'gateway');
33
    }
34
}
35