-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
244 additions
and
189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
engines: | ||
duplication: | ||
enabled: true | ||
config: | ||
languages: | ||
- php | ||
fixme: | ||
enabled: true | ||
phpmd: | ||
enabled: true | ||
config: | ||
rulesets: ".phpmd.xml" | ||
phpcodesniffer: | ||
enabled: true | ||
config: | ||
standard: "PSR2" | ||
checks: | ||
PSR1 Classes ClassDeclaration MissingNamespace: | ||
enabled: false | ||
PSR1 Files SideEffects FoundWithSymbols: | ||
enabled: false | ||
ratings: | ||
paths: | ||
- "**.php" | ||
exclude_paths: | ||
- migrations/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
$finder = Symfony\CS\Finder\DefaultFinder::create() | ||
->exclude('vendor') | ||
->exclude('node_modules') | ||
->in(__DIR__); | ||
|
||
return Symfony\CS\Config\Config::create() | ||
->level(Symfony\CS\FixerInterface::PSR2_LEVEL) | ||
->fixers(['ordered_use', '-psr0']) | ||
->finder($finder); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?xml version="1.0"?> | ||
<ruleset name="PHPMD Ruleset for Dixie" | ||
xmlns="http://pmd.sf.net/ruleset/1.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 | ||
http://pmd.sf.net/ruleset_xml_schema.xsd" | ||
xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd"> | ||
<rule ref="rulesets/cleancode.xml"> | ||
<exclude name="StaticAccess" /> | ||
</rule> | ||
<rule ref="rulesets/codesize.xml" /> | ||
<rule ref="rulesets/controversial.xml" /> | ||
<rule ref="rulesets/design.xml" /> | ||
<rule ref="rulesets/naming.xml" /> | ||
<rule ref="rulesets/naming.xml/LongVariable"> | ||
<properties> | ||
<property name="maximum" value="30" /> | ||
</properties> | ||
</rule> | ||
<rule ref="rulesets/naming.xml/ShortMethodName"> | ||
<properties> | ||
<property name="exceptions" value="up" /> | ||
</properties> | ||
</rule> | ||
<rule ref="rulesets/codesize.xml/TooManyPublicMethods"> | ||
<properties> | ||
<property name="ignorepattern" value="(^(set|get|test))i"/> | ||
</properties> | ||
</rule> | ||
<rule ref="rulesets/unusedcode.xml"> | ||
<exclude name="UnusedFormalParameter" /> | ||
</rule> | ||
</ruleset> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
<?php | ||
|
||
namespace Dixie\EloquentModelFuture\Tests\Models; | ||
|
||
use Illuminate\Contracts\Auth\Authenticatable; | ||
use Illuminate\Database\Eloquent\Model; | ||
use Dixie\EloquentModelFuture\Contracts\ModelFuture; | ||
|
||
class User extends Model implements ModelFuture, Authenticatable | ||
{ | ||
use \Dixie\EloquentModelFuture\Traits\HasFuture; | ||
|
||
protected $table = 'users'; | ||
|
||
protected $guarded = []; | ||
|
||
/** | ||
* Get the name of the unique identifier for the user. | ||
* | ||
* @return string | ||
*/ | ||
public function getAuthIdentifierName() | ||
{ | ||
return $this->name; | ||
} | ||
|
||
/** | ||
* Get the unique identifier for the user. | ||
* | ||
* @return mixed | ||
*/ | ||
public function getAuthIdentifier() | ||
{ | ||
return $this->id; | ||
} | ||
|
||
/** | ||
* Get the password for the user. | ||
* | ||
* @return string | ||
*/ | ||
public function getAuthPassword() | ||
{ | ||
return $this->name; | ||
} | ||
|
||
/** | ||
* Get the token value for the "remember me" session. | ||
* | ||
* @return string | ||
*/ | ||
public function getRememberToken() | ||
{ | ||
return 'token'; | ||
} | ||
|
||
/** | ||
* Set the token value for the "remember me" session. | ||
* | ||
* @param string $value | ||
*/ | ||
public function setRememberToken($value) | ||
{ | ||
} | ||
|
||
/** | ||
* Get the column name for the "remember me" token. | ||
* | ||
* @return string | ||
*/ | ||
public function getRememberTokenName() | ||
{ | ||
return 'tokenName'; | ||
} | ||
} |
Oops, something went wrong.