Skip to content
Snippets Groups Projects
Commit a7eb56c7 authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Merge pull request #76 from fmms/master

checkstyle: some more cleanups
parents f33af71e 36d0d759
No related branches found
No related tags found
No related merge requests found
...@@ -87,7 +87,7 @@ $maxUploadFilesize = min($upload_max_filesize, $post_max_size); ...@@ -87,7 +87,7 @@ $maxUploadFilesize = min($upload_max_filesize, $post_max_size);
$freeSpace=OC_Filesystem::free_space($dir); $freeSpace=OC_Filesystem::free_space($dir);
$freeSpace=max($freeSpace,0); $freeSpace=max($freeSpace,0);
$maxUploadFilesize = min($maxUploadFilesize ,$freeSpace); $maxUploadFilesize = min($maxUploadFilesize, $freeSpace);
$permissions = OCP\Share::PERMISSION_READ; $permissions = OCP\Share::PERMISSION_READ;
if (OC_Filesystem::isUpdatable($dir.'/')) { if (OC_Filesystem::isUpdatable($dir.'/')) {
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<?php if (isset($_['folder'])): ?> <?php if (isset($_['folder'])): ?>
<?php echo $_['folder']; ?> <?php echo $_['folder']; ?>
<?php else: ?> <?php else: ?>
<?php if (substr($_['mimetype'], 0 , strpos($_['mimetype'], '/')) == 'image'): ?> <?php if (substr($_['mimetype'], 0, strpos($_['mimetype'], '/')) == 'image'): ?>
<div id="imgframe"> <div id="imgframe">
<img src="<?php echo $_['downloadURL']; ?>" /> <img src="<?php echo $_['downloadURL']; ?>" />
</div> </div>
......
...@@ -51,7 +51,7 @@ class OC_USER_WEBDAVAUTH extends OC_User_Backend { ...@@ -51,7 +51,7 @@ class OC_USER_WEBDAVAUTH extends OC_User_Backend {
$url= 'http://'.urlencode($uid).':'.urlencode($password).'@'.$this->webdavauth_url; $url= 'http://'.urlencode($uid).':'.urlencode($password).'@'.$this->webdavauth_url;
$headers = get_headers($url); $headers = get_headers($url);
if($headers==false) { 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; return false;
} }
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
* *
*/ */
$RUNTIME_NOAPPS = TRUE; //no apps, yet $RUNTIME_NOAPPS = true; //no apps, yet
require_once 'lib/base.php'; require_once 'lib/base.php';
......
...@@ -549,17 +549,14 @@ class OC_App{ ...@@ -549,17 +549,14 @@ class OC_App{
foreach ( OC::$APPSROOTS as $apps_dir ) { foreach ( OC::$APPSROOTS as $apps_dir ) {
if(! is_readable($apps_dir['path'])) { 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; continue;
} }
$dh = opendir( $apps_dir['path'] ); $dh = opendir( $apps_dir['path'] );
while( $file = readdir( $dh ) ) { while( $file = readdir( $dh ) ) {
if ( if ($file[0] != '.' and is_file($apps_dir['path'].'/'.$file.'/appinfo/app.php')) {
$file[0] != '.'
and is_file($apps_dir['path'].'/'.$file.'/appinfo/app.php' )
) {
$apps[] = $file; $apps[] = $file;
......
...@@ -80,7 +80,7 @@ class OC_OCSClient{ ...@@ -80,7 +80,7 @@ class OC_OCSClient{
} }
$url=OC_OCSClient::getAppStoreURL().'/content/categories'; $url=OC_OCSClient::getAppStoreURL().'/content/categories';
$xml=OC_OCSClient::getOCSresponse($url); $xml=OC_OCSClient::getOCSresponse($url);
if($xml==FALSE) { if($xml==false) {
return null; return null;
} }
$data=simplexml_load_string($xml); $data=simplexml_load_string($xml);
...@@ -122,8 +122,8 @@ class OC_OCSClient{ ...@@ -122,8 +122,8 @@ class OC_OCSClient{
$apps=array(); $apps=array();
$xml=OC_OCSClient::getOCSresponse($url); $xml=OC_OCSClient::getOCSresponse($url);
if($xml==FALSE) { if($xml==false) {
return NULL; return null;
} }
$data=simplexml_load_string($xml); $data=simplexml_load_string($xml);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment