Completed
Pull Request — master (#14)
by
unknown
15:13 queued 07:44
created
src/Jarboe/Table/Actions/ActionInterface.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -25,6 +25,9 @@
 block discarded – undo
25 25
      */
26 26
     public function tooltip(string $tooltip, string $position = ActionInterface::TOOLTIP_POSITION_TOP): ActionInterface;
27 27
 
28
+    /**
29
+     * @return string
30
+     */
28 31
     public function getTooltip();
29 32
 
30 33
     public function getTooltipPosition(): string;
Please login to merge, or discard this patch.
Jarboe/Http/Controllers/Traits/Handlers/RenderRepeaterItemHandlerTrait.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,11 +2,11 @@
 block discarded – undo
2 2
 
3 3
 namespace Yaro\Jarboe\Http\Controllers\Traits\Handlers;
4 4
 
5
+use Illuminate\Http\JsonResponse;
6
+use Illuminate\Http\Request;
5 7
 use Illuminate\Support\MessageBag;
6 8
 use Illuminate\Support\ViewErrorBag;
7 9
 use Throwable;
8
-use Illuminate\Http\JsonResponse;
9
-use Illuminate\Http\Request;
10 10
 use Yaro\Jarboe\Table\CRUD;
11 11
 use Yaro\Jarboe\Table\Fields\Repeater;
12 12
 
Please login to merge, or discard this patch.
src/Jarboe/Table/Fields/Adapters/RepeaterFile.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace Yaro\Jarboe\Table\Fields\Adapters;
4 4
 
5
-use Illuminate\Http\Request;
6 5
 use Yaro\Jarboe\Table\Fields\File;
7 6
 
8 7
 class RepeaterFile
Please login to merge, or discard this patch.
src/Jarboe/Table/Fields/Deprecated/ImageDeprecated.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,10 +4,10 @@
 block discarded – undo
4 4
 
5 5
 use Illuminate\Http\Request;
6 6
 use Illuminate\Http\UploadedFile;
7
-use Yaro\Jarboe\Table\Fields\Traits\Placeholder;
8
-use Yaro\Jarboe\Table\Fields\Traits\Storage;
9 7
 use Illuminate\Support\Facades\Storage as IlluminateStorage;
10 8
 use Intervention\Image\ImageManagerStatic as InterventionImage;
9
+use Yaro\Jarboe\Table\Fields\Traits\Placeholder;
10
+use Yaro\Jarboe\Table\Fields\Traits\Storage;
11 11
 
12 12
 class ImageDeprecated extends AbstractField
13 13
 {
Please login to merge, or discard this patch.
src/Jarboe/Table/Fields/Image.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -69,6 +69,9 @@
 block discarded – undo
69 69
         return $this;
70 70
     }
71 71
 
72
+    /**
73
+     * @param string $filename
74
+     */
72 75
     protected function storeFile($filepath, $filename, $width = null, $height = null, $x = null, $y = null, $rotate = null, $rotateBackgroundColor = null)
73 76
     {
74 77
         $image = InterventionImage::make($filepath);
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -4,14 +4,13 @@
 block discarded – undo
4 4
 
5 5
 use Illuminate\Http\Request;
6 6
 use Illuminate\Http\UploadedFile;
7
-use Illuminate\Support\Arr;
7
+use Illuminate\Support\Facades\Storage as IlluminateStorage;
8 8
 use Illuminate\Support\Str;
9
+use Intervention\Image\ImageManagerStatic as InterventionImage;
9 10
 use Yaro\Jarboe\Table\Fields\Traits\Filename;
10 11
 use Yaro\Jarboe\Table\Fields\Traits\Nullable;
11 12
 use Yaro\Jarboe\Table\Fields\Traits\Placeholder;
12 13
 use Yaro\Jarboe\Table\Fields\Traits\Storage;
13
-use Illuminate\Support\Facades\Storage as IlluminateStorage;
14
-use Intervention\Image\ImageManagerStatic as InterventionImage;
15 14
 
16 15
 class Image extends AbstractField
17 16
 {
Please login to merge, or discard this patch.
src/Jarboe/Table/Fields/Traits/Storage.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -11,6 +11,9 @@  discard block
 block discarded – undo
11 11
     protected $path = '';
12 12
     protected $multiple = false;
13 13
 
14
+    /**
15
+     * @param string $filename
16
+     */
14 17
     protected function storeFile(UploadedFile $file, $filename, Request $request)
15 18
     {
16 19
         $path = $file->storeAs($this->getPath(), $filename, [
@@ -39,6 +42,9 @@  discard block
 block discarded – undo
39 42
         return $this;
40 43
     }
41 44
 
45
+    /**
46
+     * @return string
47
+     */
42 48
     public function getDisk()
43 49
     {
44 50
         return $this->disk;
@@ -51,6 +57,9 @@  discard block
 block discarded – undo
51 57
         return $this;
52 58
     }
53 59
 
60
+    /**
61
+     * @return string
62
+     */
54 63
     public function getPath()
55 64
     {
56 65
         return $this->path;
Please login to merge, or discard this patch.