@param type $force

@return bool
975907
public function storeInsert($force = false)
    {
        // update table if needed
        static::applySchema();

        // collect field names for sql query
        $fieldsArray = [];

        // collect values for sql query
        $valuesArray = [];

        // collect tokens value for pdo parametric
        $tokensArray = [];

        // get primary field name
        $key = static::getPrimaryKey();

        // get complete fields schema
        $schema = static::getSchema();

        //
        foreach ($schema as $field => &$column) {
            if (($field == $key || is_null($this->{$field})) && !$force) {
                continue;
            }
            // get current value of attribute of object
            $value = static::insertRelationBefore($this->{$field}, $column);
            $token = ':'.$field;
            $fieldsArray[] = '`'.$field.'`';
            $valuesArray[] = $token;
            $tokensArray[$token] = $value;
        }

        //
        $fields = implode(',', $fieldsArray);

        //
        $values = implode(',', $valuesArray);

        //
        $table = static::getTable();

        //
        $sql = "INSERT INTO {$table} ({$fields}) VALUES ({$values})";

        //
        static::getDatabase()->execute($sql, $tokensArray);

        //
        foreach ($schema as $field => &$column) {
            if (!$force && $field == $key) {
                continue;
            }

            static::insertRelationAfter($this->{$field}, $column);
        }

        //
        if ($key) {
            $index = static::getDatabase()->getLastId();
            $this->{$key} = $index;
        } else {
            $index = static::getMainFieldValue();
        }

        //
        return $index;
    }
933550
public function compile($force = false)
    {
        $this->commandCaller->compile($this->configFile, $force, $this->target);
    }
1173529
private static function read($file, $force = false)
    {
        if($force === false && isset(self::$history[$file]))
        {
            return self::$history[$file];
        }

        $path = self::$configDirectory . $file . '.php';

        if(file_exists($path))
        {
            $contents = include $path;

            if(is_array($contents) || is_string($contents))
            {
                return self::$history[$file] = $contents;
            }

            return false;
        }

        return false;
    }
1157132
public function delete($force = false)
    {
        if (!$this->isExists() || false === $this->trigger('before_delete', $this)) {
            return false;
        }

        $force = $force ?: $this->isForce();
        $name  = $this->getDeleteTimeField();

        if ($name && !$force) {
            // 软删除
            $this->data($name, $this->autoWriteTimestamp($name));

            $result = $this->isUpdate()->withEvent(false)->save();

            $this->withEvent(true);
        } else {
            // 读取更新条件
            $where = $this->getWhere();

            // 删除当前模型数据
            $this->db(false)
                ->where($where)
                ->removeOption('soft_delete')
                ->delete();
        }

        // 关联删除
        if (!empty($this->relationWrite)) {
            $this->autoRelationDelete();
        }

        $this->trigger('after_delete', $this);

        $this->exists(false);

        return true;
    }
180984
public function canDo($permission, $force = false)
    {
        if (! is_null($this->getUser())) {
            return $this->getUser()->canDo($permission, $force);
        }

        return false;
    }
1264184
public function setup($force = false) {
		if(!$force && $this->description)
			return;
		
		$this->changeDescription($this->fetchDescription());
	}
910368
function stopTyping(bool $force = false) {
        if($this->typingTriggered['count'] === 0) {
            return;
        }
        
        $this->typingTriggered['count']--;
        if($force) {
            $this->typingTriggered['count'] = 0;
        }
        
        if($this->typingTriggered['count'] === 0) {
            if($this->typingTriggered['timer']) {
                $this->client->cancelTimer($this->typingTriggered['timer']);
                $this->typingTriggered['timer'] = null;
            }
        }
    }
810734
protected function getCachedResources($force = false)
    {
        if ($force) {
            return collect();
        }

        if ($this->checked) {
            return $this->getResources();
        }

        return $this->resources = $this->cache->getCachedResources();
    }
1055292
public function delete( $force = false ) {
		// If the object doesn't exist, there is nothing to delete
		// so we'll just return immediately and not do anything else.
		if ( ! $this->exists() ) {
			return;
		}

		// If the "prev_delete" filter returns false we'll bail out of the delete
		// and just return. Indicating that the delete failed.
		if ( false === apply_filters( $this->prefix( 'prev_delete' ), true ) ) {
			return;
		}

		/**
		 * Fires before a wp-object is deleted.
		 *
		 * @param static $wp_object Current object instance.
		 */
		do_action( $this->prefix( 'deleting' ), $this );

		$deleted = $this->perform_delete( $force );

		if ( $deleted ) {
			$this->clean_cache();

			// Now object will not exists.
			$this->exists = false;

			/**
			 * Fires after a WP_Object is deleted.
			 *
			 * @param int $object_id Object ID was deleted.
			 */
			do_action( $this->prefix( 'deleted' ), $this->get_id() );
		}

		return $deleted;
	}
47287
public static function flush_cacheblock_cache($force = false)
    {
        if (!self::$cacheblock_cache_flushed || $force) {
            $cache = Injector::inst()->get(CacheInterface::class . '.cacheblock');
            $cache->clear();


            self::$cacheblock_cache_flushed = true;
        }
    }
579491
static public function getWidth( $force = FALSE ){
		if( !self::$width || $force )
			self::$width	= intval( `tput cols` );
//			self::$width	= exec( 'tput cols' );
		return self::$width;
	}
638388
public function delete($force = false)
    {
        $this->getParent()->serverGroupDelete($this->getId(), $force);

        unset($this);
    }
249985
public function getAllPermissions($force = false)
    {
        if (empty($this->cachedPermissions) or $force) {
            $this->cachedPermissions = $this->getFreshAllPermissions();
        }

        return $this->cachedPermissions;
    }
833653
public function save(array $options = array(), $force = false)
    {
        if ( $force || $this->validate() )
        {
            return $this->performSave($options);
        } else
        {
            return false;
        }
    }
1360458
public function sluggify($force = false)
    {
        /** @var \Dimsav\Translatable\Translatable $this */
        /** @var \Cviebrock\EloquentSluggable\SluggableInterface $translation */
        $translation = $this->getTranslation();

        if ( ! empty($translation)) {

            $translation->sluggify($force);
        }

        return $this;
    }
1143546
public function addSelfSelectColumns($force = false)
    {
        if ($this->isSelfSelected && !$force) {
            return $this;
        }

        $tableMap = $this->modelTableMapName;
        $tableMap::addSelectColumns($this, $this->useAliasInSQL ? $this->modelAlias : null);
        $this->isSelfSelected = true;

        return $this;
    }
1108671
public function drop($force = false)
    {
        $this->clearCache();
        
        $this->force = $force;

        return 'DROP TABLE ' . ($this->isForce() ? 'IF EXISTS ' : '') . '`' . $this->getCurrentTable()->getFullTableName() . '`;';
    }