From 993e3e9f4cccfe432836540a26e191bc6e4837d9 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sat, 14 Sep 2019 17:04:50 +0100 Subject: [PATCH] Fix indentation --- Repositories:Applications.php | 32 ++++++++++++++++---------------- Repositories:Plugins.php | 32 ++++++++++++++++---------------- 2 files changed, 32 insertions(+), 32 deletions(-) diff --git a/Repositories:Applications.php b/Repositories:Applications.php index 997df0a..347a789 100644 --- a/Repositories:Applications.php +++ b/Repositories:Applications.php @@ -11,22 +11,22 @@ function endsWith($haystack, $needle) { function print_app($package, $screenshot, $name, $category, $details) { -if (! endsWith($screenshot, '.jpg')) { - $screenshot = $screenshot . '.png'; -} - -echo -'

- -' . $screenshot . ' -

-' . $name . ' (' . $category . ')
'; - -for ($i = 0, $count = count($details); $i < $count; $i++) { - echo $details[$i] . '
'; -} - -echo '

'; + if (! endsWith($screenshot, '.jpg')) { + $screenshot = $screenshot . '.png'; + } + + echo + '

+ + ' . $screenshot . ' +

+ ' . $name . ' (' . $category . ')
'; + + for ($i = 0, $count = count($details); $i < $count; $i++) { + echo $details[$i] . '
'; + } + + echo '

'; } diff --git a/Repositories:Plugins.php b/Repositories:Plugins.php index 48d7a5c..b3ed1fe 100644 --- a/Repositories:Plugins.php +++ b/Repositories:Plugins.php @@ -11,22 +11,22 @@ function endsWith($haystack, $needle) { function print_plugin($package, $screenshot, $name, $category, $details) { -if (! endsWith($screenshot, '.jpg')) { - $screenshot = $screenshot . '.png'; -} - -echo -'

- -' . $screenshot . ' -

-' . $name . ' (' . $category . ')
'; - -for ($i = 0, $count = count($details); $i < $count; $i++) { - echo $details[$i] . '
'; -} - -echo '

'; + if (! endsWith($screenshot, '.jpg')) { + $screenshot = $screenshot . '.png'; + } + + echo + '

+ + ' . $screenshot . ' +

+ ' . $name . ' (' . $category . ')
'; + + for ($i = 0, $count = count($details); $i < $count; $i++) { + echo $details[$i] . '
'; + } + + echo '

'; }