Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Melhorias apontadas pelo SonarCloud #960

Merged
merged 1 commit into from
Jul 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion ieducar/intranet/educar_pesquisa_servidor_lst.php
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,6 @@ public function Gerar()
nome: $this->nome,
intResultadosPorPagina: $this->limite
);
new clsPermissoes();
$this->largura = '100%';
}

Expand Down
4 changes: 2 additions & 2 deletions ieducar/modules/Api/Views/PessoaController.php
Original file line number Diff line number Diff line change
Expand Up @@ -587,8 +587,8 @@ protected function createOrUpdatePessoaFisica($pessoaId)
$individual->nacionalidade = $this->getRequest()->tipo_nacionalidade ?: $individual->nacionalidade;
$individual->zona_localizacao_censo = $this->getRequest()->zona_localizacao_censo ?: $individual->zona_localizacao_censo;
$individual->localizacao_diferenciada = $this->getRequest()->localizacao_diferenciada ?: $individual->localizacao_diferenciada;
$individual->nome_social = $this->getRequest()->nome_social ?? $this->getRequest()->nome_social;
$individual->observacao = $this->getRequest()->observacao_aluno ?? $this->getRequest()->observacao_aluno;
$individual->nome_social = $this->getRequest()->nome_social ?: $individual->nome_social;
$individual->observacao = $this->getRequest()->observacao_aluno ?: $individual->observacao;

$individual->saveOrFail();

Expand Down
1 change: 1 addition & 0 deletions ieducar/modules/Api/Views/SerieController.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ protected function getSeries()
$ano = $this->getRequest()->ano ?: null;
$cursoId = $this->getRequest()->curso_id;
$ativo = $this->getRequest()->ativo;
$modified = $this->getRequest()->modified ?: null;

if (is_array($escolaId)) {
$escolaId = implode(',', $escolaId);
Expand Down
2 changes: 2 additions & 0 deletions resources/views/docs/api/index.blade.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
Expand All @@ -8,6 +9,7 @@
display: none;
}
</style>
<title>API</title>
</head>

<body>
Expand Down