mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-14 01:34:55 +02:00
phpstan support (#250)
* phpstan v1 + workflow * Fix intend * More fixes * Update phpstan.neon * phpstan level 2 * Move errors ignoring into phpstan.neon * phpstan level 3 * Don't ignore templates folder * Something from level 4 * Update phpstan.neon
This commit is contained in:
@@ -25,7 +25,7 @@ class CsrfToken
|
||||
*
|
||||
* @access public
|
||||
* @static true
|
||||
* @return void
|
||||
* @return string
|
||||
**/
|
||||
public static function create(bool $return = false): string {
|
||||
$input = '<input type="hidden" name="csrf_token" value="' . self::get() . '" />';
|
||||
|
@@ -4,6 +4,14 @@ namespace MyAAC\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
/**
|
||||
* @property int $id
|
||||
* @property int $type
|
||||
* @property int $where
|
||||
* @property string $body
|
||||
* @property int $player_id
|
||||
* @property int $date
|
||||
*/
|
||||
class Changelog extends Model {
|
||||
|
||||
protected $table = TABLE_PREFIX . 'changelog';
|
||||
|
@@ -3,6 +3,13 @@
|
||||
namespace MyAAC\Models;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
/**
|
||||
* @property int $id
|
||||
* @property string $name
|
||||
* @property string $title
|
||||
* @property int $php
|
||||
* @property int $hide
|
||||
*/
|
||||
class Pages extends Model {
|
||||
|
||||
protected $table = TABLE_PREFIX . 'pages';
|
||||
|
@@ -3,6 +3,11 @@
|
||||
namespace MyAAC\Models;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
/**
|
||||
* @property string $name
|
||||
* @property string $key
|
||||
* @property string $value
|
||||
*/
|
||||
class Settings extends Model {
|
||||
|
||||
protected $table = TABLE_PREFIX . 'settings';
|
||||
|
@@ -141,8 +141,8 @@ class Validator
|
||||
* Validate account password
|
||||
* Name lenght must be 3-32 chars
|
||||
*
|
||||
* @param string $name Account name to check
|
||||
* @return bool Is account name valid?
|
||||
* @param string $password Password to check
|
||||
* @return bool Is password valid?
|
||||
*/
|
||||
public static function password($password)
|
||||
{
|
||||
|
Reference in New Issue
Block a user