-
-
Notifications
You must be signed in to change notification settings - Fork 437
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
phpstan: added lib/Mage and lib/Magento #2780
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
fda281f
Updated paths in phpstan.dist.neon
sreichel 1371424
Added lib/Magento to checks
sreichel d2fad2d
Added lib/Mage to checks
sreichel f189f1e
Fixed class name in comments
sreichel a36268b
Fixed docs
sreichel 46cd935
Updated phpstan.dist.baseline.neon
sreichel acc731b
Merge branch '1.9.4.x' into clean-phpstan
sreichel 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 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
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 |
---|---|---|
|
@@ -31,7 +31,7 @@ class Mage_System_Ftp | |
/** | ||
* Connection object | ||
* | ||
* @var resource | ||
* @var resource|false | ||
*/ | ||
protected $_conn = false; | ||
|
||
|
@@ -51,8 +51,8 @@ protected function checkConnected() | |
/** | ||
* ftp_mkdir wrapper | ||
* | ||
* @param stin$name | ||
* @return unknown_type | ||
* @param string $name | ||
* @return string | ||
*/ | ||
public function mdkir($name) | ||
{ | ||
|
@@ -111,7 +111,7 @@ public function login($login = "anonymous", $password = "[email protected]") | |
* | ||
* @param string $string | ||
* @throws Exception | ||
* @return string | ||
* @return array | ||
*/ | ||
public function validateConnectionString($string) | ||
{ | ||
|
@@ -225,24 +225,24 @@ public function raw($cmd) | |
* Can be used for relative and absoulte remote paths | ||
* Relative: use chdir before calling this | ||
* | ||
* @param srting $remote | ||
* @param string $remote | ||
* @param string $local | ||
* @param int $dirMode | ||
* @param int $ftpMode | ||
* @return unknown_type | ||
* @return bool | ||
*/ | ||
public function upload($remote, $local, $dirMode = 0777, $ftpMode = FTP_BINARY) | ||
{ | ||
$this->checkConnected(); | ||
|
||
if (!file_exists($local)) { | ||
throw new Exception("Local file doesn't exist: {$localFile}"); | ||
throw new Exception("Local file doesn't exist: {$local}"); | ||
} | ||
if (!is_readable($local)) { | ||
throw new Exception("Local file is not readable: {$localFile}"); | ||
throw new Exception("Local file is not readable: {$local}"); | ||
} | ||
if (is_dir($local)) { | ||
throw new Exception("Directory given instead of file: {$localFile}"); | ||
throw new Exception("Directory given instead of file: {$local}"); | ||
} | ||
|
||
$globalPathMode = substr($remote, 0, 1) == "/"; | ||
|
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.
isn't this changing behaviour?
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.
Tested with ...