Skip to content

Commit bb2857d

Browse files
ivmeloStyleCIBot
authored andcommitted
Apply fixes from StyleCI
1 parent 29f3d58 commit bb2857d

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

src/Ivmelo/SUAP/SUAP.php

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
/**
88
* Acessa dados do SUAP (Sistema Unificado de Administração Pública).
9+
*
910
* @author Ivanilson Melo <meloivanilson@gmail.com>
1011
*/
1112
class SUAP
@@ -53,10 +54,10 @@ public function __construct($token = false)
5354
* Autentica o usuário e retorna um token de acesso.
5455
* Pode-se usar a senha ou chave de acesso do aluno.
5556
*
56-
* @param string $username Matrícula do aluno.
57-
* @param string $password Senha do aluno ou chave de acesso do responsável.
57+
* @param string $username Matrícula do aluno.
58+
* @param string $password Senha do aluno ou chave de acesso do responsável.
5859
* @param bool $accessKey Define se o login é por chave de acesso.
59-
* @param bool $setToken Define se deve salvar o token para requests subsequentes.
60+
* @param bool $setToken Define se deve salvar o token para requests subsequentes.
6061
*
6162
* @return array $data Array contendo o token de acesso.
6263
*/
@@ -116,6 +117,7 @@ public function setToken($token)
116117
public function getMeusDados()
117118
{
118119
$url = $this->endpoint.'minhas-informacoes/meus-dados/';
120+
119121
return $this->doGetRequest($url);
120122
}
121123

@@ -127,34 +129,37 @@ public function getMeusDados()
127129
public function getMeusPeriodosLetivos()
128130
{
129131
$url = $this->endpoint.'minhas-informacoes/meus-periodos-letivos/';
132+
130133
return $this->doGetRequest($url);
131134
}
132135

133136
/**
134137
* Pega o boletim do aluno autenticado.
135138
*
136-
* @param integer $year Ano letivo.
137-
* @param integer $term Período letivo.
139+
* @param int $year Ano letivo.
140+
* @param int $term Período letivo.
138141
*
139142
* @return array $data Boletim do aluno.
140143
*/
141144
public function getMeuBoletim($year, $term)
142145
{
143146
$url = $this->endpoint.'minhas-informacoes/boletim/'.$year.'/'.$term.'/';
147+
144148
return $this->doGetRequest($url);
145149
}
146150

147151
/**
148152
* Pega a listagem de turmas do aluno para o período solicitado.
149153
*
150-
* @param integer $year Ano letivo.
151-
* @param integer $term Período letivo.
154+
* @param int $year Ano letivo.
155+
* @param int $term Período letivo.
152156
*
153157
* @return array $data Listagem de turmas do aluno.
154158
*/
155159
public function getTurmasVirtuais($year, $term)
156160
{
157161
$url = $this->endpoint.'minhas-informacoes/turmas-virtuais/'.$year.'/'.$term.'/';
162+
158163
return $this->doGetRequest($url);
159164
}
160165

@@ -168,14 +173,15 @@ public function getTurmasVirtuais($year, $term)
168173
public function getTurmaVirtual($id)
169174
{
170175
$url = $this->endpoint.'minhas-informacoes/turmas-virtuais/'.$id.'/';
176+
171177
return $this->doGetRequest($url);
172178
}
173179

174180
/**
175181
* Retorna um array com o horário semanal de um aluno.
176182
*
177-
* @param integer $year Ano letivo.
178-
* @param integer $term Período letivo.
183+
* @param int $year Ano letivo.
184+
* @param int $term Período letivo.
179185
*
180186
* @return array $schedule Horário semanal do aluno.
181187
*/

0 commit comments

Comments
 (0)