Skip to content
This repository has been archived by the owner on Sep 10, 2021. It is now read-only.

Commit

Permalink
Consistently use lowercase true, false, null
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie Snape committed Jun 11, 2014
1 parent 4a6b62c commit fee0cb9
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion core/controllers/ImportController.php
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ private function _recursiveParseDirectory($path, $currentdir)
// Upload the bitstream
$assetstoreDao = $this->Assetstore->load($this->assetstoreid);
$this->Component->Upload->uploadBitstream($bitstreamDao,
$assetstoreDao, TRUE);
$assetstoreDao, true);

$this->ItemRevision->addBitstream($itemRevisionDao, $bitstreamDao);
} // end new revision
Expand Down
2 changes: 1 addition & 1 deletion core/controllers/components/ApidocsComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public function getWebApiDocs($resource, $module = '')
}
if(!empty($path))
{
$tokens = preg_split('@/@', $path, NULL, PREG_SPLIT_NO_EMPTY);
$tokens = preg_split('@/@', $path, null, PREG_SPLIT_NO_EMPTY);
$count = count($tokens);
if(empty($module) & !empty($tokens)) // core
{
Expand Down
2 changes: 1 addition & 1 deletion core/controllers/components/MIDAS2MigrationComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ function migrate($userid)
{
$privacy = MIDAS_COMMUNITY_PUBLIC;
}
$communityDao = $Community->createCommunity($name, $short_description, $privacy, NULL); // no user
$communityDao = $Community->createCommunity($name, $short_description, $privacy, null); // no user

// Add the users to the community
// MIDAS2 was not using the group heavily so we ignore them. This would have to be a manual step
Expand Down
2 changes: 1 addition & 1 deletion core/controllers/components/UtilityComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public function getAllModules()
public static function extractPathParams()
{
$request = Zend_Controller_Front::getInstance()->getRequest();
$allTokens = preg_split('@/@', $request->getPathInfo(), NULL, PREG_SPLIT_NO_EMPTY);
$allTokens = preg_split('@/@', $request->getPathInfo(), null, PREG_SPLIT_NO_EMPTY);

$tokens = array();
$i = 0;
Expand Down
4 changes: 2 additions & 2 deletions core/models/base/CommunityModelBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ function createCommunity($name, $description, $privacy, $user, $canJoin = null,
$communityDao->setMembergroupId($memberGroup->getKey());
$this->save($communityDao);

if($user != NULL)
if($user != null)
{
$groupModel->addUser($adminGroup, $user);
$groupModel->addUser($memberGroup, $user);
Expand All @@ -190,7 +190,7 @@ function createCommunity($name, $description, $privacy, $user, $canJoin = null,
$folderpolicygroupModel->createPolicy($moderatorsGroup, $folderPublic, MIDAS_POLICY_WRITE);
$folderpolicygroupModel->createPolicy($memberGroup, $folderPublic, MIDAS_POLICY_READ);
$folderpolicygroupModel->createPolicy($anonymousGroup, $folderPublic, MIDAS_POLICY_READ);
if($user != NULL)
if($user != null)
{
$feedpolicygroupModel->createPolicy($anonymousGroup, $feed, MIDAS_POLICY_READ);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function isDICOMServerWorking()
}
$ret['Reception Directory Writable'] = array(is_writable($receptionDir));
$peer_aes = $modulesConfig['dicomserver']->peer_aes;
if (!empty($peer_aes) && strpos($peer_aes, '(') !== FALSE && strpos($peer_aes, ')') !== FALSE)
if (!empty($peer_aes) && strpos($peer_aes, '(') !== false && strpos($peer_aes, ')') !== false)
{
$ret['Peer AE List Not Empty'] = array(true, "At least one peer AE is given");
}
Expand Down
6 changes: 3 additions & 3 deletions modules/oai/controllers/IndexController.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,12 @@ function indexAction()
{
if(in_array('gzip', $compression) && ini_get('output_buffering'))
{
//$compress = TRUE;
$compress = FALSE;
//$compress = true;
$compress = false;
}
else
{
$compress = FALSE;
$compress = false;
}
}

Expand Down

0 comments on commit fee0cb9

Please sign in to comment.