Passed
Push — metatags ( 330dca )
by Arnaud
04:17
created
src/Assets/Asset.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -71,25 +71,25 @@  discard block
 block discarded – undo
71 71
         $this->builder = $builder;
72 72
         $this->config = $builder->getConfig();
73 73
         $paths = is_array($paths) ? $paths : [$paths];
74
-        array_walk($paths, function ($path) {
74
+        array_walk($paths, function($path) {
75 75
             if (empty($path)) {
76 76
                 throw new RuntimeException('The path parameter of "asset() can\'t be empty."');
77 77
             }
78 78
         });
79 79
         $this->data = [
80
-            'file'           => '',    // absolute file path
81
-            'filename'       => '',    // filename
82
-            'path_source'    => '',    // public path to the file, before transformations
83
-            'path'           => '',    // public path to the file, after transformations
80
+            'file'           => '', // absolute file path
81
+            'filename'       => '', // filename
82
+            'path_source'    => '', // public path to the file, before transformations
83
+            'path'           => '', // public path to the file, after transformations
84 84
             'missing'        => false, // if file not found, but missing ollowed 'missing' is true
85
-            'ext'            => '',    // file extension
86
-            'type'           => '',    // file type (e.g.: image, audio, video, etc.)
87
-            'subtype'        => '',    // file media type (e.g.: image/png, audio/mp3, etc.)
88
-            'size'           => 0,     // file size (in bytes)
89
-            'content_source' => '',    // file content, before transformations
90
-            'content'        => '',    // file content, after transformations
91
-            'width'          => 0,     // width (in pixels) in case of an image
92
-            'height'         => 0,     // height (in pixels) in case of an image
85
+            'ext'            => '', // file extension
86
+            'type'           => '', // file type (e.g.: image, audio, video, etc.)
87
+            'subtype'        => '', // file media type (e.g.: image/png, audio/mp3, etc.)
88
+            'size'           => 0, // file size (in bytes)
89
+            'content_source' => '', // file content, before transformations
90
+            'content'        => '', // file content, after transformations
91
+            'width'          => 0, // width (in pixels) in case of an image
92
+            'height'         => 0, // height (in pixels) in case of an image
93 93
         ];
94 94
 
95 95
         // handles options
@@ -434,7 +434,7 @@  discard block
 block discarded – undo
434 434
 
435 435
             try {
436 436
                 $img = ImageManager::make($assetResized->data['content_source']);
437
-                $img->resize($width, null, function (\Intervention\Image\Constraint $constraint) {
437
+                $img->resize($width, null, function(\Intervention\Image\Constraint $constraint) {
438 438
                     $constraint->aspectRatio();
439 439
                     $constraint->upsize();
440 440
                 });
Please login to merge, or discard this patch.