fix: Resolve PHP syntax errors and deprecation warnings
- Fix syntax error in coming/soon.php (missing closing parenthesis) - Fix JavaScript syntax errors in coming/soon.php - Fix nullable parameter deprecation warnings in ErrorLog.php - Fix nullable parameter deprecation warnings in LandingTemplateModel.php - All PHP files now pass syntax validation - No more deprecated parameter warnings
This commit is contained in:
1 parent
831145b2c4
commit
956b0547e8
3 files changed
+30
-31
No files matched your search
@@ -216,7 +216,7 @@ class LandingTemplateModel
|
||||
/**
|
||||
* Gerar URL da imagem para Script Builder
|
||||
*/
|
||||
public function generateImageUrl(string $brandSlug, string $templateType, string $countryCode, string $device = null, string $size = null): string
|
||||
public function generateImageUrl(string $brandSlug, string $templateType, string $countryCode, ?string $device = null, ?string $size = null): string
|
||||
{
|
||||
$baseUrl = 'https://js.pmx.bet/images/';
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ class ErrorLog
|
||||
/**
|
||||
* Marcar erro como resolvido
|
||||
*/
|
||||
public function resolveError(int $id, string $resolutionNotes = null): bool
|
||||
public function resolveError(int $id, ?string $resolutionNotes = null): bool
|
||||
{
|
||||
try {
|
||||
$sql = "UPDATE error_logs SET status = 'resolved', resolved_at = NOW(), resolution_notes = ? WHERE id = ?";
|
||||
@@ -56,7 +56,7 @@ class ErrorLog
|
||||
/**
|
||||
* Marcar todos os erros como resolvidos
|
||||
*/
|
||||
public function resolveAllErrors(string $resolutionNotes = null): bool
|
||||
public function resolveAllErrors(?string $resolutionNotes = null): bool
|
||||
{
|
||||
try {
|
||||
$sql = "UPDATE error_logs SET status = 'resolved', resolved_at = NOW(), resolution_notes = ? WHERE status = 'open'";
|
||||
@@ -70,7 +70,7 @@ class ErrorLog
|
||||
/**
|
||||
* Marcar erro como ignorado
|
||||
*/
|
||||
public function ignoreError(int $id, string $resolutionNotes = null): bool
|
||||
public function ignoreError(int $id, ?string $resolutionNotes = null): bool
|
||||
{
|
||||
try {
|
||||
$sql = "UPDATE error_logs SET status = 'ignored', resolved_at = NOW(), resolution_notes = ? WHERE id = ?";
|
||||
|
||||
@@ -1,19 +1,17 @@
|
||||
<?php
|
||||
use App\Core\View;
|
||||
use App\Core\AssetManager;
|
||||
|
||||
// Definir variáveis para o layout
|
||||
$page_title = 'Pages coming soon';
|
||||
$page_description = 'Página Pages coming soon';
|
||||
|
||||
// Incluir o layout principal
|
||||
View::render('layouts/main.php', [
|
||||
'title' => $page_title,
|
||||
'description' => $page_description,
|
||||
'page_content' => function() {
|
||||
?>
|
||||
<?php
|
||||
View::include('layouts/main.php'; ?>
|
||||
<?php
|
||||
use App\Core\View;
|
||||
use App\Core\AssetManager;
|
||||
|
||||
// Definir variáveis para o layout
|
||||
$page_title = 'Pages coming soon';
|
||||
$page_description = 'Página Pages coming soon';
|
||||
|
||||
// Incluir o layout principal
|
||||
View::render('layouts/main.php', [
|
||||
'title' => $page_title,
|
||||
'description' => $page_description,
|
||||
'page_content' => function() {
|
||||
?>
|
||||
<?php View::include('layouts/head-css.php');?>
|
||||
<div class="auth-page-wrapper pt-5">
|
||||
<!-- auth page bg -->
|
||||
@@ -73,7 +71,7 @@ View::render('layouts/main.php', [
|
||||
<div class="col-lg-12">
|
||||
<div class="text-center">
|
||||
<p class="mb-0 text-muted">©
|
||||
<script>document.write(new Date().getFullYear(])</script> <?php echo \App\Core\AppConfig::getCompanyName(); ?>.
|
||||
<script>document.write(new Date().getFullYear())</script> <?php echo \App\Core\AppConfig::getCompanyName(); ?>.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -83,17 +81,18 @@ View::render('layouts/main.php', [
|
||||
<!-- end Footer -->
|
||||
</div>
|
||||
<!-- end auth-page-wrapper -->
|
||||
|
||||
|
||||
<!-- particles js -->
|
||||
|
||||
<!-- particles app js -->
|
||||
|
||||
|
||||
<!-- Countdown js -->
|
||||
<script src="<?php echo View::asset('/assets/js/pages/coming-soon.init.js']; ?>"></script>
|
||||
<?php,
|
||||
'scripts' => function() {
|
||||
AssetManager::addFooterJs(View::asset('/assets/libs/particles.js/particles.js'));
|
||||
AssetManager::addFooterJs(View::asset('/assets/js/pages/particles.app.js'));
|
||||
}
|
||||
]);
|
||||
?>
|
||||
<script src="<?php echo View::asset('/assets/js/pages/coming-soon.init.js'); ?>"></script>
|
||||
<?php
|
||||
},
|
||||
'scripts' => function() {
|
||||
AssetManager::addFooterJs(View::asset('/assets/libs/particles.js/particles.js'));
|
||||
AssetManager::addFooterJs(View::asset('/assets/js/pages/particles.app.js'));
|
||||
}
|
||||
]);
|
||||
?>
|
||||
Reference in new issue
Block a user