Author: ts
Date: Tue Jan 22 17:29:48 2008
New Revision: 7232
Log:
- Removed unneccessary === true and === false.
Modified:
trunk/Webdav/src/interfaces/property.php
trunk/Webdav/src/interfaces/request.php
trunk/Webdav/src/interfaces/response.php
trunk/Webdav/src/namespace_registry.php
trunk/Webdav/src/plugins/lock/property_handler.php
trunk/Webdav/src/properties/creationdate.php
trunk/Webdav/src/properties/displayname.php
trunk/Webdav/src/properties/getcontentlanguage.php
trunk/Webdav/src/properties/getcontentlength.php
trunk/Webdav/src/properties/getcontenttype.php
trunk/Webdav/src/properties/getetag.php
trunk/Webdav/src/properties/getlastmodified.php
trunk/Webdav/src/properties/lockdiscovery.php
trunk/Webdav/src/properties/lockdiscovery_activelock.php
trunk/Webdav/src/properties/source.php
trunk/Webdav/src/properties/source_link.php
trunk/Webdav/src/properties/supportedlock.php
trunk/Webdav/src/property_storages/basic.php
trunk/Webdav/src/property_storages/flagged.php
trunk/Webdav/src/requests/content/lock_info.php
trunk/Webdav/src/requests/content/property_behaviour.php
trunk/Webdav/src/requests/copy.php
trunk/Webdav/src/requests/lock.php
trunk/Webdav/src/requests/move.php
trunk/Webdav/src/requests/propfind.php
trunk/Webdav/src/requests/proppatch.php
trunk/Webdav/src/requests/put.php
trunk/Webdav/src/requests/unlock.php
trunk/Webdav/src/responses/options.php
trunk/Webdav/src/server.php
trunk/Webdav/src/server_configuration.php
trunk/Webdav/src/tools/xml.php
trunk/Webdav/src/transports/header_handler.php
trunk/Webdav/src/transports/property_handler.php
Modified: trunk/Webdav/src/interfaces/property.php
==============================================================================
--- trunk/Webdav/src/interfaces/property.php [iso-8859-1] (original)
+++ trunk/Webdav/src/interfaces/property.php [iso-8859-1] Tue Jan 22 17:29:48
2008
@@ -68,7 +68,7 @@
*/
public function __get( $propertyName )
{
- if ( $this->__isset( $propertyName ) === true )
+ if ( $this->__isset( $propertyName ) )
{
return $this->properties[$propertyName];
}
Modified: trunk/Webdav/src/interfaces/request.php
==============================================================================
--- trunk/Webdav/src/interfaces/request.php [iso-8859-1] (original)
+++ trunk/Webdav/src/interfaces/request.php [iso-8859-1] Tue Jan 22 17:29:48
2008
@@ -193,7 +193,7 @@
*/
public function __get( $propertyName )
{
- if ( $this->__isset( $propertyName ) === true )
+ if ( $this->__isset( $propertyName ) )
{
return $this->properties[$propertyName];
}
Modified: trunk/Webdav/src/interfaces/response.php
==============================================================================
--- trunk/Webdav/src/interfaces/response.php [iso-8859-1] (original)
+++ trunk/Webdav/src/interfaces/response.php [iso-8859-1] Tue Jan 22 17:29:48
2008
@@ -283,7 +283,7 @@
*/
public function __get( $propertyName )
{
- if ( $this->__isset( $propertyName ) === true )
+ if ( $this->__isset( $propertyName ) )
{
return $this->properties[$propertyName];
}
Modified: trunk/Webdav/src/namespace_registry.php
==============================================================================
--- trunk/Webdav/src/namespace_registry.php [iso-8859-1] (original)
+++ trunk/Webdav/src/namespace_registry.php [iso-8859-1] Tue Jan 22 17:29:48
2008
@@ -111,7 +111,7 @@
*/
public function offsetGet( $offset )
{
- if ( isset( $this->namespaceMap[$offset] ) === false )
+ if ( !isset( $this->namespaceMap[$offset] ) )
{
$this[$offset] = $this->newShortcut();
}
@@ -165,7 +165,7 @@
{
$shortcut = sprintf( "%s%'05s", $this->shortcutBase,
$this->shortcutCounter++ );
}
- while ( isset( $this->usedShortcuts[$shortcut] ) === true );
+ while ( isset( $this->usedShortcuts[$shortcut] ) );
return $shortcut;
}
}
Modified: trunk/Webdav/src/plugins/lock/property_handler.php
==============================================================================
--- trunk/Webdav/src/plugins/lock/property_handler.php [iso-8859-1] (original)
+++ trunk/Webdav/src/plugins/lock/property_handler.php [iso-8859-1] Tue Jan 22
17:29:48 2008
@@ -37,14 +37,14 @@
{
case 'lockdiscovery':
$property = new ezcWebdavLockDiscoveryProperty();
- if ( $domElement->hasChildNodes() === true )
+ if ( $domElement->hasChildNodes() )
{
$property->activeLock = $this->extractActiveLockContent(
$domElement );
}
break;
case 'supportedlock':
$property = new ezcWebdavSupportedLockProperty();
- if ( $domElement->hasChildNodes() === true )
+ if ( $domElement->hasChildNodes() )
{
$property->links = $this->extractLockEntryContent(
$domElement );
}
@@ -70,7 +70,7 @@
$activelockElement = $domElement->getElementsByTagNameNS(
ezcWebdavXmlTool::XML_DEFAULT_NAMESPACE, 'activelock' )->item( 0 );
for ( $i = 0; $i < $activelockElement->childNodes->length; ++$i )
{
- if ( ( ( $currentElement = $activelockElement->childNodes->item(
$i ) ) instanceof DOMElement ) === false )
+ if ( !( ( $currentElement = $activelockElement->childNodes->item(
$i ) ) instanceof DOMElement ) )
{
// Skip non element children
continue;
Modified: trunk/Webdav/src/properties/creationdate.php
==============================================================================
--- trunk/Webdav/src/properties/creationdate.php [iso-8859-1] (original)
+++ trunk/Webdav/src/properties/creationdate.php [iso-8859-1] Tue Jan 22
17:29:48 2008
@@ -55,7 +55,7 @@
switch ( $propertyName )
{
case 'date':
- if ( ( $propertyValue instanceof ezcWebdavDateTime ) === false
&& $propertyValue !== null )
+ if ( !( $propertyValue instanceof ezcWebdavDateTime ) &&
$propertyValue !== null )
{
return $this->hasError( $propertyName, $propertyValue,
'ezcWebdavDateTime' );
}
Modified: trunk/Webdav/src/properties/displayname.php
==============================================================================
--- trunk/Webdav/src/properties/displayname.php [iso-8859-1] (original)
+++ trunk/Webdav/src/properties/displayname.php [iso-8859-1] Tue Jan 22
17:29:48 2008
@@ -55,7 +55,7 @@
switch ( $propertyName )
{
case 'displayName':
- if ( is_string( $propertyValue ) === false && $propertyValue
!== null )
+ if ( !is_string( $propertyValue ) && $propertyValue !== null )
{
return $this->hasError( $propertyName, $propertyValue,
'string' );
}
Modified: trunk/Webdav/src/properties/getcontentlanguage.php
==============================================================================
--- trunk/Webdav/src/properties/getcontentlanguage.php [iso-8859-1] (original)
+++ trunk/Webdav/src/properties/getcontentlanguage.php [iso-8859-1] Tue Jan 22
17:29:48 2008
@@ -55,7 +55,7 @@
switch ( $propertyName )
{
case 'languages':
- if ( is_array( $propertyValue ) === false )
+ if ( !is_array( $propertyValue ) )
{
return $this->hasError( $propertyName, $propertyValue,
'string' );
}
Modified: trunk/Webdav/src/properties/getcontentlength.php
==============================================================================
--- trunk/Webdav/src/properties/getcontentlength.php [iso-8859-1] (original)
+++ trunk/Webdav/src/properties/getcontentlength.php [iso-8859-1] Tue Jan 22
17:29:48 2008
@@ -63,7 +63,7 @@
switch ( $propertyName )
{
case 'length':
- if ( ( is_string( $propertyValue ) === false || is_numeric(
$propertyValue ) === false ) && $propertyValue !== null )
+ if ( ( !is_string( $propertyValue ) || !is_numeric(
$propertyValue ) ) && $propertyValue !== null )
{
return $this->hasError( $propertyName, $propertyValue,
'string of digits' );
}
Modified: trunk/Webdav/src/properties/getcontenttype.php
==============================================================================
--- trunk/Webdav/src/properties/getcontenttype.php [iso-8859-1] (original)
+++ trunk/Webdav/src/properties/getcontenttype.php [iso-8859-1] Tue Jan 22
17:29:48 2008
@@ -59,7 +59,7 @@
switch ( $propertyName )
{
case 'mime':
- if ( is_string( $propertyValue ) === false && $propertyValue
!== null )
+ if ( !is_string( $propertyValue ) && $propertyValue !== null )
{
return $this->hasError( $propertyName, $propertyValue,
'string' );
}
@@ -67,7 +67,7 @@
$this->properties[$propertyName] = $propertyValue;
break;
case 'charset':
- if ( is_string( $propertyValue ) === false && $propertyValue
!== null )
+ if ( !is_string( $propertyValue ) && $propertyValue !== null )
{
return $this->hasError( $propertyName, $propertyValue,
'string' );
}
Modified: trunk/Webdav/src/properties/getetag.php
==============================================================================
--- trunk/Webdav/src/properties/getetag.php [iso-8859-1] (original)
+++ trunk/Webdav/src/properties/getetag.php [iso-8859-1] Tue Jan 22 17:29:48
2008
@@ -55,7 +55,7 @@
switch ( $propertyName )
{
case 'etag':
- if ( is_string( $propertyValue ) === false && $propertyValue
!== null )
+ if ( !is_string( $propertyValue ) && $propertyValue !== null )
{
return $this->hasError( $propertyName, $propertyValue,
'string' );
}
Modified: trunk/Webdav/src/properties/getlastmodified.php
==============================================================================
--- trunk/Webdav/src/properties/getlastmodified.php [iso-8859-1] (original)
+++ trunk/Webdav/src/properties/getlastmodified.php [iso-8859-1] Tue Jan 22
17:29:48 2008
@@ -55,7 +55,7 @@
switch ( $propertyName )
{
case 'date':
- if ( ( $propertyValue instanceof ezcWebdavDateTime ) === false
&& $propertyValue !== null )
+ if ( !( $propertyValue instanceof ezcWebdavDateTime ) &&
$propertyValue !== null )
{
return $this->hasError( $propertyName, $propertyValue,
'ezcWebdavDateTime' );
}
Modified: trunk/Webdav/src/properties/lockdiscovery.php
==============================================================================
--- trunk/Webdav/src/properties/lockdiscovery.php [iso-8859-1] (original)
+++ trunk/Webdav/src/properties/lockdiscovery.php [iso-8859-1] Tue Jan 22
17:29:48 2008
@@ -60,7 +60,7 @@
switch ( $propertyName )
{
case 'activeLock':
- if ( is_array( $propertyValue ) === false && $propertyValue
!== null )
+ if ( !is_array( $propertyValue ) && $propertyValue !== null )
{
return $this->hasError( $propertyName, $propertyValue,
'array(ezcWebdavLockDiscoveryPropertyActiveLock)' );
}
Modified: trunk/Webdav/src/properties/lockdiscovery_activelock.php
==============================================================================
--- trunk/Webdav/src/properties/lockdiscovery_activelock.php [iso-8859-1]
(original)
+++ trunk/Webdav/src/properties/lockdiscovery_activelock.php [iso-8859-1] Tue
Jan 22 17:29:48 2008
@@ -93,25 +93,25 @@
}
break;
case 'owner':
- if ( is_string( $propertyValue ) === false && $propertyValue
!== null )
+ if ( !is_string( $propertyValue ) && $propertyValue !== null )
{
return $this->hasError( $propertyName, $propertyValue,
'string' );
}
break;
case 'timeout':
- if ( ( $propertyValue instanceof ezcWebdavDateTime ) === false
&& $propertyValue !== null )
+ if ( !( $propertyValue instanceof ezcWebdavDateTime ) &&
$propertyValue !== null )
{
return $this->hasError( $propertyName, $propertyValue,
'ezcWebdavDateTime' );
}
break;
case 'timeout':
- if ( ( $propertyValue instanceof ezcWebdavDateTime ) === false
&& $propertyValue !== null )
+ if ( !( $propertyValue instanceof ezcWebdavDateTime ) &&
$propertyValue !== null )
{
return $this->hasError( $propertyName, $propertyValue,
'ezcWebdavDateTime' );
}
break;
case 'tokens':
- if ( is_array( $propertyValue ) === false )
+ if ( !is_array( $propertyValue ) )
{
return $this->hasError( $propertyName, $propertyValue,
'array(string)' );
}
Modified: trunk/Webdav/src/properties/source.php
==============================================================================
--- trunk/Webdav/src/properties/source.php [iso-8859-1] (original)
+++ trunk/Webdav/src/properties/source.php [iso-8859-1] Tue Jan 22 17:29:48 2008
@@ -56,7 +56,7 @@
switch ( $propertyName )
{
case 'links':
- if ( is_array( $propertyValue ) === false )
+ if ( !is_array( $propertyValue ) )
{
return $this->hasError( $propertyName, $propertyValue,
'array(ezcWebdavSourcePropertyLink)' );
}
Modified: trunk/Webdav/src/properties/source_link.php
==============================================================================
--- trunk/Webdav/src/properties/source_link.php [iso-8859-1] (original)
+++ trunk/Webdav/src/properties/source_link.php [iso-8859-1] Tue Jan 22
17:29:48 2008
@@ -60,7 +60,7 @@
switch ( $propertyName )
{
case 'src':
- if ( is_string( $propertyValue ) === false && $propertyValue
!== null )
+ if ( !is_string( $propertyValue ) && $propertyValue !== null )
{
return $this->hasError( $propertyName, $propertyValue,
'string' );
}
@@ -69,7 +69,7 @@
break;
case 'dst':
- if ( is_string( $propertyValue ) === false && $propertyValue
!== null )
+ if ( !is_string( $propertyValue ) && $propertyValue !== null )
{
return $this->hasError( $propertyName, $propertyValue,
'string' );
}
Modified: trunk/Webdav/src/properties/supportedlock.php
==============================================================================
--- trunk/Webdav/src/properties/supportedlock.php [iso-8859-1] (original)
+++ trunk/Webdav/src/properties/supportedlock.php [iso-8859-1] Tue Jan 22
17:29:48 2008
@@ -60,7 +60,7 @@
switch ( $propertyName )
{
case 'lockEntry':
- if ( is_array( $propertyValue ) === false && $propertyValue
!== null )
+ if ( !is_array( $propertyValue ) && $propertyValue !== null )
{
return $this->hasError( $propertyName, $propertyValue,
'array(ezcWebdavSupportedLockPropertyLockentry)' );
}
Modified: trunk/Webdav/src/property_storages/basic.php
==============================================================================
--- trunk/Webdav/src/property_storages/basic.php [iso-8859-1] (original)
+++ trunk/Webdav/src/property_storages/basic.php [iso-8859-1] Tue Jan 22
17:29:48 2008
@@ -81,8 +81,8 @@
public function attach( ezcWebdavProperty $property )
{
// Update list of ordered properties
- if ( ( isset( $this->properties[$property->namespace] ) === false ) ||
- ( isset( $this->properties[$property->namespace][$property->name]
) === false ) )
+ if ( !isset( $this->properties[$property->namespace] ) ||
+ !isset( $this->properties[$property->namespace][$property->name]
) )
{
$this->propertyOrder[$this->propertyOrderNextId++] = array(
$property->namespace, $property->name );
}
@@ -105,8 +105,8 @@
*/
public function detach( $name, $namespace = 'DAV:' )
{
- if ( ( isset( $this->properties[$namespace] ) === true ) &&
- ( isset( $this->properties[$namespace][$name] ) === true ) )
+ if ( isset( $this->properties[$namespace] ) &&
+ isset( $this->properties[$namespace][$name] ) )
{
unset( $this->properties[$namespace][$name] );
}
@@ -142,7 +142,7 @@
*/
public function get( $name, $namespace = 'DAV:' )
{
- if ( isset( $this->properties[$namespace][$name] ) === true )
+ if ( isset( $this->properties[$namespace][$name] ) )
{
return $this->properties[$namespace][$name];
}
@@ -161,7 +161,7 @@
*/
public function getProperties( $namespace = 'DAV:' )
{
- if ( isset( $this->properties[$namespace] ) === false )
+ if ( !isset( $this->properties[$namespace] ) )
{
return array();
}
Modified: trunk/Webdav/src/property_storages/flagged.php
==============================================================================
--- trunk/Webdav/src/property_storages/flagged.php [iso-8859-1] (original)
+++ trunk/Webdav/src/property_storages/flagged.php [iso-8859-1] Tue Jan 22
17:29:48 2008
@@ -61,8 +61,8 @@
public function attach( ezcWebdavProperty $property, $flag = 0 )
{
// Update list of ordered properties
- if ( ( isset( $this->properties[$property->namespace] ) === false ) ||
- ( isset( $this->properties[$property->namespace][$property->name]
) === false ) )
+ if ( !isset( $this->properties[$property->namespace] ) ||
+ !isset( $this->properties[$property->namespace][$property->name]
) )
{
$this->propertyOrder[$this->propertyOrderNextId++] = array(
$property->namespace, $property->name );
}
@@ -86,8 +86,8 @@
*/
public function detach( $name, $namespace = 'DAV:' )
{
- if ( ( isset( $this->properties[$namespace] ) === true ) &&
- ( isset( $this->properties[$namespace][$name] ) === true ) )
+ if ( isset( $this->properties[$namespace] ) &&
+ isset( $this->properties[$namespace][$name] ) )
{
unset( $this->properties[$namespace][$name] );
unset( $this->flags[$namespace][$name] );
@@ -110,8 +110,8 @@
*/
public function getFlag( $name, $namespace = 'DAV:' )
{
- if ( ( isset( $this->properties[$namespace] ) === true ) &&
- ( isset( $this->properties[$namespace][$name] ) === true ) )
+ if ( isset( $this->properties[$namespace] ) &&
+ isset( $this->properties[$namespace][$name] ) )
{
return $this->flags[$namespace][$name];
}
Modified: trunk/Webdav/src/requests/content/lock_info.php
==============================================================================
--- trunk/Webdav/src/requests/content/lock_info.php [iso-8859-1] (original)
+++ trunk/Webdav/src/requests/content/lock_info.php [iso-8859-1] Tue Jan 22
17:29:48 2008
@@ -93,7 +93,7 @@
}
break;
case 'owner':
- if ( is_string( $propertyValue ) === false && $propertyValue
!== null )
+ if ( !is_string( $propertyValue ) && $propertyValue !== null )
{
throw new ezcBaseValueException(
$propertyName,
@@ -126,7 +126,7 @@
*/
public function __get( $propertyName )
{
- if ( $this->__isset( $propertyName ) === true )
+ if ( $this->__isset( $propertyName ) )
{
return $this->properties[$propertyName];
}
Modified: trunk/Webdav/src/requests/content/property_behaviour.php
==============================================================================
--- trunk/Webdav/src/requests/content/property_behaviour.php [iso-8859-1]
(original)
+++ trunk/Webdav/src/requests/content/property_behaviour.php [iso-8859-1] Tue
Jan 22 17:29:48 2008
@@ -80,7 +80,7 @@
switch ( $propertyName )
{
case 'keepAlive':
- if ( is_array( $propertyValue ) === false && $propertyValue
!== self::ALL && $propertyValue !== null )
+ if ( !is_array( $propertyValue ) && $propertyValue !==
self::ALL && $propertyValue !== null )
{
throw new ezcBaseValueException(
$propertyName,
@@ -98,7 +98,7 @@
}
break;
case 'omit':
- if ( is_bool( $propertyValue ) === false )
+ if ( !is_bool( $propertyValue ) )
{
throw new ezcBaseValueException( $propertyName,
$propertyValue, 'bool' );
}
@@ -136,7 +136,7 @@
*/
public function __get( $propertyName )
{
- if ( $this->__isset( $propertyName ) === true )
+ if ( $this->__isset( $propertyName ) )
{
return $this->properties[$propertyName];
}
Modified: trunk/Webdav/src/requests/copy.php
==============================================================================
--- trunk/Webdav/src/requests/copy.php [iso-8859-1] (original)
+++ trunk/Webdav/src/requests/copy.php [iso-8859-1] Tue Jan 22 17:29:48 2008
@@ -80,7 +80,7 @@
switch ( $propertyName )
{
case 'propertyBehaviour':
- if ( ( $propertyValue instanceof
ezcWebdavRequestPropertyBehaviourContent ) === false && $propertyValue !== null
)
+ if ( !( $propertyValue instanceof
ezcWebdavRequestPropertyBehaviourContent ) && $propertyValue !== null )
{
throw new ezcBaseValueException( $propertyName,
$propertyValue, 'ezcWebdavRequestPropertyBehaviourContent' );
}
@@ -106,12 +106,12 @@
*/
public function validateHeaders()
{
- if ( isset( $this->headers['Destination'] ) === false )
+ if ( !isset( $this->headers['Destination'] ) )
{
throw new ezcWebdavMissingHeaderException( 'Destination' );
}
- if ( isset( $this->headers['Overwrite'] ) === false )
+ if ( !isset( $this->headers['Overwrite'] ) )
{
throw new ezcWebdavMissingHeaderException( 'Overwrite' );
}
@@ -125,7 +125,7 @@
);
}
- if ( isset( $this->headers['Depth'] ) === false )
+ if ( !isset( $this->headers['Depth'] ) )
{
throw new ezcWebdavMissingHeaderException( 'Depth' );
}
Modified: trunk/Webdav/src/requests/lock.php
==============================================================================
--- trunk/Webdav/src/requests/lock.php [iso-8859-1] (original)
+++ trunk/Webdav/src/requests/lock.php [iso-8859-1] Tue Jan 22 17:29:48 2008
@@ -101,7 +101,7 @@
switch ( $propertyName )
{
case 'lockInfo':
- if ( ( $propertyValue instanceof
ezcWebdavRequestLockInfoContent ) === false && $propertyValue !== null )
+ if ( !( $propertyValue instanceof
ezcWebdavRequestLockInfoContent ) && $propertyValue !== null )
{
throw new ezcBaseValueException( $propertyName,
$propertyValue, 'ezcWebdavRequestLockInfoContent or null' );
}
@@ -126,7 +126,7 @@
*/
public function validateHeaders()
{
- if ( isset( $this->headers['Depth'] ) === false )
+ if ( !isset( $this->headers['Depth'] ) )
{
throw new ezcWebdavMissingHeaderException( 'Depth' );
}
Modified: trunk/Webdav/src/requests/move.php
==============================================================================
--- trunk/Webdav/src/requests/move.php [iso-8859-1] (original)
+++ trunk/Webdav/src/requests/move.php [iso-8859-1] Tue Jan 22 17:29:48 2008
@@ -77,7 +77,7 @@
switch ( $propertyName )
{
case 'propertyBehaviour':
- if ( ( $propertyValue instanceof
ezcWebdavRequestPropertyBehaviourContent ) === false && $propertyValue !== null
)
+ if ( !( $propertyValue instanceof
ezcWebdavRequestPropertyBehaviourContent ) && $propertyValue !== null )
{
throw new ezcBaseValueException( $propertyName,
$propertyValue, 'ezcWebdavRequestPropertyBehaviourContent' );
}
@@ -103,12 +103,12 @@
*/
public function validateHeaders()
{
- if ( isset( $this->headers['Destination'] ) === false )
+ if ( !isset( $this->headers['Destination'] ) )
{
throw new ezcWebdavMissingHeaderException( 'Destination' );
}
- if ( isset( $this->headers['Overwrite'] ) === false )
+ if ( !isset( $this->headers['Overwrite'] ) )
{
throw new ezcWebdavMissingHeaderException( 'Overwrite' );
}
Modified: trunk/Webdav/src/requests/propfind.php
==============================================================================
--- trunk/Webdav/src/requests/propfind.php [iso-8859-1] (original)
+++ trunk/Webdav/src/requests/propfind.php [iso-8859-1] Tue Jan 22 17:29:48 2008
@@ -85,7 +85,7 @@
switch ( $propertyName )
{
case 'allProp':
- if ( is_bool( $propertyValue ) === false )
+ if ( !is_bool( $propertyValue ) )
{
throw new ezcBaseValueException( $propertyName,
$propertyValue, 'bool' );
}
@@ -95,7 +95,7 @@
}
break;
case 'propName':
- if ( is_bool( $propertyValue ) === false )
+ if ( !is_bool( $propertyValue ) )
{
throw new ezcBaseValueException( $propertyName,
$propertyValue, 'bool' );
}
@@ -105,7 +105,7 @@
}
break;
case 'prop':
- if ( ( $propertyValue instanceof ezcWebdavPropertyStorage )
=== false && $propertyValue !== null )
+ if ( !( $propertyValue instanceof ezcWebdavPropertyStorage )
&& $propertyValue !== null )
{
throw new ezcBaseValueException( $propertyName,
$propertyValue, 'ezcWebdavPropertyStorage' );
}
@@ -134,7 +134,7 @@
*/
public function validateHeaders()
{
- if ( isset( $this->headers['Depth'] ) === false )
+ if ( !isset( $this->headers['Depth'] ) )
{
throw new ezcWebdavMissingHeaderException( 'Depth' );
}
Modified: trunk/Webdav/src/requests/proppatch.php
==============================================================================
--- trunk/Webdav/src/requests/proppatch.php [iso-8859-1] (original)
+++ trunk/Webdav/src/requests/proppatch.php [iso-8859-1] Tue Jan 22 17:29:48
2008
@@ -79,7 +79,7 @@
switch ( $propertyName )
{
case 'updates':
- if ( ( $propertyValue instanceof
ezcWebdavFlaggedPropertyStorage ) === false )
+ if ( !( $propertyValue instanceof
ezcWebdavFlaggedPropertyStorage ) )
{
throw new ezcBaseValueException( $propertyName,
$propertyValue, 'ezcWebdavFlaggedPropertyStorage' );
}
Modified: trunk/Webdav/src/requests/put.php
==============================================================================
--- trunk/Webdav/src/requests/put.php [iso-8859-1] (original)
+++ trunk/Webdav/src/requests/put.php [iso-8859-1] Tue Jan 22 17:29:48 2008
@@ -54,11 +54,11 @@
*/
public function validateHeaders()
{
- if ( isset( $this->headers['Content-Length'] ) === false )
+ if ( !isset( $this->headers['Content-Length'] ) )
{
throw new ezcWebdavMissingHeaderException( 'Content-Length' );
}
- if ( isset( $this->headers['Content-Type'] ) === false )
+ if ( !isset( $this->headers['Content-Type'] ) )
{
$this->setHeader( 'Content-Type', 'application/octet-stream' );
}
Modified: trunk/Webdav/src/requests/unlock.php
==============================================================================
--- trunk/Webdav/src/requests/unlock.php [iso-8859-1] (original)
+++ trunk/Webdav/src/requests/unlock.php [iso-8859-1] Tue Jan 22 17:29:48 2008
@@ -34,7 +34,7 @@
*/
public function validateHeaders()
{
- if ( isset( $this->headers['Lock-Token'] ) === false )
+ if ( !isset( $this->headers['Lock-Token'] ) )
{
throw new ezcWebdavMissingHeaderException( 'Lock-Token' );
}
Modified: trunk/Webdav/src/responses/options.php
==============================================================================
--- trunk/Webdav/src/responses/options.php [iso-8859-1] (original)
+++ trunk/Webdav/src/responses/options.php [iso-8859-1] Tue Jan 22 17:29:48 2008
@@ -57,7 +57,7 @@
*/
public function validateHeaders()
{
- if ( isset( $this->headers['DAV'] ) === false )
+ if ( !isset( $this->headers['DAV'] ) )
{
throw new ezcWebdavMissingHeaderException( 'DAV' );
}
Modified: trunk/Webdav/src/server.php
==============================================================================
--- trunk/Webdav/src/server.php [iso-8859-1] (original)
+++ trunk/Webdav/src/server.php [iso-8859-1] Tue Jan 22 17:29:48 2008
@@ -258,7 +258,7 @@
switch ( $propertyName )
{
case 'configurations':
- if ( ( $propertyValue instanceof
ezcWebdavServerConfigurationManager ) === false )
+ if ( !( $propertyValue instanceof
ezcWebdavServerConfigurationManager ) )
{
throw new ezcBaseValueException( $propertyName,
$propertyValue, 'ezcWebdavServerConfigurationManager' );
}
@@ -297,7 +297,7 @@
*/
public function __get( $propertyName )
{
- if ( $this->__isset( $propertyName ) === true )
+ if ( $this->__isset( $propertyName ) )
{
return $this->properties[$propertyName];
}
Modified: trunk/Webdav/src/server_configuration.php
==============================================================================
--- trunk/Webdav/src/server_configuration.php [iso-8859-1] (original)
+++ trunk/Webdav/src/server_configuration.php [iso-8859-1] Tue Jan 22 17:29:48
2008
@@ -253,7 +253,7 @@
*/
public function __get( $propertyName )
{
- if ( $this->__isset( $propertyName ) === true )
+ if ( $this->__isset( $propertyName ) )
{
return $this->properties[$propertyName];
}
Modified: trunk/Webdav/src/tools/xml.php
==============================================================================
--- trunk/Webdav/src/tools/xml.php [iso-8859-1] (original)
+++ trunk/Webdav/src/tools/xml.php [iso-8859-1] Tue Jan 22 17:29:48 2008
@@ -86,10 +86,11 @@
$dom = new DOMDocument( self::XML_VERSION, self::XML_ENCODING );
if ( $content !== null )
{
- if ( $dom->loadXML(
+ if ( !$dom->loadXML(
$content,
LIBXML_NOWARNING | LIBXML_NSCLEAN | LIBXML_NOBLANKS
- ) === false )
+ )
+ )
{
return false;
}
@@ -134,7 +135,7 @@
switch ( $propertyName )
{
case 'namespaceRegistry':
- if ( ( $propertyValue instanceof ezcWebdavNamespaceRegistry )
=== false )
+ if ( !( $propertyValue instanceof ezcWebdavNamespaceRegistry )
)
{
throw new ezcBaseValueException( $propertyName,
$propertyValue, 'ezcWebdavNamespaceRegistry' );
}
@@ -157,7 +158,7 @@
*/
public function __get( $propertyName )
{
- if ( $this->__isset( $propertyName ) === false )
+ if ( !$this->__isset( $propertyName ) )
{
throw new ezcBasePropertyNotFoundException( $propertyName );
}
Modified: trunk/Webdav/src/transports/header_handler.php
==============================================================================
--- trunk/Webdav/src/transports/header_handler.php [iso-8859-1] (original)
+++ trunk/Webdav/src/transports/header_handler.php [iso-8859-1] Tue Jan 22
17:29:48 2008
@@ -95,7 +95,7 @@
*/
public function parseHeader( $headerName )
{
- if ( isset( $this->headerMap[$headerName] ) === false )
+ if ( !isset( $this->headerMap[$headerName] ) )
{
throw new ezcWebdavUnknownHeaderException( $headerName );
}
Modified: trunk/Webdav/src/transports/property_handler.php
==============================================================================
--- trunk/Webdav/src/transports/property_handler.php [iso-8859-1] (original)
+++ trunk/Webdav/src/transports/property_handler.php [iso-8859-1] Tue Jan 22
17:29:48 2008
@@ -281,21 +281,21 @@
{
case 'creationdate':
$property = new ezcWebdavCreationDateProperty();
- if ( empty( $domElement->nodeValue ) === false )
+ if ( !empty( $domElement->nodeValue ) )
{
$property->date = new ezcWebdavDateTime(
$domElement->nodeValue );
}
break;
case 'displayname':
$property = new ezcWebdavDisplayNameProperty();
- if ( empty( $domElement->nodeValue ) === false )
+ if ( !empty( $domElement->nodeValue ) )
{
$property->displayName = $domElement->nodeValue;
}
break;
case 'getcontentlanguage':
$property = new ezcWebdavGetContentLanguageProperty();
- if ( empty( $domElement->nodeValue ) === false )
+ if ( !empty( $domElement->nodeValue ) )
{
// e.g. 'de, en'
$property->languages = array_map( 'trim', explode( ',',
$domElement->nodeValue ) );
@@ -303,7 +303,7 @@
break;
case 'getcontentlength':
$property = new ezcWebdavGetContentLengthProperty();
- if ( empty( $domElement->nodeValue ) === false )
+ if ( !empty( $domElement->nodeValue ) )
{
$property->length = trim( $domElement->nodeValue );
}
@@ -312,7 +312,7 @@
$property = new ezcWebdavGetContentTypeProperty();
// @TODO: Should this throw an exception, if the match fails?
// Currently, the property stays empty and the backend needs
to handle this
- if ( empty( $domElement->nodeValue ) === false
+ if ( !empty( $domElement->nodeValue )
&& preg_match( self::GETCONTENTTYPE_REGEX,
$domElement->nodeValue, $matches ) > 0 )
{
$property->mime = $matches['mime'];
@@ -325,28 +325,28 @@
break;
case 'getetag':
$property = new ezcWebdavGetEtagProperty();
- if ( empty( $domElement->nodeValue ) === false )
+ if ( !empty( $domElement->nodeValue ) )
{
$property->etag = $domElement->nodeValue;
}
break;
case 'getlastmodified':
$property = new ezcWebdavGetLastModifiedProperty();
- if ( empty( $domElement->nodeValue ) === false )
+ if ( !empty( $domElement->nodeValue ) )
{
$property->date = new ezcWebdavDateTime(
$domElement->nodeValue );
}
break;
case 'resourcetype':
$property = new ezcWebdavResourceTypeProperty();
- if ( empty( $domElement->nodeValue ) === false )
+ if ( !empty( $domElement->nodeValue ) )
{
$property->type = $domElement->nodeValue;
}
break;
case 'source':
$property = new ezcWebdavSourceProperty();
- if ( $domElement->hasChildNodes() === true )
+ if ( $domElement->hasChildNodes() )
{
$property->links = $this->extractLinkContent( $domElement
);
}
--
svn-components mailing list
[EMAIL PROTECTED]
http://lists.ez.no/mailman/listinfo/svn-components