-
-
Notifications
You must be signed in to change notification settings - Fork 181
Static Code Analysis with Php Inspections (EA Extended) #97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
ffdc933
Php Inspections (EA Extended): SCA
kalessil c656541
Php Inspections (EA Extended): dropped senseless proxy function
kalessil dc7b44b
Php Inspections (EA Extended): revert session class changes
kalessil 3a047e1
Php Inspections (EA Extended): syntax fix
kalessil b484e80
Php Inspections (EA Extended): UTs SCA
kalessil File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -3,14 +3,14 @@ | |
| /* | ||
| * This file is part of the symfony package. | ||
| * (c) Fabien Potencier <fabien.potencier@symfony-project.com> | ||
| * | ||
| * | ||
| * For the full copyright and license information, please view the LICENSE | ||
| * file that was distributed with this source code. | ||
| */ | ||
|
|
||
| /** | ||
| * sfPluginConfiguration represents a configuration for a symfony plugin. | ||
| * | ||
| * | ||
| * @package symfony | ||
| * @subpackage config | ||
| * @author Kris Wallsmith <kris.wallsmith@symfony-project.com> | ||
|
|
@@ -26,7 +26,7 @@ abstract class sfPluginConfiguration | |
|
|
||
| /** | ||
| * Constructor. | ||
| * | ||
| * | ||
| * @param sfProjectConfiguration $configuration The project configuration | ||
| * @param string $rootDir The plugin root directory | ||
| * @param string $name The plugin name | ||
|
|
@@ -50,7 +50,7 @@ public function __construct(sfProjectConfiguration $configuration, $rootDir = nu | |
|
|
||
| /** | ||
| * Sets up the plugin. | ||
| * | ||
| * | ||
| * This method can be used when creating a base plugin configuration class for other plugins to extend. | ||
| */ | ||
| public function setup() | ||
|
|
@@ -59,7 +59,7 @@ public function setup() | |
|
|
||
| /** | ||
| * Configures the plugin. | ||
| * | ||
| * | ||
| * This method is called before the plugin's classes have been added to sfAutoload. | ||
| */ | ||
| public function configure() | ||
|
|
@@ -68,9 +68,9 @@ public function configure() | |
|
|
||
| /** | ||
| * Initializes the plugin. | ||
| * | ||
| * | ||
| * This method is called after the plugin's classes have been added to sfAutoload. | ||
| * | ||
| * | ||
| * @return boolean|null If false sfApplicationConfiguration will look for a config.php (maintains BC with symfony < 1.2) | ||
| */ | ||
| public function initialize() | ||
|
|
@@ -79,7 +79,7 @@ public function initialize() | |
|
|
||
| /** | ||
| * Returns the plugin root directory. | ||
| * | ||
| * | ||
| * @return string | ||
| */ | ||
| public function getRootDir() | ||
|
|
@@ -89,7 +89,7 @@ public function getRootDir() | |
|
|
||
| /** | ||
| * Returns the plugin name. | ||
| * | ||
| * | ||
| * @return string | ||
| */ | ||
| public function getName() | ||
|
|
@@ -99,11 +99,11 @@ public function getName() | |
|
|
||
| /** | ||
| * Initializes autoloading for the plugin. | ||
| * | ||
| * | ||
| * This method is called when a plugin is initialized in a project | ||
| * configuration. Otherwise, autoload is handled in | ||
| * {@link sfApplicationConfiguration} using {@link sfAutoload}. | ||
| * | ||
| * | ||
| * @see sfSimpleAutoload | ||
| */ | ||
| public function initializeAutoload() | ||
|
|
@@ -126,10 +126,10 @@ public function initializeAutoload() | |
|
|
||
| /** | ||
| * Filters sfAutoload configuration values. | ||
| * | ||
| * @param sfEvent $event | ||
| * @param array $config | ||
| * | ||
| * | ||
| * @param sfEvent $event | ||
| * @param array $config | ||
| * | ||
| * @return array | ||
| */ | ||
| public function filterAutoloadConfig(sfEvent $event, array $config) | ||
|
|
@@ -169,10 +169,10 @@ public function connectTests() | |
|
|
||
| /** | ||
| * Listens for the "task.test.filter_test_files" event and adds tests from the current plugin. | ||
| * | ||
| * | ||
| * @param sfEvent $event | ||
| * @param array $files | ||
| * | ||
| * | ||
| * @return array An array of files with the appropriate tests from the current plugin merged in | ||
| */ | ||
| public function filterTestFiles(sfEvent $event, $files) | ||
|
|
@@ -211,18 +211,18 @@ public function filterTestFiles(sfEvent $event, $files) | |
|
|
||
| /** | ||
| * Guesses the plugin root directory. | ||
| * | ||
| * | ||
| * @return string | ||
| */ | ||
| protected function guessRootDir() | ||
| { | ||
| $r = new ReflectionClass(get_class($this)); | ||
| return realpath(dirname($r->getFilename()).'/..'); | ||
| return realpath(dirname($r->getFileName()).'/..'); | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually, this found automatically, I spent couple hours just fixing. |
||
| } | ||
|
|
||
| /** | ||
| * Guesses the plugin name. | ||
| * | ||
| * | ||
| * @return string | ||
| */ | ||
| protected function guessName() | ||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is correct
addServerThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably PhpStoms has incorrect definition in stubs, will revert this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed. 1cb8f45
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!