These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php namespace Xethron\MigrationsGenerator; |
||
2 | |||
3 | use Illuminate\Support\ServiceProvider; |
||
4 | |||
5 | class MigrationsGeneratorServiceProvider extends ServiceProvider { |
||
6 | |||
7 | /** |
||
8 | * Indicates if loading of the provider is deferred. |
||
9 | * |
||
10 | * @var bool |
||
11 | */ |
||
12 | protected $defer = false; |
||
13 | |||
14 | /** |
||
15 | * Register the service provider. |
||
16 | * |
||
17 | * @return void |
||
18 | */ |
||
19 | public function register() |
||
20 | { |
||
21 | $this->app->bind( |
||
22 | 'migration.generate', |
||
23 | $this->app->share(function($app) { |
||
0 ignored issues
–
show
|
|||
24 | return new MigrateGenerateCommand( |
||
25 | $app->make('Way\Generators\Generator'), |
||
26 | $app->make('Way\Generators\Filesystem\Filesystem'), |
||
27 | $app->make('Way\Generators\Compilers\TemplateCompiler'), |
||
28 | $app->make('migration.repository'), |
||
29 | $app->make('config') |
||
30 | ); |
||
31 | }) |
||
32 | ); |
||
33 | |||
34 | $this->commands('migration.generate'); |
||
35 | |||
36 | // Bind the Repository Interface to $app['migrations.repository'] |
||
37 | $this->app->bind('Illuminate\Database\Migrations\MigrationRepositoryInterface', function($app) { |
||
38 | return $app['migration.repository']; |
||
39 | }); |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * Bootstrap the application events. |
||
44 | * |
||
45 | * @return void |
||
46 | */ |
||
47 | public function boot() |
||
48 | { |
||
49 | } |
||
50 | |||
51 | /** |
||
52 | * Get the services provided by the provider. |
||
53 | * |
||
54 | * @return array |
||
55 | */ |
||
56 | public function provides() |
||
57 | { |
||
58 | return array(); |
||
59 | } |
||
60 | |||
61 | } |
||
62 |
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.