Skip to content

Commit

Permalink
style: format code with PHP CS Fixer
Browse files Browse the repository at this point in the history
This commit fixes the style issues introduced in a4ac1c7 according to the output
from PHP CS Fixer.

Details: #108
  • Loading branch information
deepsource-autofix[bot] authored Nov 21, 2024
1 parent a4ac1c7 commit 45f2670
Showing 1 changed file with 43 additions and 43 deletions.
86 changes: 43 additions & 43 deletions Src/index.php
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
<?php
$baseDir = "/home/zerocool/public_html/";
$o = opendir($baseDir);
$forbidden = array("cgi-bin", "inovacao", "portfolio", "static", ".htpasswds", ".well-known");
$projects = array();
while ($item = readdir($o)) {
if (
is_dir($baseDir . $item) &&
$item != "." &&
$item != ".." &&
!in_array($item, $forbidden)
) {
$projects[strtolower($item)] = $item;
}
}
closedir($o);
ksort($projects);
$utm = "?utm_source=zerocool&utm_medium=projects&utm_campaign=old_portfolio";
$description = "Portfolio of Guilherme Branco Stracini, senior software engineer, with professional life, experiences, skills, hobbies, and contact information.";
$socialLinks = array(
"github" => "https://github.com/guibranco",
"twitter" => "https://www.twitter.com/GuiBranco",
"facebook" => "https://www.facebook.com/guilherme.stracini",
"youtube" => "https://www.youtube.com/@GuilhermeBrancoStracini",
"pinterest" => "https://pinterest.com/guibranco/",
"soundcloud" => "https://soundcloud.com/guilherme-stracini",
"linkedin" => "https://www.linkedin.com/in/guilhermestracini",
"stackoverflow" => "https://stackoverflow.com/users/1890220/guilherme-branco-stracini",
"instagram" => "https://www.instagram.com/guilhermebrancostracini",
"whatsapp" => "https://api.whatsapp.com/send/?phone=5511972659788&text=Hello%2C+Guilherme%21"
);
ksort($socialLinks);
?>
$baseDir = "/home/zerocool/public_html/";
$o = opendir($baseDir);
$forbidden = array("cgi-bin", "inovacao", "portfolio", "static", ".htpasswds", ".well-known");
$projects = array();
while ($item = readdir($o)) {
if (
is_dir($baseDir . $item) &&
$item != "." &&
$item != ".." &&
!in_array($item, $forbidden)
) {
$projects[strtolower($item)] = $item;
}
}
closedir($o);
ksort($projects);
$utm = "?utm_source=zerocool&utm_medium=projects&utm_campaign=old_portfolio";
$description = "Portfolio of Guilherme Branco Stracini, senior software engineer, with professional life, experiences, skills, hobbies, and contact information.";

$socialLinks = array(
"github" => "https://github.com/guibranco",
"twitter" => "https://www.twitter.com/GuiBranco",
"facebook" => "https://www.facebook.com/guilherme.stracini",
"youtube" => "https://www.youtube.com/@GuilhermeBrancoStracini",
"pinterest" => "https://pinterest.com/guibranco/",
"soundcloud" => "https://soundcloud.com/guilherme-stracini",
"linkedin" => "https://www.linkedin.com/in/guilhermestracini",
"stackoverflow" => "https://stackoverflow.com/users/1890220/guilherme-branco-stracini",
"instagram" => "https://www.instagram.com/guilhermebrancostracini",
"whatsapp" => "https://api.whatsapp.com/send/?phone=5511972659788&text=Hello%2C+Guilherme%21"
);
ksort($socialLinks);

?>
<!DOCTYPE html>
<html lang="en">
<head>
Expand Down Expand Up @@ -73,14 +73,14 @@ function gtag() { dataLayer.push(arguments); }
<div id="socialLinks">
<ul>
<?php
foreach ($socialLinks as $social => $link) {
echo "<li>\n";
echo "<a href='" . $link . "' rel='noopener' title='Guilherme Branco Stracini on " . ucwords($social) . "' target='_blank'>\n";
echo "<img src='imagens/" . $social . ".png' width='24' height='24' alt='Guilherme Branco Stracini on " . ucwords($social) . "' />\n";
echo "</a>\n";
echo "</li>\n";
}
?>
foreach ($socialLinks as $social => $link) {
echo "<li>\n";
echo "<a href='" . $link . "' rel='noopener' title='Guilherme Branco Stracini on " . ucwords($social) . "' target='_blank'>\n";
echo "<img src='imagens/" . $social . ".png' width='24' height='24' alt='Guilherme Branco Stracini on " . ucwords($social) . "' />\n";
echo "</a>\n";
echo "</li>\n";
}

Check notice on line 82 in Src/index.php

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

Src/index.php#L82

Line indented incorrectly; expected 3 spaces, found 4
?>
</ul>
</div>
</div>
Expand All @@ -97,7 +97,7 @@ function gtag() { dataLayer.push(arguments); }
}
echo "<a href='https://guilhermebranco.com.br/" . $project . "/" . $utm . "'>" . $name . "</a><br />\n";
}
?>
?>
</div>
</div>
<div id="boxes">
Expand Down

0 comments on commit 45f2670

Please sign in to comment.