aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/ThumbnailerTest.php
diff options
context:
space:
mode:
authorVirtualTam <virtualtam@flibidi.net>2018-10-13 00:35:47 +0200
committerVirtualTam <virtualtam@flibidi.net>2018-12-02 22:39:16 +0100
commit067c2dd8f5f6eb6cc808ddc4bd30aec104caf73d (patch)
tree3fbb0a716a5eb98a77c29c737079091da8dfb0bb /tests/ThumbnailerTest.php
parent93bf0918fa7bb1efb39d1540d7e46e52767270df (diff)
downloadShaarli-067c2dd8f5f6eb6cc808ddc4bd30aec104caf73d.tar.gz
Shaarli-067c2dd8f5f6eb6cc808ddc4bd30aec104caf73d.tar.zst
Shaarli-067c2dd8f5f6eb6cc808ddc4bd30aec104caf73d.zip
lint: apply phpcbf to tests/
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
Diffstat (limited to 'tests/ThumbnailerTest.php')
-rw-r--r--tests/ThumbnailerTest.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/ThumbnailerTest.php b/tests/ThumbnailerTest.php
index 08311545..c01849f7 100644
--- a/tests/ThumbnailerTest.php
+++ b/tests/ThumbnailerTest.php
@@ -98,15 +98,17 @@ class ThumbnailerTest extends TestCase
98 ini_set('error_log', $oldlog); 98 ini_set('error_log', $oldlog);
99 } 99 }
100 100
101 protected function rrmdirContent($dir) { 101 protected function rrmdirContent($dir)
102 {
102 if (is_dir($dir)) { 103 if (is_dir($dir)) {
103 $objects = scandir($dir); 104 $objects = scandir($dir);
104 foreach ($objects as $object) { 105 foreach ($objects as $object) {
105 if ($object != "." && $object != "..") { 106 if ($object != "." && $object != "..") {
106 if (is_dir($dir."/".$object)) 107 if (is_dir($dir."/".$object)) {
107 $this->rrmdirContent($dir."/".$object); 108 $this->rrmdirContent($dir."/".$object);
108 else 109 } else {
109 unlink($dir."/".$object); 110 unlink($dir."/".$object);
111 }
110 } 112 }
111 } 113 }
112 } 114 }