-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c077cc4
commit 63dfca0
Showing
14 changed files
with
539 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -95,3 +95,4 @@ _ide_helper_models.php | |
modules/* | ||
!modules/OfflinePayments | ||
!modules/PaypalStandard | ||
.laravelstatsrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
namespace App\Classifiers; | ||
|
||
use Wnx\LaravelStats\ReflectionClass; | ||
use Wnx\LaravelStats\Contracts\Classifier; | ||
|
||
class BulkAction implements Classifier | ||
{ | ||
public function name(): string | ||
{ | ||
return 'Bulk Actions'; | ||
} | ||
|
||
public function satisfies(ReflectionClass $class): bool | ||
{ | ||
return $class->isSubclassOf(\App\Abstracts\BulkAction::class); | ||
} | ||
|
||
public function countsTowardsApplicationCode(): bool | ||
{ | ||
return true; | ||
} | ||
|
||
public function countsTowardsTests(): bool | ||
{ | ||
return false; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
namespace App\Classifiers; | ||
|
||
use Wnx\LaravelStats\ReflectionClass; | ||
use Wnx\LaravelStats\Contracts\Classifier; | ||
|
||
class Event implements Classifier | ||
{ | ||
public function name(): string | ||
{ | ||
return 'Events'; | ||
} | ||
|
||
public function satisfies(ReflectionClass $class): bool | ||
{ | ||
return $class->isSubclassOf(\App\Abstracts\Event::class); | ||
} | ||
|
||
public function countsTowardsApplicationCode(): bool | ||
{ | ||
return true; | ||
} | ||
|
||
public function countsTowardsTests(): bool | ||
{ | ||
return false; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
namespace App\Classifiers; | ||
|
||
use Wnx\LaravelStats\ReflectionClass; | ||
use Wnx\LaravelStats\Contracts\Classifier; | ||
|
||
class Export implements Classifier | ||
{ | ||
public function name(): string | ||
{ | ||
return 'Exports'; | ||
} | ||
|
||
public function satisfies(ReflectionClass $class): bool | ||
{ | ||
return $class->isSubclassOf(\App\Abstracts\Export::class); | ||
} | ||
|
||
public function countsTowardsApplicationCode(): bool | ||
{ | ||
return true; | ||
} | ||
|
||
public function countsTowardsTests(): bool | ||
{ | ||
return false; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
namespace App\Classifiers; | ||
|
||
use Wnx\LaravelStats\ReflectionClass; | ||
use Wnx\LaravelStats\Contracts\Classifier; | ||
|
||
class Import implements Classifier | ||
{ | ||
public function name(): string | ||
{ | ||
return 'Imports'; | ||
} | ||
|
||
public function satisfies(ReflectionClass $class): bool | ||
{ | ||
return $class->isSubclassOf(\App\Abstracts\Import::class); | ||
} | ||
|
||
public function countsTowardsApplicationCode(): bool | ||
{ | ||
return true; | ||
} | ||
|
||
public function countsTowardsTests(): bool | ||
{ | ||
return false; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
namespace App\Classifiers; | ||
|
||
use Wnx\LaravelStats\ReflectionClass; | ||
use Wnx\LaravelStats\Contracts\Classifier; | ||
|
||
class Job implements Classifier | ||
{ | ||
public function name(): string | ||
{ | ||
return 'Jobs'; | ||
} | ||
|
||
public function satisfies(ReflectionClass $class): bool | ||
{ | ||
return $class->isSubclassOf(\App\Abstracts\Job::class); | ||
} | ||
|
||
public function countsTowardsApplicationCode(): bool | ||
{ | ||
return true; | ||
} | ||
|
||
public function countsTowardsTests(): bool | ||
{ | ||
return false; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
namespace App\Classifiers; | ||
|
||
use Wnx\LaravelStats\ReflectionClass; | ||
use Wnx\LaravelStats\Contracts\Classifier; | ||
|
||
class Observer implements Classifier | ||
{ | ||
public function name(): string | ||
{ | ||
return 'Observers'; | ||
} | ||
|
||
public function satisfies(ReflectionClass $class): bool | ||
{ | ||
return $class->isSubclassOf(\App\Abstracts\Observer::class); | ||
} | ||
|
||
public function countsTowardsApplicationCode(): bool | ||
{ | ||
return true; | ||
} | ||
|
||
public function countsTowardsTests(): bool | ||
{ | ||
return false; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
namespace App\Classifiers; | ||
|
||
use Wnx\LaravelStats\ReflectionClass; | ||
use Wnx\LaravelStats\Contracts\Classifier; | ||
|
||
class Report implements Classifier | ||
{ | ||
public function name(): string | ||
{ | ||
return 'Reports'; | ||
} | ||
|
||
public function satisfies(ReflectionClass $class): bool | ||
{ | ||
return $class->isSubclassOf(\App\Abstracts\Report::class); | ||
} | ||
|
||
public function countsTowardsApplicationCode(): bool | ||
{ | ||
return true; | ||
} | ||
|
||
public function countsTowardsTests(): bool | ||
{ | ||
return false; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
namespace App\Classifiers; | ||
|
||
use Wnx\LaravelStats\ReflectionClass; | ||
use Wnx\LaravelStats\Contracts\Classifier; | ||
|
||
class Scope implements Classifier | ||
{ | ||
public function name(): string | ||
{ | ||
return 'Scopes'; | ||
} | ||
|
||
public function satisfies(ReflectionClass $class): bool | ||
{ | ||
return $class->isSubclassOf(\Illuminate\Database\Eloquent\Scope::class); | ||
} | ||
|
||
public function countsTowardsApplicationCode(): bool | ||
{ | ||
return true; | ||
} | ||
|
||
public function countsTowardsTests(): bool | ||
{ | ||
return false; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
namespace App\Classifiers; | ||
|
||
use Wnx\LaravelStats\ReflectionClass; | ||
use Wnx\LaravelStats\Contracts\Classifier; | ||
|
||
class Transformer implements Classifier | ||
{ | ||
public function name(): string | ||
{ | ||
return 'Transformers'; | ||
} | ||
|
||
public function satisfies(ReflectionClass $class): bool | ||
{ | ||
return $class->isSubclassOf(\League\Fractal\TransformerAbstract::class); | ||
} | ||
|
||
public function countsTowardsApplicationCode(): bool | ||
{ | ||
return true; | ||
} | ||
|
||
public function countsTowardsTests(): bool | ||
{ | ||
return false; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
namespace App\Classifiers; | ||
|
||
use Wnx\LaravelStats\ReflectionClass; | ||
use Wnx\LaravelStats\Contracts\Classifier; | ||
|
||
class Widget implements Classifier | ||
{ | ||
public function name(): string | ||
{ | ||
return 'Widgets'; | ||
} | ||
|
||
public function satisfies(ReflectionClass $class): bool | ||
{ | ||
return $class->isSubclassOf(\App\Abstracts\Widget::class); | ||
} | ||
|
||
public function countsTowardsApplicationCode(): bool | ||
{ | ||
return true; | ||
} | ||
|
||
public function countsTowardsTests(): bool | ||
{ | ||
return false; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.