Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
45 | public function macros() |
||
46 | { |
||
47 | Blueprint::macro('tree', function () { |
||
48 | $this->unsignedInteger('parent_id')->nullable()->index(); |
||
|
|||
49 | $this->unsignedInteger('lft')->default(0)->index(); |
||
50 | $this->unsignedInteger('rgt')->default(0)->index(); |
||
51 | $this->unsignedInteger('depth')->default(0); |
||
52 | |||
53 | $this->foreign('parent_id')->references('id')->on($this->table) |
||
54 | ->onUpdate('cascade')->onDelete('cascade'); |
||
55 | }); |
||
56 | |||
57 | Router::macro('tree', function($uri, $action) { |
||
58 | //TODO |
||
59 | }); |
||
60 | } |
||
61 | } |
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.