Completed
Push — master ( b67f93...250f6a )
by Sam
03:13 queued 01:25
created
src/Generators/Traits/Names.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php namespace Savannabits\JetstreamInertiaGenerator\Generators\Traits;
2 2
 
3
+use Illuminate\Support\Str;
3 4
 use Savannabits\JetstreamInertiaGenerator\Generators\Controller;
4 5
 use Savannabits\JetstreamInertiaGenerator\Generators\Model;
5
-use Illuminate\Support\Str;
6 6
 
7 7
 trait Names
8 8
 {
Please login to merge, or discard this patch.
src/Generators/UpdateRequest.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,5 @@
 block discarded – undo
1 1
 <?php namespace Savannabits\JetstreamInertiaGenerator\Generators;
2 2
 
3
-use Doctrine\DBAL\Schema\ForeignKeyConstraint;
4
-use Illuminate\Support\Str;
5 3
 use Symfony\Component\Console\Input\InputOption;
6 4
 
7 5
 class UpdateRequest extends ClassGenerator {
Please login to merge, or discard this patch.
src/Generators/ViewForm.php 2 patches
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -152,6 +152,11 @@
 block discarded – undo
152 152
         return false;
153 153
     }
154 154
 
155
+    /**
156
+     * @param string $type
157
+     *
158
+     * @return string
159
+     */
155 160
     protected function buildForm($type=null) {
156 161
         $belongsTos = $this->setBelongsToRelations();
157 162
         $relatables = $this->getVisibleColumns($this->tableName, $this->modelVariableName)->filter(function($column) use($belongsTos) {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,5 @@
 block discarded – undo
1 1
 <?php namespace Savannabits\JetstreamInertiaGenerator\Generators;
2 2
 
3
-use Doctrine\DBAL\Schema\ForeignKeyConstraint;
4 3
 use Illuminate\Support\Str;
5 4
 use Symfony\Component\Console\Input\InputOption;
6 5
 
Please login to merge, or discard this patch.
src/Generators/ViewFullForm.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -138,6 +138,9 @@  discard block
 block discarded – undo
138 138
 
139 139
     }
140 140
 
141
+    /**
142
+     * @return string
143
+     */
141 144
     protected function buildForm() {
142 145
 
143 146
         return view('jig::'.$this->view, [
@@ -162,6 +165,9 @@  discard block
 block discarded – undo
162 165
         ])->render();
163 166
     }
164 167
 
168
+    /**
169
+     * @return string
170
+     */
165 171
     protected function buildFormJs() {
166 172
         return view('jig::'.$this->viewJs, [
167 173
             'modelJSName' => $this->formJsRelativePath,
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,5 @@
 block discarded – undo
1 1
 <?php namespace Savannabits\JetstreamInertiaGenerator\Generators;
2 2
 
3
-use Illuminate\Support\Str;
4 3
 use Symfony\Component\Console\Input\InputOption;
5 4
 
6 5
 class ViewFullForm extends ViewGenerator {
Please login to merge, or discard this patch.
src/Generators/ViewIndex.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -75,6 +75,9 @@
 block discarded – undo
75 75
         }
76 76
     }
77 77
 
78
+    /**
79
+     * @return string
80
+     */
78 81
     protected function buildView() {
79 82
 
80 83
         return view('jig::'.$this->view, [
Please login to merge, or discard this patch.
src/Helpers/ApiResponse.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,6 @@
 block discarded – undo
4 4
 namespace Savannabits\JetstreamInertiaGenerator\Helpers;
5 5
 
6 6
 
7
-use Illuminate\Contracts\Pagination\LengthAwarePaginator;
8
-use Illuminate\Support\Collection;
9 7
 use Symfony\Component\HttpFoundation\HeaderBag;
10 8
 
11 9
 class ApiResponse
Please login to merge, or discard this patch.