Merge remote-tracking branch 'watermanio/strict-types' into 1.0
commit
1f0b01e70d
|
@ -72,7 +72,7 @@ class EventDispatcher
|
|||
*/
|
||||
public function dispatch($eventName, Event $event = null)
|
||||
{
|
||||
if (null == $event) {
|
||||
if (null === $event) {
|
||||
$event = new Event($eventName);
|
||||
}
|
||||
|
||||
|
|
|
@ -108,7 +108,7 @@ class ArtifactRepository extends ArrayRepository implements ConfigurableReposito
|
|||
}
|
||||
|
||||
$length = strlen($stat['name']);
|
||||
if ($indexOfShortestMatch == false || $length < $lengthOfShortestMatch) {
|
||||
if ($indexOfShortestMatch === false || $length < $lengthOfShortestMatch) {
|
||||
//Check it's not a directory.
|
||||
$contents = $zip->getFromIndex($i);
|
||||
if ($contents !== false) {
|
||||
|
|
|
@ -73,7 +73,7 @@ abstract class BaseChannelReader
|
|||
// http://components.ez.no/p/packages.xml is malformed. to read it we must ignore parsing errors.
|
||||
$xml = simplexml_load_string($this->requestContent($origin, $path), "SimpleXMLElement", LIBXML_NOERROR);
|
||||
|
||||
if (false == $xml) {
|
||||
if (false === $xml) {
|
||||
throw new \UnexpectedValueException(sprintf('The PEAR channel at ' . $origin . ' is broken. (Invalid XML at file `%s`)', $path));
|
||||
}
|
||||
|
||||
|
|
|
@ -64,7 +64,7 @@ class Perforce
|
|||
public function initialize($repoConfig)
|
||||
{
|
||||
$this->uniquePerforceClientName = $this->generateUniquePerforceClientName();
|
||||
if (null == $repoConfig) {
|
||||
if (null === $repoConfig) {
|
||||
return;
|
||||
}
|
||||
if (isset($repoConfig['unique_perforce_client_name'])) {
|
||||
|
@ -313,7 +313,7 @@ class Perforce
|
|||
$prevDir = getcwd();
|
||||
chdir($this->path);
|
||||
$p4SyncCommand = $this->generateP4Command('sync -f ');
|
||||
if (null != $sourceReference) {
|
||||
if (null !== $sourceReference) {
|
||||
$p4SyncCommand = $p4SyncCommand . '@' . $sourceReference;
|
||||
}
|
||||
$this->executeCommand($p4SyncCommand);
|
||||
|
@ -362,7 +362,7 @@ class Perforce
|
|||
return;
|
||||
}
|
||||
$line = fgets($pipe);
|
||||
while ($line != false) {
|
||||
while ($line !== false) {
|
||||
$line = fgets($pipe);
|
||||
}
|
||||
|
||||
|
@ -549,11 +549,11 @@ class Perforce
|
|||
public function getCommitLogs($fromReference, $toReference)
|
||||
{
|
||||
$fromChangeList = $this->getChangeList($fromReference);
|
||||
if ($fromChangeList == null) {
|
||||
if ($fromChangeList === null) {
|
||||
return null;
|
||||
}
|
||||
$toChangeList = $this->getChangeList($toReference);
|
||||
if ($toChangeList == null) {
|
||||
if ($toChangeList === null) {
|
||||
return null;
|
||||
}
|
||||
$index = strpos($fromReference, '@');
|
||||
|
|
Loading…
Reference in New Issue