-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
145 changed files
with
21,864 additions
and
0 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 |
---|---|---|
|
@@ -5,3 +5,5 @@ phpunit.xml | |
phpcs.xml | ||
.phpcs.xml | ||
phpstan.neon | ||
WordPress/.DS_Store | ||
.DS_Store |
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,40 @@ | ||
<?xml version="1.0"?> | ||
<documentation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="https://phpcsstandards.github.io/PHPCSDevTools/phpcsdocs.xsd" | ||
title="Function Calls to Dirname" | ||
> | ||
<standard> | ||
<![CDATA[ | ||
PHP >= 5.3: Usage of dirname(__FILE__) can be replaced with __DIR__. | ||
]]> | ||
</standard> | ||
<code_comparison> | ||
<code title="Valid: Using __DIR__."> | ||
<![CDATA[ | ||
$path = <em>__DIR__</em>; | ||
]]> | ||
</code> | ||
<code title="Invalid: dirname(__FILE__)."> | ||
<![CDATA[ | ||
$path = <em>dirname(__FILE__)</em>; | ||
]]> | ||
</code> | ||
</code_comparison> | ||
<standard> | ||
<![CDATA[ | ||
PHP >= 7.0: Nested calls to dirname() can be replaced by using dirname() with the $levels parameter. | ||
]]> | ||
</standard> | ||
<code_comparison> | ||
<code title="Valid: Using dirname() with the $levels parameter."> | ||
<![CDATA[ | ||
$path = <em>dirname($file, 3)</em>; | ||
]]> | ||
</code> | ||
<code title="Invalid: Nested function calls to dirname()."> | ||
<![CDATA[ | ||
$path = <em>dirname(dirname(dirname($file)))</em>; | ||
]]> | ||
</code> | ||
</code_comparison> | ||
</documentation> |
Oops, something went wrong.