| Conditions | 3 |
| Paths | 1 |
| Total Lines | 29 |
| Code Lines | 21 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 7 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 15 | public function boot() |
||
| 16 | { |
||
| 17 | Blueprint::macro('manageable', function () { |
||
| 18 | |||
| 19 | $bigIntegers = config('manageable.big_integers', true); |
||
| 20 | $foreignTable = config('manageable.foreign_table', 'users'); |
||
| 21 | $foreignKey = config('manageable.foreign_key', 'id'); |
||
| 22 | |||
| 23 | $bigIntegers |
||
| 24 | ? $this->unsignedBigInteger('created_by')->nullable()->index() |
||
|
|
|||
| 25 | : $this->unsignedInteger('created_by')->nullable()->index(); |
||
| 26 | $bigIntegers |
||
| 27 | ? $this->unsignedBigInteger('updated_by')->nullable()->index() |
||
| 28 | : $this->unsignedInteger('updated_by')->nullable()->index(); |
||
| 29 | |||
| 30 | $this->foreign('created_by') |
||
| 31 | ->references($foreignKey) |
||
| 32 | ->on($foreignTable) |
||
| 33 | ->onDelete('set null'); |
||
| 34 | |||
| 35 | $this->foreign('updated_by') |
||
| 36 | ->references($foreignKey) |
||
| 37 | ->on($foreignTable) |
||
| 38 | ->onDelete('set null'); |
||
| 39 | }); |
||
| 40 | |||
| 41 | $this->publishes([ |
||
| 42 | __DIR__.'/../config/manageable.php' => config_path('manageable.php') |
||
| 43 | ], 'config'); |
||
| 44 | } |
||
| 55 |
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.