Skip to content

Commit 9471884

Browse files
authored
Merge pull request #351 from tighten/drift/remove-blade-compiler
Remove `UseAuthHelperOverFacade` linter and formatter
2 parents 3e998a4 + 1e299a5 commit 9471884

File tree

9 files changed

+87
-682
lines changed

9 files changed

+87
-682
lines changed

readme.md

Lines changed: 85 additions & 88 deletions
Large diffs are not rendered by default.

src/Commands/BaseCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ abstract class BaseCommand extends Command
1717
public $cwd;
1818
public $config;
1919

20-
public function __construct(string $cwd = null)
20+
public function __construct(?string $cwd = null)
2121
{
2222
$this->cwd = $cwd;
2323
$configPath = $this->resolveFileOrDirectory('tlint.json');

src/Formatters/NoDatesPropertyOnModels.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ private function nodeFinderForModelProperty(string $attribute): Closure
7676
};
7777
}
7878

79-
private function addDatesToCasts(Property $dates, Property $casts = null): Property
79+
private function addDatesToCasts(Property $dates, ?Property $casts = null): Property
8080
{
8181
// Get the names of all the existing date attributes
8282
$dateAttributes = array_map(function ($item) {

src/Formatters/UseAuthHelperOverFacade.php

Lines changed: 0 additions & 168 deletions
This file was deleted.

src/Illuminate/BladeCompiler.php

Lines changed: 0 additions & 21 deletions
This file was deleted.

src/Linters/UseAuthHelperOverFacade.php

Lines changed: 0 additions & 46 deletions
This file was deleted.

src/Presets/TightenPreset.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ public function getLinters(): array
2525
Linters\RequestValidation::class,
2626
Linters\SpaceAfterBladeDirectives::class,
2727
Linters\SpacesAroundBladeRenderContent::class,
28-
Linters\UseAuthHelperOverFacade::class,
2928
Linters\NoJsonDirective::class,
3029
];
3130
}
@@ -46,7 +45,6 @@ public function getFormatters(): array
4645
Formatters\RequestValidation::class,
4746
Formatters\SpaceAfterBladeDirectives::class,
4847
Formatters\SpacesAroundBladeRenderContent::class,
49-
Formatters\UseAuthHelperOverFacade::class,
5048
];
5149
}
5250
}

0 commit comments

Comments
 (0)