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

Commit fee0cb9

Browse files
author
Jamie Snape
committed
Consistently use lowercase true, false, null
1 parent 4a6b62c commit fee0cb9

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

core/controllers/ImportController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ private function _recursiveParseDirectory($path, $currentdir)
251251
// Upload the bitstream
252252
$assetstoreDao = $this->Assetstore->load($this->assetstoreid);
253253
$this->Component->Upload->uploadBitstream($bitstreamDao,
254-
$assetstoreDao, TRUE);
254+
$assetstoreDao, true);
255255

256256
$this->ItemRevision->addBitstream($itemRevisionDao, $bitstreamDao);
257257
} // end new revision

core/controllers/components/ApidocsComponent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public function getWebApiDocs($resource, $module = '')
115115
}
116116
if(!empty($path))
117117
{
118-
$tokens = preg_split('@/@', $path, NULL, PREG_SPLIT_NO_EMPTY);
118+
$tokens = preg_split('@/@', $path, null, PREG_SPLIT_NO_EMPTY);
119119
$count = count($tokens);
120120
if(empty($module) & !empty($tokens)) // core
121121
{

core/controllers/components/MIDAS2MigrationComponent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ function migrate($userid)
536536
{
537537
$privacy = MIDAS_COMMUNITY_PUBLIC;
538538
}
539-
$communityDao = $Community->createCommunity($name, $short_description, $privacy, NULL); // no user
539+
$communityDao = $Community->createCommunity($name, $short_description, $privacy, null); // no user
540540

541541
// Add the users to the community
542542
// MIDAS2 was not using the group heavily so we ignore them. This would have to be a manual step

core/controllers/components/UtilityComponent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public function getAllModules()
101101
public static function extractPathParams()
102102
{
103103
$request = Zend_Controller_Front::getInstance()->getRequest();
104-
$allTokens = preg_split('@/@', $request->getPathInfo(), NULL, PREG_SPLIT_NO_EMPTY);
104+
$allTokens = preg_split('@/@', $request->getPathInfo(), null, PREG_SPLIT_NO_EMPTY);
105105

106106
$tokens = array();
107107
$i = 0;

core/models/base/CommunityModelBase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ function createCommunity($name, $description, $privacy, $user, $canJoin = null,
163163
$communityDao->setMembergroupId($memberGroup->getKey());
164164
$this->save($communityDao);
165165

166-
if($user != NULL)
166+
if($user != null)
167167
{
168168
$groupModel->addUser($adminGroup, $user);
169169
$groupModel->addUser($memberGroup, $user);
@@ -190,7 +190,7 @@ function createCommunity($name, $description, $privacy, $user, $canJoin = null,
190190
$folderpolicygroupModel->createPolicy($moderatorsGroup, $folderPublic, MIDAS_POLICY_WRITE);
191191
$folderpolicygroupModel->createPolicy($memberGroup, $folderPublic, MIDAS_POLICY_READ);
192192
$folderpolicygroupModel->createPolicy($anonymousGroup, $folderPublic, MIDAS_POLICY_READ);
193-
if($user != NULL)
193+
if($user != null)
194194
{
195195
$feedpolicygroupModel->createPolicy($anonymousGroup, $feed, MIDAS_POLICY_READ);
196196
}

modules/dicomserver/controllers/components/ServerComponent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function isDICOMServerWorking()
4040
}
4141
$ret['Reception Directory Writable'] = array(is_writable($receptionDir));
4242
$peer_aes = $modulesConfig['dicomserver']->peer_aes;
43-
if (!empty($peer_aes) && strpos($peer_aes, '(') !== FALSE && strpos($peer_aes, ')') !== FALSE)
43+
if (!empty($peer_aes) && strpos($peer_aes, '(') !== false && strpos($peer_aes, ')') !== false)
4444
{
4545
$ret['Peer AE List Not Empty'] = array(true, "At least one peer AE is given");
4646
}

modules/oai/controllers/IndexController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,12 @@ function indexAction()
161161
{
162162
if(in_array('gzip', $compression) && ini_get('output_buffering'))
163163
{
164-
//$compress = TRUE;
165-
$compress = FALSE;
164+
//$compress = true;
165+
$compress = false;
166166
}
167167
else
168168
{
169-
$compress = FALSE;
169+
$compress = false;
170170
}
171171
}
172172

0 commit comments

Comments
 (0)