diff --git a/apps/files/index.php b/apps/files/index.php
index a65ffe732a107bafe6bc01511ec7f3c6f76295c4..92fda5b21e596adcd6ed99599ea429342b477596 100644
--- a/apps/files/index.php
+++ b/apps/files/index.php
@@ -87,7 +87,7 @@ $maxUploadFilesize = min($upload_max_filesize, $post_max_size);
 
 $freeSpace=OC_Filesystem::free_space($dir);
 $freeSpace=max($freeSpace,0);
-$maxUploadFilesize = min($maxUploadFilesize ,$freeSpace);
+$maxUploadFilesize = min($maxUploadFilesize, $freeSpace);
 
 $permissions = OCP\Share::PERMISSION_READ;
 if (OC_Filesystem::isUpdatable($dir.'/')) {
diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php
index ef81e296d822f9a3a3770d54293e315ce9350cc2..35cca7c42dc9c2832c5b3923fdc681d3ddfed6f8 100644
--- a/apps/files_sharing/templates/public.php
+++ b/apps/files_sharing/templates/public.php
@@ -19,7 +19,7 @@
 	<?php if (isset($_['folder'])): ?>
 		<?php echo $_['folder']; ?>
 	<?php else: ?>
-		<?php if (substr($_['mimetype'], 0 , strpos($_['mimetype'], '/')) == 'image'): ?>
+		<?php if (substr($_['mimetype'], 0, strpos($_['mimetype'], '/')) == 'image'): ?>
 			<div id="imgframe">
 				<img src="<?php echo $_['downloadURL']; ?>" />
 			</div>
diff --git a/apps/user_webdavauth/user_webdavauth.php b/apps/user_webdavauth/user_webdavauth.php
index c36d37c1fa2ef892aa77e82f8a7513e04add3703..bd9f45d357b98c1f053ae15655dbbfbf6caee157 100755
--- a/apps/user_webdavauth/user_webdavauth.php
+++ b/apps/user_webdavauth/user_webdavauth.php
@@ -51,7 +51,7 @@ class OC_USER_WEBDAVAUTH extends OC_User_Backend {
 		$url= 'http://'.urlencode($uid).':'.urlencode($password).'@'.$this->webdavauth_url;
 		$headers = get_headers($url);
 		if($headers==false) {
-			OC_Log::write('OC_USER_WEBDAVAUTH', 'Not possible to connect to WebDAV Url: "'.$this->webdavauth_url.'" ' ,3);
+			OC_Log::write('OC_USER_WEBDAVAUTH', 'Not possible to connect to WebDAV Url: "'.$this->webdavauth_url.'" ', 3);
 			return false;
 
 		}
diff --git a/index.php b/index.php
index 12b2d8f406d1d9b7504e036ca3ba72d60e7ff12b..bf0b287a64b60064248386a7c9e822bfc68d6b6d 100755
--- a/index.php
+++ b/index.php
@@ -21,7 +21,7 @@
 *
 */
 
-$RUNTIME_NOAPPS = TRUE; //no apps, yet
+$RUNTIME_NOAPPS = true; //no apps, yet
 
 require_once 'lib/base.php';
 
diff --git a/lib/app.php b/lib/app.php
index cb68ea3ddde73f8852e9b2a381c687361308061b..28757735e04daaa81022f406e645efa93fa5bf4b 100755
--- a/lib/app.php
+++ b/lib/app.php
@@ -549,17 +549,14 @@ class OC_App{
 
 		foreach ( OC::$APPSROOTS as $apps_dir ) {
 			if(! is_readable($apps_dir['path'])) {
-				OC_Log::write('core', 'unable to read app folder : ' .$apps_dir['path'] , OC_Log::WARN);
+				OC_Log::write('core', 'unable to read app folder : ' .$apps_dir['path'], OC_Log::WARN);
 				continue;
 			}
 			$dh = opendir( $apps_dir['path'] );
 
 			while( $file = readdir( $dh ) ) {
 
-				if (
-				$file[0] != '.'
-				and is_file($apps_dir['path'].'/'.$file.'/appinfo/app.php' )
-				) {
+				if ($file[0] != '.' and is_file($apps_dir['path'].'/'.$file.'/appinfo/app.php')) {
 
 					$apps[] = $file;
 
diff --git a/lib/ocsclient.php b/lib/ocsclient.php
index 4d4937377b3b0ae98e63a0770a3361c228f7e85a..32c2cfe6e48340ea7a7ebb6b0fe1ae59a78399ba 100644
--- a/lib/ocsclient.php
+++ b/lib/ocsclient.php
@@ -80,7 +80,7 @@ class OC_OCSClient{
 		}
 		$url=OC_OCSClient::getAppStoreURL().'/content/categories';
 		$xml=OC_OCSClient::getOCSresponse($url);
-		if($xml==FALSE) {
+		if($xml==false) {
 			return null;
 		}
 		$data=simplexml_load_string($xml);
@@ -122,8 +122,8 @@ class OC_OCSClient{
 		$apps=array();
 		$xml=OC_OCSClient::getOCSresponse($url);
 
-		if($xml==FALSE) {
-			return NULL;
+		if($xml==false) {
+			return null;
 		}
 		$data=simplexml_load_string($xml);