Skip to content

Commit f1738b1

Browse files
committed
Code styling
1 parent 83df5dd commit f1738b1

103 files changed

Lines changed: 193 additions & 309 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

app/Builders/Eloquent/EnigmaBuilder.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ class EnigmaBuilder extends Builder
1515
public function where($column, $operator = null, $value = null, $boolean = 'and'): Builder
1616
{
1717
if (config('app.enigma_models')) {
18-
1918
if (func_num_args() === 2) {
2019
$value = $operator;
2120
$operator = '=';
@@ -27,7 +26,6 @@ public function where($column, $operator = null, $value = null, $boolean = 'and'
2726
$column = $column . '_hash';
2827
$value = Enigma::hashValue($value);
2928
}
30-
3129
}
3230

3331
return parent::where($column, $operator, $value, $boolean);

app/Commentable/Casts/CommentContent.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ class CommentContent implements CastsAttributes
1111
public static function commentQuotation(string $value): string
1212
{
1313
if (Str::contains($value, '<blockquote><em>--- @')) {
14-
1514
$start = '<blockquote><em>--- @';
1615
$end = ' ---</blockquote>';
1716

app/Commentable/Casts/InteractiveText.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ private static function interactiveMentions(string $value, $mode, ?Model $model
123123

124124
if (preg_match_all($pattern, $value, $matches, PREG_SET_ORDER)) {
125125
foreach ($matches as $match) {
126-
127126
$search = $match[0] ?? null;
128127
$id = $match[1] ?? null;
129128
if ($id && $search) {

app/Commentable/Models/Comment.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727
* @property bool $private
2828
* @property CarbonImmutable|null $created_at
2929
* @property CarbonImmutable|null $updated_at
30-
* @property-read Collection<int, Activity> $activities
31-
* @property-read int|null $activities_count
32-
* @property-read Model|Eloquent $author
33-
* @property-read Model|Eloquent $subject
30+
* @property-read Collection<int, Activity> $activitiesAsSubject
31+
* @property-read int|null $activities_as_subject_count
32+
* @property-read Model|\Eloquent $author
33+
* @property-read Model|\Eloquent $subject
3434
* @method static \YMigVal\LaravelModelCache\CacheableBuilder<static>|Comment authoredBy(\Illuminate\Database\Eloquent\Model $author)
3535
* @method static \YMigVal\LaravelModelCache\CacheableBuilder<static>|Comment average(string $column)
3636
* @method static \YMigVal\LaravelModelCache\CacheableBuilder<static>|Comment avg(string $column)

app/Console/BaseCommand.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ class BaseCommand extends Command
1313

1414
protected function log($message, $success = true): void
1515
{
16-
1716
$this->end = Carbon::now();
1817
$duration = null;
1918

app/Console/Commands/Core/Issues/IssuePush.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@ public function pushChanges(bool $close = false): void
5454
$result = Process::run('git commit -m "' . $issue . '"');
5555
$result = Process::run('git push --set-upstream origin ' . $this->getBranchName());
5656
$this->line($result->output());
57-
$result = Process::run('git checkout dev');
58-
$this->line($result->output());
5957
} else {
6058
$this->info('Aborted.');
6159
}

app/Console/Commands/Core/Issues/IssueStatus.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ public function handle(): void
2626
try {
2727
$issue = $this->getIssue();
2828
if (! empty($issue)) {
29-
3029
$result = Process::run('git fetch --all');
3130
$result = Process::run('git status');
3231
$this->line($result->output());

app/Console/Commands/Search/IndexModels.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ public function handle(): void
3535
$model->makeIndexes();
3636
$this->line('Indexed ' . $model->id);
3737
}
38-
3938
}
4039

4140
$this->log('completed', true);

app/DataTables/Mbo/ObjectiveCategoriesDataTable.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ class ObjectiveCategoriesDataTable extends DataTableService
2323
public function DataTable(QueryBuilder $query): DataTableBuilder
2424
{
2525
return (new DataTableBuilder($query))
26-
2726
->addColumn('action', fn ($data) => view('pages.mbo.categories.action', [
2827
'data' => $data,
2928
]))

app/DataTables/Mbo/ObjectiveDataTable.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ public function __construct(
3030
public function DataTable(QueryBuilder $query): DataTableBuilder
3131
{
3232
return (new DataTableBuilder($query))
33-
3433
->addColumn('action', fn ($data) => view('pages.mbo.objectives.action', [
3534
'data' => $data,
3635
]))

0 commit comments

Comments
 (0)