aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/FileUtils.php
diff options
context:
space:
mode:
authorVirtualTam <virtualtam@flibidi.net>2018-12-03 00:59:21 +0100
committerVirtualTam <virtualtam@flibidi.net>2019-01-12 22:47:48 +0100
commita0c4dbd91c41b9ecdd5176c1ac33b55e240d2392 (patch)
tree6a3e2e1b07b9ce9af42fae3fd8f66e9639a1e73a /application/FileUtils.php
parent8c0f19c7971e1a4534347ce9d6d82a0a45799711 (diff)
downloadShaarli-a0c4dbd91c41b9ecdd5176c1ac33b55e240d2392.tar.gz
Shaarli-a0c4dbd91c41b9ecdd5176c1ac33b55e240d2392.tar.zst
Shaarli-a0c4dbd91c41b9ecdd5176c1ac33b55e240d2392.zip
namespacing: \Shaarli\FileUtils
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
Diffstat (limited to 'application/FileUtils.php')
-rw-r--r--application/FileUtils.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/application/FileUtils.php b/application/FileUtils.php
index ba409821..30560bfc 100644
--- a/application/FileUtils.php
+++ b/application/FileUtils.php
@@ -1,8 +1,8 @@
1<?php 1<?php
2 2
3use Shaarli\Exceptions\IOException; 3namespace Shaarli;
4 4
5require_once 'exceptions/IOException.php'; 5use Shaarli\Exceptions\IOException;
6 6
7/** 7/**
8 * Class FileUtils 8 * Class FileUtils
@@ -46,7 +46,7 @@ class FileUtils
46 46
47 return file_put_contents( 47 return file_put_contents(
48 $file, 48 $file,
49 self::$phpPrefix.base64_encode(gzdeflate(serialize($content))).self::$phpSuffix 49 self::$phpPrefix . base64_encode(gzdeflate(serialize($content))) . self::$phpSuffix
50 ); 50 );
51 } 51 }
52 52
@@ -64,7 +64,7 @@ class FileUtils
64 { 64 {
65 // Note that gzinflate is faster than gzuncompress. 65 // Note that gzinflate is faster than gzuncompress.
66 // See: http://www.php.net/manual/en/function.gzdeflate.php#96439 66 // See: http://www.php.net/manual/en/function.gzdeflate.php#96439
67 if (! is_readable($file)) { 67 if (!is_readable($file)) {
68 return $default; 68 return $default;
69 } 69 }
70 70