Skip to content

Commit e9e2523

Browse files
code style improved
1 parent 5e56768 commit e9e2523

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

x/Octopus/Concerns/TagSetupModels.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ public function getModelTable() {
139139
return $this->modelModel->getTable();
140140
}
141141

142-
143142
/**
144143
* Qualify which model we are connecting to as target.
145144
*

x/Octopus/Tag.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use Illuminate\Database\Eloquent\Relations\HasManyThrough;
88
use Illuminate\Database\Eloquent\Relations\HasOneThrough;
99

10-
1110
class Tag
1211
{
1312
use Concerns\TagSetupModels;
@@ -177,7 +176,6 @@ class Tag
177176
*/
178177
protected string $targetClass;
179178

180-
181179
/**
182180
* Through type id.
183181
*
@@ -264,7 +262,6 @@ public function __construct(
264262

265263
}
266264

267-
268265
/**
269266
* Return built relation.
270267
*

x/Octopus/TagThrough.php

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ class TagThrough
140140
*/
141141
protected string $hasRelation;
142142

143-
144143
/**
145144
* Eloquent built in has relation class name.
146145
*
@@ -185,7 +184,6 @@ class TagThrough
185184
*/
186185
protected int $categoryThroughType;
187186

188-
189187
/**
190188
* Connect key depends on inverse param.
191189
*
@@ -303,7 +301,6 @@ public function __construct(
303301
$this->resetTargetTable();
304302
}
305303

306-
307304
/**
308305
* Build tag through relationship.
309306
*
@@ -436,7 +433,6 @@ protected function buildSelect() {
436433
);
437434
}
438435

439-
440436
/**
441437
* Build inverse relationship.
442438
*
@@ -451,7 +447,6 @@ protected function buildTagThroughInverse() {
451447
$this->buildSelectInverse();
452448
}
453449

454-
455450
/**
456451
* Join to target model inverse.
457452
*
@@ -506,7 +501,6 @@ protected function whereRelationInverse() {
506501

507502
}
508503

509-
510504
/**
511505
* Build select statement for the inverse relationship.
512506
*
@@ -533,6 +527,11 @@ protected function buildSelectInverse() {
533527
));
534528
}
535529

530+
/**
531+
* Table alias exists.
532+
*
533+
* @return bool
534+
*/
536535
protected function hasTableAlias() {
537536
return $this->tableAlias !== null;
538537
}
@@ -564,7 +563,6 @@ protected function hasTarget() {
564563
return $this->target !== null;
565564
}
566565

567-
568566
/**
569567
* Handle soft deletes if they are enabled in target model.
570568
*

0 commit comments

Comments
 (0)