1 | <?php namespace Savannabits\JetstreamInertiaGenerator\Generators\Traits; |
||
6 | trait Helpers { |
||
7 | |||
8 | public function option($key = null) { |
||
11 | |||
12 | /** |
||
13 | * Build the directory for the class if necessary. |
||
14 | * |
||
15 | * @param string $path |
||
16 | * @return string |
||
17 | */ |
||
18 | protected function makeDirectory(string $path): string |
||
26 | |||
27 | /** |
||
28 | * Determine if the file already exists. |
||
29 | * |
||
30 | * @param $path |
||
31 | * @return bool |
||
32 | */ |
||
33 | protected function alreadyExists($path): bool |
||
37 | |||
38 | |||
39 | /** |
||
40 | * Check if provided relation has a table |
||
41 | * |
||
42 | * @param $relationTable |
||
43 | * @return mixed |
||
44 | */ |
||
45 | public function checkRelationTable($relationTable) |
||
49 | |||
50 | /** |
||
51 | * sets Relation of Belongs To Many type |
||
52 | * |
||
53 | * @param $belongsToMany |
||
54 | * @return mixed |
||
55 | */ |
||
56 | //TODO add other relation types |
||
57 | public function setBelongToManyRelation($belongsToMany) |
||
80 | |||
81 | |||
82 | /** |
||
83 | * Determine if the content is already present in the file |
||
84 | * |
||
85 | * @param $path |
||
86 | * @param $content |
||
87 | * @return bool |
||
88 | */ |
||
89 | protected function alreadyAppended($path, $content): bool |
||
96 | |||
97 | } |
||
98 |
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.