Completed
Push — master ( c52783...cd75c7 )
by Gabriel
06:40 queued 10s
created
src/HasMedia/StandardCollections/FilesShortcodes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
     public function addFileFromContent($content, $name)
49 49
     {
50 50
         $path = sys_get_temp_dir();
51
-        $fullPath = $path.DIRECTORY_SEPARATOR.$name;
51
+        $fullPath = $path . DIRECTORY_SEPARATOR . $name;
52 52
         file_put_contents($fullPath, $content);
53 53
         $this->addFile($fullPath);
54 54
     }
Please login to merge, or discard this patch.
src/PathGenerator/AbstractPathGenerator.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
         $basePath = self::getBasePathForMedia($media);
20 20
         $originalPath = $media->getCollection()->getOriginalPath();
21 21
         if (!empty($originalPath)) {
22
-            $basePath .= DIRECTORY_SEPARATOR.$media->getCollection()->getOriginalPath();
22
+            $basePath .= DIRECTORY_SEPARATOR . $media->getCollection()->getOriginalPath();
23 23
         }
24 24
 
25 25
         return $basePath;
@@ -32,9 +32,9 @@  discard block
 block discarded – undo
32 32
      */
33 33
     public static function getBasePathForMedia($media)
34 34
     {
35
-        return '/'.$media->getCollection()->getName()
36
-            .'/'.static::getFolderNameForMedia($media)
37
-            .'/'.$media->getModel()->getPrimaryKey()
35
+        return '/' . $media->getCollection()->getName()
36
+            .'/' . static::getFolderNameForMedia($media)
37
+            .'/' . $media->getModel()->getPrimaryKey()
38 38
             .'/';
39 39
     }
40 40
 
@@ -61,6 +61,6 @@  discard block
 block discarded – undo
61 61
      */
62 62
     public static function getBasePathForMediaConversion($media, $conversionName)
63 63
     {
64
-        return self::getBasePathForMedia($media).DIRECTORY_SEPARATOR.$conversionName;
64
+        return self::getBasePathForMedia($media) . DIRECTORY_SEPARATOR . $conversionName;
65 65
     }
66 66
 }
Please login to merge, or discard this patch.
src/Media/Traits/FileMethodsTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -98,8 +98,8 @@
 block discarded – undo
98 98
 
99 99
         if ($conversionName) {
100 100
             $path = $this->getBasePath()
101
-                .DIRECTORY_SEPARATOR.$conversionName
102
-                .DIRECTORY_SEPARATOR.$this->getName();
101
+                .DIRECTORY_SEPARATOR . $conversionName
102
+                .DIRECTORY_SEPARATOR . $this->getName();
103 103
         }
104 104
 
105 105
         return $path;
Please login to merge, or discard this patch.