poisa/Settings

View on GitHub

Showing 88 of 88 total issues

Opening brace should be on a new line
Open

    public function getTypes(): array {

Call to method timestamps from undeclared class \Illuminate\Database\Schema\Blueprint
Open

            $table->timestamps();

Possibly zero references to use statement for classlike/namespace Serializer (\Poisa\Settings\Serializers\Serializer)
Open

use Poisa\Settings\Serializers\Serializer;
Severity: Minor
Found in src/Settings.php by phan

Call to undeclared function \config()
Open

        return config('settings.system_connection');
Severity: Critical
Found in src/Settings.php by phan

Call to undeclared function \config()
Open

        Schema::create(config('settings.table_name'), function (Blueprint $table) {

Call to method getKey from undeclared class \Settings (Did you mean class \Poisa\Settings\Settings or class \Poisa\Settings\Facades\Settings or class \Poisa\Settings\Models\Settings)
Open

        $value = Settings::getKey($this->argument('key'), $database);
Severity: Critical
Found in src/Commands/GetCommand.php by phan

Call to undeclared method \Poisa\Settings\Commands\GetCommand::argument
Open

        $value = Settings::getKey($this->argument('key'), $database);
Severity: Critical
Found in src/Commands/GetCommand.php by phan

Class uses undeclared trait \Illuminate\Foundation\Events\Dispatchable
Open

class SettingCreated
Severity: Critical
Found in src/Events/SettingCreated.php by phan

Class uses undeclared trait \Illuminate\Foundation\Events\Dispatchable
Open

class SettingRead
Severity: Critical
Found in src/Events/SettingRead.php by phan

Class extends undeclared class \Illuminate\Database\Eloquent\Model
Open

class Settings extends Model
Severity: Critical
Found in src/Models/Settings.php by phan

Call to undeclared method \Poisa\Settings\SettingsServiceProvider::mergeConfigFrom
Open

        $this->mergeConfigFrom($configFile, 'settings');
Severity: Critical
Found in src/SettingsServiceProvider.php by phan

Call to method string from undeclared class \Illuminate\Database\Schema\Blueprint
Open

            $table->string('key')->primary();

Class extends undeclared class \Illuminate\Console\Command
Open

class GetCommand extends Command
Severity: Critical
Found in src/Commands/GetCommand.php by phan

Call to undeclared method \Poisa\Settings\Commands\GetCommand::option
Open

            $database = $this->option('database');
Severity: Critical
Found in src/Commands/GetCommand.php by phan

Class uses undeclared trait \Illuminate\Queue\SerializesModels
Open

class SettingRead
Severity: Critical
Found in src/Events/SettingRead.php by phan

Call to undeclared method \Poisa\Settings\SettingsServiceProvider::commands
Open

            $this->commands([
Severity: Critical
Found in src/SettingsServiceProvider.php by phan

Call to undeclared function \encrypt()
Open

            $model->value = encrypt($serializable->serialize($value));
Severity: Critical
Found in src/Settings.php by phan

Call to undeclared function \decrypt()
Open

            $value = $serializable->unserialize(decrypt($data->value));
Severity: Critical
Found in src/Settings.php by phan

Call to undeclared function \event()
Open

        event(new SettingRead($key, $value, $connection));
Severity: Critical
Found in src/Settings.php by phan

Call to undeclared method \Poisa\Settings\Models\Settings::setConnection
Open

        $model->setConnection(config("settings.{$connection}_connection"));
Severity: Critical
Found in src/Settings.php by phan
Severity
Category
Status
Source
Language