Passed
Push — master ( e7e770...b0a322 )
by Dees
09:02
created
Category
LaravelMedia/Rules/IsBase64Image.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
      */
18 18
     public function passes($attribute, $value)
19 19
     {
20
-        if (! $this->isBase64($value)) {
20
+        if (!$this->isBase64($value)) {
21 21
             return false;
22 22
         }
23 23
 
Please login to merge, or discard this patch.
LaravelMedia/Rules/IsBase64.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
         $values = Arr::wrap($value);
23 23
 
24 24
         foreach ($values as $value) {
25
-            if (! $this->isBase64($value)) {
25
+            if (!$this->isBase64($value)) {
26 26
                 return false;
27 27
             }
28 28
         }
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      */
41 41
     protected function isBase64($value): bool
42 42
     {
43
-        if (! is_string($value)) {
43
+        if (!is_string($value)) {
44 44
             return false;
45 45
         }
46 46
 
Please login to merge, or discard this patch.
LaravelMedia/Rules/IsBase64Type.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
      */
37 37
     public function passes($attribute, $value)
38 38
     {
39
-        if (! $this->isBase64($value)) {
39
+        if (!$this->isBase64($value)) {
40 40
             return false;
41 41
         }
42 42
 
Please login to merge, or discard this patch.
LaravelMedia/Rules/Base64Max.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,11 +36,11 @@
 block discarded – undo
36 36
 
37 37
         // Before we can validate the size we need to make sure that all values
38 38
         // are a base64 string.
39
-        if (! parent::passes($attribute, $values)) {
39
+        if (!parent::passes($attribute, $values)) {
40 40
             return false;
41 41
         }
42 42
 
43
-        $size = array_reduce($values, function ($carry, $value) {
43
+        $size = array_reduce($values, function($carry, $value) {
44 44
             return $carry + $this->getSize($value);
45 45
         });
46 46
 
Please login to merge, or discard this patch.
LaravelMedia/Resources/MediaResource.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
      */
38 38
     public function toArray($request): array
39 39
     {
40
-        if (! $this->forceMediaResource && $this->isImage()) {
40
+        if (!$this->forceMediaResource && $this->isImage()) {
41 41
             return (new MediaImageResource($this->resource))->toArray($request);
42 42
         }
43 43
 
Please login to merge, or discard this patch.
LaravelMedia/Resources/Concerns/HasMedia.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
      */
13 13
     private function addImage(array &$data): void
14 14
     {
15
-        if (! $this->resource->relationLoaded('media')) {
15
+        if (!$this->resource->relationLoaded('media')) {
16 16
             return;
17 17
         }
18 18
 
Please login to merge, or discard this patch.
LaravelMedia/Resources/MediaResourceCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
      */
36 36
     public function toArray($request): array
37 37
     {
38
-        return $this->resource->map(function (MediaResource $resource) use ($request) {
38
+        return $this->resource->map(function(MediaResource $resource) use ($request) {
39 39
             $resource->forceMediaResource = $this->forceMediaResource;
40 40
 
41 41
             return $resource;
Please login to merge, or discard this patch.
LaravelMedia/Managers/MediaManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@
 block discarded – undo
104 104
 
105 105
         preg_match('/data\:\w+\/(.*?)\;/s', $string, $extension);
106 106
 
107
-        if (! is_null($name)) {
107
+        if (!is_null($name)) {
108 108
             if (empty($extension)) {
109 109
                 $format = '%s.%s';
110 110
 
Please login to merge, or discard this patch.