Skip to content

Commit

Permalink
Style code
Browse files Browse the repository at this point in the history
  • Loading branch information
edineivaldameri committed Jun 23, 2023
1 parent 0c31db2 commit 529ed43
Show file tree
Hide file tree
Showing 1,691 changed files with 11,287 additions and 9,511 deletions.
6 changes: 0 additions & 6 deletions app/Casts/LegacyArray.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@ class LegacyArray implements CastsAttributes
* Cast the given value.
*
* @param \Illuminate\Database\Eloquent\Model $model
* @param string $key
* @param mixed $value
* @param array $attributes
*
* @return mixed
*/
public function get($model, string $key, $value, array $attributes)
Expand All @@ -25,10 +22,7 @@ public function get($model, string $key, $value, array $attributes)
* Prepare the given value for storage.
*
* @param \Illuminate\Database\Eloquent\Model $model
* @param string $key
* @param mixed $value
* @param array $attributes
*
* @return mixed
*/
public function set($model, string $key, $value, array $attributes)
Expand Down
2 changes: 0 additions & 2 deletions app/Console/Commands/DatabaseRestoreCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ private function getUser()
* Drop old database if exists and create it again.
*
* @param string $database
*
* @return void
*/
private function dropAndCreateDatabase($database)
Expand All @@ -78,7 +77,6 @@ private function dropAndCreateDatabase($database)
*
* @param string $database
* @param string $filename
*
* @return void
*/
private function restoreDatabaseUsingBackupFile($database, $filename)
Expand Down
1 change: 0 additions & 1 deletion app/Console/Commands/ImportDisciplineCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ class ImportDisciplineCommand extends Command
/**
* Execute the console command.
*
* @param Filesystem $filesystem
*
* @return mixed
*/
Expand Down
24 changes: 3 additions & 21 deletions app/Console/Commands/LegacyCreateTestsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,12 @@ class LegacyCreateTestsCommand extends Command

/**
* Create the test file.
*
* @param string $class
* @param string $route
*
* @return boolean
*/
private function createTestFile(string $class, string $route): bool
{
$replaces = [
'BaseTestName' => $class,
'ProjectRoute' => $route
'ProjectRoute' => $route,
];

$stub = file_get_contents(
Expand Down Expand Up @@ -86,8 +81,6 @@ public function handle()

/**
* Busca todas os arquivos da pasta intranet para gerar os testes de rota
*
* @return array
*/
private function getAllViews(): array
{
Expand All @@ -98,8 +91,6 @@ private function getAllViews(): array
}

/**
* @param array $files
*
* @return array
*/
private function filterOnlineHttpView(array $files)
Expand All @@ -117,7 +108,6 @@ private function filterOnlineHttpView(array $files)
/**
* Pega o nome do arquivo/rota
*
* @param array $data
*
* @return array
*/
Expand All @@ -135,7 +125,6 @@ private function cleanStringUrl(array $data)
/**
* Faz a montagem da informações para processamento
*
* @param array $allViews
*
* @return array
*/
Expand All @@ -159,8 +148,6 @@ private function processRoutersInformation(array $allViews)
}

/**
* @param $view
*
* @return string|string[]
*/
private function processClassName($view)
Expand All @@ -172,10 +159,6 @@ private function processClassName($view)

/**
* Remove rota/arquivo da lista rotas que vão ser geradas
*
* @param array $allViews
*
* @return array
*/
private function excludeRouters(array $allViews): array
{
Expand All @@ -192,7 +175,6 @@ private function excludeRouters(array $allViews): array
/**
* Valida se esta na lista de exclusão
*
* @param string $className
*
* @return bool
*/
Expand Down Expand Up @@ -227,7 +209,7 @@ private function excludeRoutersList(): array
'educar_busca_ativa_cad.php',
'migra_alunos.php',
'index.php',
'copia_vinculos_servidores_cad.php'
'copia_vinculos_servidores_cad.php',
];
}

