Completed
Push — master ( 444d48...03a603 )
by Yaro
01:52
created
src/Jarboe/Table/Fields/Traits/Relations.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -254,6 +254,9 @@
 block discarded – undo
254 254
         return $this;
255 255
     }
256 256
 
257
+    /**
258
+     * @return integer
259
+     */
257 260
     abstract public function getModel();
258 261
     abstract public function isMultiple();
259 262
 }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,12 +29,12 @@  discard block
 block discarded – undo
29 29
 
30 30
     public function getRelationMethod($relationIndex = 0)
31 31
     {
32
-        return Arr::get($this->relations, $relationIndex .'.method');
32
+        return Arr::get($this->relations, $relationIndex.'.method');
33 33
     }
34 34
 
35 35
     public function getRelationTitleField($relationIndex = 0)
36 36
     {
37
-        return Arr::get($this->relations, $relationIndex .'.title');
37
+        return Arr::get($this->relations, $relationIndex.'.title');
38 38
     }
39 39
 
40 40
     public function relation(string $method, string $titleField, string $groupTitle = '')
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
 
235 235
     public function isRelationField()
236 236
     {
237
-        return (bool) $this->relations;
237
+        return (bool)$this->relations;
238 238
     }
239 239
 
240 240
     public function setRelationSearchUrl($url)
Please login to merge, or discard this patch.
src/Jarboe/Console/Commands/Make/Tool.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -30,10 +30,10 @@  discard block
 block discarded – undo
30 30
      */
31 31
     public function handle()
32 32
     {
33
-        $className = (string) $this->argument('class');
33
+        $className = (string)$this->argument('class');
34 34
 
35
-        $packagePath = __DIR__ .'/../../../../';
36
-        $stub = file_get_contents($packagePath .'stubs/tool.stub');
35
+        $packagePath = __DIR__.'/../../../../';
36
+        $stub = file_get_contents($packagePath.'stubs/tool.stub');
37 37
 
38 38
         $position = $this->choice('Tool position?', [
39 39
             ToolInterface::POSITION_HEADER,
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
             ToolInterface::POSITION_BODY_BOTTOM,
42 42
             ToolInterface::POSITION_BODY_BOTH,
43 43
         ]);
44
-        $position = strtoupper('position_'. $position);
44
+        $position = strtoupper('position_'.$position);
45 45
         $ident = Str::random();
46 46
         $view = Str::snake($className);
47 47
 
@@ -49,10 +49,10 @@  discard block
 block discarded – undo
49 49
         $filepath = app_path(sprintf('Jarboe/Toolbar/%s.php', $className));
50 50
 
51 51
         if (!File::exists(app_path('Jarboe/Toolbar'))) {
52
-            File::makeDirectory(app_path('Jarboe/Toolbar'),0775,true,false);
52
+            File::makeDirectory(app_path('Jarboe/Toolbar'), 0775, true, false);
53 53
         }
54 54
         File::put($filepath, $tool);
55 55
 
56
-        $this->info('Created: '. $filepath);
56
+        $this->info('Created: '.$filepath);
57 57
     }
58 58
 }
Please login to merge, or discard this patch.