Uncaught Exceptions | /src/Actions/AttachDevice.php:22 | new RuntimeException('Device already assigned to another user') | | | | Analyze, All, ChangedBehavior |
The following exceptions are thrown in the code, but are never caught. new RuntimeException('Device already assigned to another user')
|
Unused Parameter | /src/Notifications/FirebasePushNotification.php:19 | public function via($notifiable) : array { /**/ } | | | | Analyze, All, Simple, Unused |
Those parameters are not used inside the method or function. public function via($notifiable) : array { /**/ }
|
Unused Parameter | /src/Data/DeviceData.php:19 | public static function rules(ValidationContext $context) : array { /**/ } | | | | Analyze, All, Simple, Unused |
Those parameters are not used inside the method or function. public static function rules(ValidationContext $context) : array { /**/ }
|
No Public Access | /src/Data/DeviceData.php:15 | $type | | | | Analyze, All, ChangedBehavior |
The properties below are declared with public access, but are never used publicly. They can be made protected or private. $type
|
No Public Access | /src/Notifications/FirebasePushNotification.php:13 | $title | | | | Analyze, All, ChangedBehavior |
The properties below are declared with public access, but are never used publicly. They can be made protected or private. $title
|
No Public Access | /src/Notifications/FirebasePushNotification.php:13 | $message | | | | Analyze, All, ChangedBehavior |
The properties below are declared with public access, but are never used publicly. They can be made protected or private. $message
|
No Public Access | /src/Data/DeviceData.php:14 | $platform | | | | Analyze, All, ChangedBehavior |
The properties below are declared with public access, but are never used publicly. They can be made protected or private. $platform
|
Should Use Local Class | /src/Data/DeviceData.php:19 | public static function rules(ValidationContext $context) : array { /**/ } | | | | Analyze, ClearPHP, All, Simple, ChangedBehavior |
Methods should use the defining class, or be functions. public static function rules(ValidationContext $context) : array { /**/ }
|
Should Use Local Class | /src/Notifications/FirebasePushNotification.php:19 | public function via($notifiable) : array { /**/ } | | | | Analyze, ClearPHP, All, Simple, ChangedBehavior |
Methods should use the defining class, or be functions. public function via($notifiable) : array { /**/ }
|
Should Use Local Class | /src/Controllers/DeviceController.php:14 | public function attach(DeviceData $deviceData) : JsonResponse { /**/ } | | | | Analyze, ClearPHP, All, Simple, ChangedBehavior |
Methods should use the defining class, or be functions. public function attach(DeviceData $deviceData) : JsonResponse { /**/ }
|
Should Use Local Class | /src/Actions/AttachDevice.php:12 | public static function execute(DeviceData $request, ?User $user) : Device { /**/ } | | | | Analyze, ClearPHP, All, Simple, ChangedBehavior |
Methods should use the defining class, or be functions. public static function execute(DeviceData $request, ?User $user) : Device { /**/ }
|
Should Use Local Class | /src/DevicesServiceProvider.php:13 | public function configurePackage(Package $package) : void { /**/ } | | | | Analyze, ClearPHP, All, Simple, ChangedBehavior |
Methods should use the defining class, or be functions. public function configurePackage(Package $package) : void { /**/ }
|
Never Used Properties | /src/Models/Device.php:23 | $fillable = ['name', 'type', 'platform', 'token', 'notifiable_id', 'notifiable_type', ] | | | | Analyze, All, Simple, Unused, ChangedBehavior |
Properties that are never used. They are defined in a class or a trait, but they never actually used. $fillable = ['name', 'type', 'platform', 'token', 'notifiable_id', 'notifiable_type', ]
|
Never Used Properties | /src/Models/Device.php:32 | $casts = ['type' => DeviceType::class, 'platform' => DevicePlatform::class, ] | | | | Analyze, All, Simple, Unused, ChangedBehavior |
Properties that are never used. They are defined in a class or a trait, but they never actually used. $casts = ['type' => DeviceType::class, 'platform' => DevicePlatform::class, ]
|
Never Used Properties | /src/Data/DeviceData.php:14 | $platform | | | | Analyze, All, Simple, Unused, ChangedBehavior |
Properties that are never used. They are defined in a class or a trait, but they never actually used. $platform
|
Never Used Properties | /src/Data/DeviceData.php:15 | $type | | | | Analyze, All, Simple, Unused, ChangedBehavior |
Properties that are never used. They are defined in a class or a trait, but they never actually used. $type
|
Used Once Variables (In Scope) | /src/Data/DeviceData.php:15 | public string $type | | | | Analyze, ClearPHP, OneFile, All, Simple, Level 4, ChangedBehavior, CE |
This is the list of used once variables, scope by scope. Those variables are used once in a function, a method, a class or a namespace. In any case, this means the variable is read or written, while it should be used at least twice. public string $type
|
Used Once Variables (In Scope) | /src/Data/DeviceData.php:16 | public string $token | | | | Analyze, ClearPHP, OneFile, All, Simple, Level 4, ChangedBehavior, CE |
This is the list of used once variables, scope by scope. Those variables are used once in a function, a method, a class or a namespace. In any case, this means the variable is read or written, while it should be used at least twice. public string $token
|
Used Once Variables (In Scope) | /src/Data/DeviceData.php:14 | public string $platform | | | | Analyze, ClearPHP, OneFile, All, Simple, Level 4, ChangedBehavior, CE |
This is the list of used once variables, scope by scope. Those variables are used once in a function, a method, a class or a namespace. In any case, this means the variable is read or written, while it should be used at least twice. public string $platform
|
Used Once Variables (In Scope) | /src/Data/DeviceData.php:19 | ValidationContext $context | | | | Analyze, ClearPHP, OneFile, All, Simple, Level 4, ChangedBehavior, CE |
This is the list of used once variables, scope by scope. Those variables are used once in a function, a method, a class or a namespace. In any case, this means the variable is read or written, while it should be used at least twice. ValidationContext $context
|
Used Once Variables (In Scope) | /src/Notifications/FirebasePushNotification.php:34 | $devices | | | | Analyze, ClearPHP, OneFile, All, Simple, Level 4, ChangedBehavior, CE |
This is the list of used once variables, scope by scope. Those variables are used once in a function, a method, a class or a namespace. In any case, this means the variable is read or written, while it should be used at least twice. $devices
|
Used Once Variables (In Scope) | /src/Notifications/FirebasePushNotification.php:13 | public string $message | | | | Analyze, ClearPHP, OneFile, All, Simple, Level 4, ChangedBehavior, CE |
This is the list of used once variables, scope by scope. Those variables are used once in a function, a method, a class or a namespace. In any case, this means the variable is read or written, while it should be used at least twice. public string $message
|
Used Once Variables (In Scope) | /src/Notifications/FirebasePushNotification.php:39 | $devices | | | | Analyze, ClearPHP, OneFile, All, Simple, Level 4, ChangedBehavior, CE |
This is the list of used once variables, scope by scope. Those variables are used once in a function, a method, a class or a namespace. In any case, this means the variable is read or written, while it should be used at least twice. $devices
|
Used Once Variables (In Scope) | /src/Notifications/FirebasePushNotification.php:13 | public string $title | | | | Analyze, ClearPHP, OneFile, All, Simple, Level 4, ChangedBehavior, CE |
This is the list of used once variables, scope by scope. Those variables are used once in a function, a method, a class or a namespace. In any case, this means the variable is read or written, while it should be used at least twice. public string $title
|
Used Once Variables (In Scope) | /src/Controllers/DeviceController.php:16 | $device | | | | Analyze, ClearPHP, OneFile, All, Simple, Level 4, ChangedBehavior, CE |
This is the list of used once variables, scope by scope. Those variables are used once in a function, a method, a class or a namespace. In any case, this means the variable is read or written, while it should be used at least twice. $device
|
Used Once Variables (In Scope) | /src/Notifications/FirebasePushNotification.php:19 | $notifiable | | | | Analyze, ClearPHP, OneFile, All, Simple, Level 4, ChangedBehavior, CE |
This is the list of used once variables, scope by scope. Those variables are used once in a function, a method, a class or a namespace. In any case, this means the variable is read or written, while it should be used at least twice. $notifiable
|
Used Once Variables (In Scope) | /src/Controllers/DeviceController.php:18 | $device | | | | Analyze, ClearPHP, OneFile, All, Simple, Level 4, ChangedBehavior, CE |
This is the list of used once variables, scope by scope. Those variables are used once in a function, a method, a class or a namespace. In any case, this means the variable is read or written, while it should be used at least twice. $device
|
Unresolved Use | /src/Models/Device.php:7 | Illuminate\Database\Eloquent\Factories\HasFactory | | | | Analyze, ClearPHP, All, Simple, ChangedBehavior |
The following use instructions cannot be resolved to a known class, interface, trait, constant or function. They should be dropped or fixed. Illuminate\Database\Eloquent\Factories\HasFactory
|
Unresolved Use | /src/Models/Device.php:8 | Illuminate\Database\Eloquent\Model | | | | Analyze, ClearPHP, All, Simple, ChangedBehavior |
The following use instructions cannot be resolved to a known class, interface, trait, constant or function. They should be dropped or fixed. Illuminate\Database\Eloquent\Model
|
Unresolved Use | /src/Models/Device.php:9 | Illuminate\Database\Eloquent\Relations\MorphTo | | | | Analyze, ClearPHP, All, Simple, ChangedBehavior |
The following use instructions cannot be resolved to a known class, interface, trait, constant or function. They should be dropped or fixed. Illuminate\Database\Eloquent\Relations\MorphTo
|
Unresolved Use | /src/Models/Device.php:10 | Sfolador\Devices\Enums\DevicePlatform | | | | Analyze, ClearPHP, All, Simple, ChangedBehavior |
The following use instructions cannot be resolved to a known class, interface, trait, constant or function. They should be dropped or fixed. Sfolador\Devices\Enums\DevicePlatform
|
Unresolved Use | /src/Models/Device.php:11 | Sfolador\Devices\Enums\DeviceType | | | | Analyze, ClearPHP, All, Simple, ChangedBehavior |
The following use instructions cannot be resolved to a known class, interface, trait, constant or function. They should be dropped or fixed. Sfolador\Devices\Enums\DeviceType
|
Unresolved Use | /src/Models/Concerns/HasDevices.php:7 | Illuminate\Database\Eloquent\Relations\MorphMany | | | | Analyze, ClearPHP, All, Simple, ChangedBehavior |
The following use instructions cannot be resolved to a known class, interface, trait, constant or function. They should be dropped or fixed. Illuminate\Database\Eloquent\Relations\MorphMany
|
Unresolved Use | /routes/devices_routes.php:3 | Illuminate\Support\Facades\Route | | | | Analyze, ClearPHP, All, Simple, ChangedBehavior |
The following use instructions cannot be resolved to a known class, interface, trait, constant or function. They should be dropped or fixed. Illuminate\Support\Facades\Route
|
Unresolved Use | /src/Data/DeviceData.php:5 | Illuminate\Validation\Rules\Enum | | | | Analyze, ClearPHP, All, Simple, ChangedBehavior |
The following use instructions cannot be resolved to a known class, interface, trait, constant or function. They should be dropped or fixed. Illuminate\Validation\Rules\Enum
|
Unresolved Use | /src/DevicesServiceProvider.php:7 | Kutia\Larafirebase\Providers\LarafirebaseServiceProvider | | | | Analyze, ClearPHP, All, Simple, ChangedBehavior |
The following use instructions cannot be resolved to a known class, interface, trait, constant or function. They should be dropped or fixed. Kutia\Larafirebase\Providers\LarafirebaseServiceProvider
|
Unresolved Use | /src/Data/DeviceData.php:6 | Sfolador\Devices\Enums\DevicePlatform | | | | Analyze, ClearPHP, All, Simple, ChangedBehavior |
The following use instructions cannot be resolved to a known class, interface, trait, constant or function. They should be dropped or fixed. Sfolador\Devices\Enums\DevicePlatform
|
Unresolved Use | /src/DevicesServiceProvider.php:8 | Spatie\LaravelPackageTools\Package | | | | Analyze, ClearPHP, All, Simple, ChangedBehavior |
The following use instructions cannot be resolved to a known class, interface, trait, constant or function. They should be dropped or fixed. Spatie\LaravelPackageTools\Package
|
Unresolved Use | /src/Data/DeviceData.php:7 | Sfolador\Devices\Enums\DeviceType | | | | Analyze, ClearPHP, All, Simple, ChangedBehavior |
The following use instructions cannot be resolved to a known class, interface, trait, constant or function. They should be dropped or fixed. Sfolador\Devices\Enums\DeviceType
|
Unresolved Use | /src/DevicesServiceProvider.php:9 | Spatie\LaravelPackageTools\PackageServiceProvider | | | | Analyze, ClearPHP, All, Simple, ChangedBehavior |
The following use instructions cannot be resolved to a known class, interface, trait, constant or function. They should be dropped or fixed. Spatie\LaravelPackageTools\PackageServiceProvider
|
Unresolved Use | /src/Data/DeviceData.php:8 | Spatie\LaravelData\Data | | | | Analyze, ClearPHP, All, Simple, ChangedBehavior |
The following use instructions cannot be resolved to a known class, interface, trait, constant or function. They should be dropped or fixed. Spatie\LaravelData\Data
|
Unresolved Use | /src/Notifications/FirebasePushNotification.php:7 | Illuminate\Http\Client\Response | | | | Analyze, ClearPHP, All, Simple, ChangedBehavior |
The following use instructions cannot be resolved to a known class, interface, trait, constant or function. They should be dropped or fixed. Illuminate\Http\Client\Response
|
Unresolved Use | /src/Data/DeviceData.php:9 | Spatie\LaravelData\Support\Validation\ValidationContext | | | | Analyze, ClearPHP, All, Simple, ChangedBehavior |
The following use instructions cannot be resolved to a known class, interface, trait, constant or function. They should be dropped or fixed. Spatie\LaravelData\Support\Validation\ValidationContext
|
Unresolved Use | /src/Notifications/FirebasePushNotification.php:8 | Illuminate\Notifications\Notification | | | | Analyze, ClearPHP, All, Simple, ChangedBehavior |
The following use instructions cannot be resolved to a known class, interface, trait, constant or function. They should be dropped or fixed. Illuminate\Notifications\Notification
|
Unresolved Use | /src/Notifications/FirebasePushNotification.php:9 | Kutia\Larafirebase\Messages\FirebaseMessage | | | | Analyze, ClearPHP, All, Simple, ChangedBehavior |
The following use instructions cannot be resolved to a known class, interface, trait, constant or function. They should be dropped or fixed. Kutia\Larafirebase\Messages\FirebaseMessage
|
Unresolved Use | /src/Controllers/DeviceController.php:7 | Illuminate\Http\JsonResponse | | | | Analyze, ClearPHP, All, Simple, ChangedBehavior |
The following use instructions cannot be resolved to a known class, interface, trait, constant or function. They should be dropped or fixed. Illuminate\Http\JsonResponse
|
Unresolved Use | /src/Controllers/DeviceController.php:8 | Illuminate\Routing\Controller | | | | Analyze, ClearPHP, All, Simple, ChangedBehavior |
The following use instructions cannot be resolved to a known class, interface, trait, constant or function. They should be dropped or fixed. Illuminate\Routing\Controller
|
Unresolved Use | /src/Actions/AttachDevice.php:5 | Illuminate\Foundation\Auth\User | | | | Analyze, ClearPHP, All, Simple, ChangedBehavior |
The following use instructions cannot be resolved to a known class, interface, trait, constant or function. They should be dropped or fixed. Illuminate\Foundation\Auth\User
|
Unresolved Classes | /src/Notifications/FirebasePushNotification.php:36 | FirebaseMessage | | | | Analyze, All, Stubs, ChangedBehavior |
The following classes are instantiated in the code, but their definition couldn't be found in that same code. They might be defined in an extension or an external component. FirebaseMessage
|
Unresolved Classes | /src/Data/DeviceData.php:22 | Enum(DevicePlatform::class) | | | | Analyze, All, Stubs, ChangedBehavior |
The following classes are instantiated in the code, but their definition couldn't be found in that same code. They might be defined in an extension or an external component. Enum(DevicePlatform::class)
|