Expand Down Expand Up @@ -373,7 +355,7 @@ private function excludeClasseNameList()
'TransporteRotaDet',
'TransporteVeiculoDet',
'EducarBuscaAtivaLstTest',
'EducarBuscaAtivaCadTest'
'EducarBuscaAtivaCadTest',
];
}
}
1 change: 1 addition & 0 deletions app/Console/Commands/NotificationsDelete.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
class NotificationsDelete extends Command
{
use Connections;

/**
* The name and signature of the console command.
*
Expand Down
1 change: 0 additions & 1 deletion app/Console/Commands/RegistrationReorderCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ class RegistrationReorderCommand extends Command
/**
* Execute the console command.
*
* @param EnrollmentService $service
*
* @return mixed
*/
Expand Down
1 change: 0 additions & 1 deletion app/Console/Commands/UpdateDisciplinesCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ class UpdateDisciplinesCommand extends Command
/**
* Execute the console command.
*
* @param Filesystem $filesystem
*
* @return mixed
*/
Expand Down
1 change: 0 additions & 1 deletion app/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ class Kernel extends ConsoleKernel
/**
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
*
* @return void
*/
Expand Down
13 changes: 0 additions & 13 deletions app/Contracts/AssetServiceContract.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ interface AssetServiceContract
{
/**
* AssetServiceContract constructor.
*
* @param string $version
* @param bool|null $secure
* @param bool $automatic_versioning
*/
public function __construct(string $version, ?bool $secure = null, bool $automatic_versioning = false);

Expand All @@ -22,25 +18,16 @@ public function getVersion(): ?string;

/**
* Get assets version number.
*
* @return bool
*/
public function isAutomaticVersioning(): bool;

/**
* Get secure option.
*
* @return bool|null
*/
public function getSecure(): ?bool;

/**
* Generate an asset path with version parameter for the application.
*
* @param string $path
* @param bool|null $secure
*
* @return string
*/
public function get(string $path, bool $secure = null): string;
}
3 changes: 0 additions & 3 deletions app/Contracts/CopyRegistrationData.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
interface CopyRegistrationData
{
/**
* @param LegacyRegistration $newRegistration
* @param LegacyRegistration $oldRegistration
*
* @return void
*/
public function copy(
Expand Down
1 change: 0 additions & 1 deletion app/Events/NotificationEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ class NotificationEvent implements ShouldBroadcast
/**
* Create a new event instance.
*
* @param Notification $notification
* @param string $tenant
* @param string $url
*/
Expand Down
2 changes: 0 additions & 2 deletions app/Events/TransferEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ class TransferEvent

/**
* Create a new event instance.
*
* @param $transfer
*/
public function __construct($transfer)
{
Expand Down
2 changes: 0 additions & 2 deletions app/Exceptions/Enrollment/ExistsActiveEnrollmentException.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ class ExistsActiveEnrollmentException extends RuntimeException
{
/**
* Existe outra enturmação ativa para a turma.
*
* @param LegacyRegistration $registration
*/
public function __construct(LegacyRegistration $registration)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ class ExistsActiveEnrollmentSameTimeException extends RuntimeException
{
/**
* Existe outra enturmação ativa para a turma.
*
* @param LegacyRegistration $registration
*/
public function __construct(LegacyRegistration $registration)
{
Expand Down
2 changes: 0 additions & 2 deletions app/Exceptions/Enrollment/NoVacancyException.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ class NoVacancyException extends RuntimeException
{
/**
* Não há vagas na turma.
*
* @param LegacySchoolClass $schoolClass
*/
public function __construct(LegacySchoolClass $schoolClass)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ class PreviousCancellationDateException extends RuntimeException
/**
* A data de cancelamento da enturmação é anterior a própria data de
* enturmação.
*
* @param LegacyEnrollment $enrollment
* @param DateTime $cancellationDate
*/
public function __construct(LegacyEnrollment $enrollment, DateTime $cancellationDate)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ class PreviousEnrollCancellationDateException extends RuntimeException
/**
* A data de cancelamento da enturmação é anterior a data de
* matrícula.
*
* @param LegacyRegistration $registration
* @param DateTime $cancellationDate
*/
public function __construct(LegacyRegistration $registration, DateTime $cancellationDate)
{
Expand Down
3 changes: 0 additions & 3 deletions app/Exceptions/Enrollment/PreviousEnrollDateException.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ class PreviousEnrollDateException extends RuntimeException
{
/**
* A data de enturmação é anterior a data de saída da última enturmação.
*
* @param DateTime $date
* @param LegacyEnrollment $lastEnrollment
*/
public function __construct(DateTime $date, LegacyEnrollment $lastEnrollment)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ class PreviousEnrollRegistrationDateException extends RuntimeException
{
/**
* A data de enturmação é anterior a data de matrícula.
*
* @param DateTime $date
* @param LegacyRegistration $registration
*/
public function __construct(DateTime $date, LegacyRegistration $registration)
{
Expand Down
2 changes: 1 addition & 1 deletion app/Exceptions/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Handler extends ExceptionHandler
*/
protected $dontReport = [
App_Model_Exception::class,
DisciplinesWithoutInformedHoursException::class
DisciplinesWithoutInformedHoursException::class,
];

/**
Expand Down
8 changes: 0 additions & 8 deletions app/Exports/DisciplineExport.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ class DisciplineExport implements FromCollection, WithHeadingRow, WithHeadings,
*/
private $collection;

/**
* @param Collection $collection
*/
public function __construct(Collection $collection)
{
$this->collection = $collection;
Expand All @@ -36,17 +33,12 @@ public function collection()

/**
* @param array $row
*
* @return array
*/
public function map($row): array
{
return $row;
}

/**
* @return array
*/
public function headings(): array
{
return array_keys($this->collection->first());
Expand Down
2 changes: 0 additions & 2 deletions app/Exports/EloquentExporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ class EloquentExporter

/**
* EloquentExporter constructor.
*
* @param Export $export
*/
public function __construct(Export $export)
{
Expand Down
3 changes: 2 additions & 1 deletion app/Exports/ExporterSqlExport.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@ class ExporterSqlExport implements FromArray, WithHeadings
use Exportable;

private array $data;

private array $headings = [];

public function __construct(string $sql, bool $withHeader = true)
{
$this->data = DB::select($sql);
if ($withHeader && isset($this->data[0])) {
$this->headings = array_keys((array)$this->data[0]);
$this->headings = array_keys((array) $this->data[0]);
}
}

Expand Down
Loading

0 comments on commit 529ed43

Please sign in to comment.