-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-> Fix Lint
- Loading branch information
Showing
80 changed files
with
1,194 additions
and
1,359 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
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,69 @@ | ||
<?php | ||
try { | ||
if (file_exists('vendor/autoload.php')) { | ||
require('vendor/autoload.php'); | ||
} else { | ||
die('Hello, it looks like you did not run: "composer install --no-dev --optimize-autoloader". Please run that and refresh the page'); | ||
} | ||
} catch (Exception $e) { | ||
die('Hello, it looks like you did not run: composer install --no-dev --optimize-autoloader Please run that and refresh'); | ||
} | ||
|
||
|
||
use PhpCsFixer\Config; | ||
use PhpCsFixer\Finder; | ||
|
||
$finder = (new Finder()) | ||
->in(__DIR__) | ||
->exclude([ | ||
'vendor', | ||
'node_modules', | ||
'.github', | ||
'.vscode', | ||
'.git', | ||
'docs', | ||
'caches', | ||
'devtools', | ||
'logs', | ||
'themes', | ||
'app/Handlers/interfaces' | ||
]) | ||
->notName(['_ide_helper*']); | ||
|
||
return (new Config()) | ||
->setRiskyAllowed(true) | ||
->setFinder($finder) | ||
->setRules([ | ||
'@Symfony' => true, | ||
'@PSR1' => true, | ||
'@PSR2' => true, | ||
'@PSR12' => true, | ||
'align_multiline_comment' => ['comment_type' => 'phpdocs_like'], | ||
'combine_consecutive_unsets' => true, | ||
'concat_space' => ['spacing' => 'one'], | ||
'heredoc_to_nowdoc' => true, | ||
'no_alias_functions' => true, | ||
'no_unreachable_default_argument_value' => true, | ||
'no_useless_return' => true, | ||
'ordered_imports' => [ | ||
'sort_algorithm' => 'length', | ||
], | ||
'phpdoc_align' => [ | ||
'align' => 'left', | ||
'tags' => [ | ||
'param', | ||
'property', | ||
'return', | ||
'throws', | ||
'type', | ||
'var', | ||
], | ||
], | ||
'random_api_migration' => true, | ||
'ternary_to_null_coalescing' => true, | ||
'yoda_style' => [ | ||
'equal' => false, | ||
'identical' => false, | ||
'less_and_greater' => false, | ||
], | ||
]); |
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 |
---|---|---|
@@ -1,10 +1,8 @@ | ||
<?php | ||
|
||
|
||
class Example | ||
{ | ||
public function Main(array $args = []) | ||
{ | ||
|
||
} | ||
} |
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 |
---|---|---|
@@ -1,12 +1,9 @@ | ||
<?php | ||
|
||
|
||
use MythicalSystems\Api\Api as api; | ||
use MythicalSystemsFramework\Managers\ConfigManager as cfg; | ||
|
||
api::init(); | ||
api::allowOnlyPOST(); | ||
|
||
if (isset($_POST['email']) && isset($_POST['password'])) { | ||
|
||
} |
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
Oops, something went wrong.