poisa/Settings

View on GitHub

Showing 88 of 88 total issues

Call to undeclared function \config()
Open

        if (config('settings.automatic_migrations')) {
Severity: Critical
Found in src/SettingsServiceProvider.php by phan

Call to method create from undeclared class \Illuminate\Support\Facades\Schema
Open

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

Call to method dropIfExists from undeclared class \Illuminate\Support\Facades\Schema
Open

        Schema::dropIfExists(config('settings.table_name'));

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

        $this->line(print_r($value, true));
Severity: Critical
Found in src/Commands/GetCommand.php by phan

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

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

Class uses undeclared trait \Illuminate\Queue\SerializesModels
Open

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

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

        $data = $model->where('key', $key)->first();
Severity: Critical
Found in src/Settings.php by phan

Call to undeclared function \config()
Open

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

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

        $success = $model->save();
Severity: Critical
Found in src/Settings.php by phan

Call to undeclared function \config()
Open

        $data->setTable(config('settings.table_name'));
Severity: Critical
Found in src/Settings.php by phan

Class extends undeclared class \Illuminate\Console\Command
Open

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

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

        if (!$this->option('database')) {
Severity: Critical
Found in src/Commands/SetCommand.php by phan

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

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

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

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

Method \Poisa\Settings\Commands\SetCommand::handle is declared to return mixed but has no return value
Open

    public function handle()
Severity: Minor
Found in src/Commands/SetCommand.php by phan

Call to undeclared function \event()
Open

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

Call to undeclared function \config()
Open

        config(['settings.serializers' => $serializers]);
Severity: Critical
Found in src/Settings.php by phan

Call to undeclared function \config()
Open

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

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

        $model->setTable(config('settings.table_name'));
Severity: Critical
Found in src/Settings.php by phan

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

        if (!$this->option('database')) {
Severity: Critical
Found in src/Commands/GetCommand.php by phan
Severity
Category
Status
Source
Language