Skip to content

Commit

Permalink
Merge pull request #351 from tighten/drift/remove-blade-compiler
Browse files Browse the repository at this point in the history
Remove `UseAuthHelperOverFacade` linter and formatter
  • Loading branch information
driftingly authored Jan 5, 2024
2 parents 3e998a4 + 1e299a5 commit 9471884
Show file tree
Hide file tree
Showing 9 changed files with 87 additions and 682 deletions.
173 changes: 85 additions & 88 deletions readme.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/Commands/BaseCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ abstract class BaseCommand extends Command
public $cwd;
public $config;

public function __construct(string $cwd = null)
public function __construct(?string $cwd = null)
{
$this->cwd = $cwd;
$configPath = $this->resolveFileOrDirectory('tlint.json');
Expand Down
2 changes: 1 addition & 1 deletion src/Formatters/NoDatesPropertyOnModels.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ private function nodeFinderForModelProperty(string $attribute): Closure
};
}

private function addDatesToCasts(Property $dates, Property $casts = null): Property
private function addDatesToCasts(Property $dates, ?Property $casts = null): Property
{
// Get the names of all the existing date attributes
$dateAttributes = array_map(function ($item) {
Expand Down
168 changes: 0 additions & 168 deletions src/Formatters/UseAuthHelperOverFacade.php

This file was deleted.

21 changes: 0 additions & 21 deletions src/Illuminate/BladeCompiler.php

This file was deleted.

46 changes: 0 additions & 46 deletions src/Linters/UseAuthHelperOverFacade.php

This file was deleted.

2 changes: 0 additions & 2 deletions src/Presets/TightenPreset.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ public function getLinters(): array
Linters\RequestValidation::class,
Linters\SpaceAfterBladeDirectives::class,
Linters\SpacesAroundBladeRenderContent::class,
Linters\UseAuthHelperOverFacade::class,
Linters\NoJsonDirective::class,
];
}
Expand All @@ -46,7 +45,6 @@ public function getFormatters(): array
Formatters\RequestValidation::class,
Formatters\SpaceAfterBladeDirectives::class,
Formatters\SpacesAroundBladeRenderContent::class,
Formatters\UseAuthHelperOverFacade::class,
];
}
}
Loading

0 comments on commit 9471884

Please sign in to comment.