@@ -179,20 +179,20 @@ |
||
| 179 | 179 | return 'Error while fetching headers'; |
| 180 | 180 | } |
| 181 | 181 | |
| 182 | - $contentDispFlag = false; |
|
| 183 | - $contentTypeFlag = false; |
|
| 182 | + $contentDispFlag = FALSE; |
|
| 183 | + $contentTypeFlag = FALSE; |
|
| 184 | 184 | |
| 185 | 185 | foreach ($headers as $value) { |
| 186 | 186 | |
| 187 | 187 | if (FALSE !== stripos($value, 'Content-Disposition')) { |
| 188 | 188 | header($value); |
| 189 | - $contentDispFlag = true; |
|
| 189 | + $contentDispFlag = TRUE; |
|
| 190 | 190 | continue; |
| 191 | 191 | } |
| 192 | 192 | |
| 193 | 193 | if (FALSE !== stripos($value, 'Content-Type')) { |
| 194 | 194 | header($value); |
| 195 | - $contentTypeFlag = true; |
|
| 195 | + $contentTypeFlag = TRUE; |
|
| 196 | 196 | continue; |
| 197 | 197 | } |
| 198 | 198 | |
@@ -36,8 +36,8 @@ discard block |
||
| 36 | 36 | */ |
| 37 | 37 | protected $configuration = array( |
| 38 | 38 | 'itemsPerPage' => 10, |
| 39 | - 'insertAbove' => false, |
|
| 40 | - 'insertBelow' => true, |
|
| 39 | + 'insertAbove' => FALSE, |
|
| 40 | + 'insertBelow' => TRUE, |
|
| 41 | 41 | 'maximumNumberOfLinks' => 99, |
| 42 | 42 | 'addQueryStringMethod' => '', |
| 43 | 43 | 'section' => '', |
@@ -66,12 +66,12 @@ discard block |
||
| 66 | 66 | /** |
| 67 | 67 | * @var int |
| 68 | 68 | */ |
| 69 | - protected $displayRangeStart = null; |
|
| 69 | + protected $displayRangeStart = NULL; |
|
| 70 | 70 | |
| 71 | 71 | /** |
| 72 | 72 | * @var int |
| 73 | 73 | */ |
| 74 | - protected $displayRangeEnd = null; |
|
| 74 | + protected $displayRangeEnd = NULL; |
|
| 75 | 75 | |
| 76 | 76 | /** |
| 77 | 77 | * @return void |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | public function initializeAction() |
| 80 | 80 | { |
| 81 | 81 | $this->objects = $this->widgetConfiguration['objects']; |
| 82 | - ArrayUtility::mergeRecursiveWithOverrule($this->configuration, $this->widgetConfiguration['configuration'], false); |
|
| 82 | + ArrayUtility::mergeRecursiveWithOverrule($this->configuration, $this->widgetConfiguration['configuration'], FALSE); |
|
| 83 | 83 | $itemsPerPage = (int) $this->configuration['itemsPerPage']; |
| 84 | 84 | $this->numberOfPages = $itemsPerPage > 0 ? ceil($this->widgetConfiguration['total'] / $itemsPerPage) : 0; |
| 85 | 85 | $this->maximumNumberOfLinks = (int) $this->configuration['maximumNumberOfLinks']; |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | } |
| 102 | 102 | if ($this->currentPage > $this->numberOfPages) { |
| 103 | 103 | // set $modifiedObjects to NULL if the page does not exist |
| 104 | - $modifiedObjects = null; |
|
| 104 | + $modifiedObjects = NULL; |
|
| 105 | 105 | } else { |
| 106 | 106 | // modify query |
| 107 | 107 | $itemsPerPage = (int) $this->configuration['itemsPerPage']; |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | public function findAllByPid($pid) |
| 29 | 29 | { |
| 30 | 30 | $query = $this->createQuery(); |
| 31 | - $query->getQuerySettings()->setRespectStoragePage(false); |
|
| 31 | + $query->getQuerySettings()->setRespectStoragePage(FALSE); |
|
| 32 | 32 | $query->matching($query->equals('pid', $pid)); |
| 33 | 33 | return $query->execute(); |
| 34 | 34 | } |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | $query->logicalAnd( |
| 29 | 29 | $query->equals("document", $document), |
| 30 | 30 | $query->logicalNot($query->equals("status", \EWW\Dpf\Domain\Model\File::STATUS_DELETED)), |
| 31 | - $query->logicalNot($query->equals("primary_file", true)) |
|
| 31 | + $query->logicalNot($query->equals("primary_file", TRUE)) |
|
| 32 | 32 | )); |
| 33 | 33 | |
| 34 | 34 | return $query->execute(); |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | $query->matching( |
| 42 | 42 | $query->logicalAnd( |
| 43 | 43 | $query->equals("document", $document), |
| 44 | - $query->equals("primary_file", true), |
|
| 44 | + $query->equals("primary_file", TRUE), |
|
| 45 | 45 | $query->logicalNot($query->equals("status", \EWW\Dpf\Domain\Model\File::STATUS_DELETED)) |
| 46 | 46 | )); |
| 47 | 47 | |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | return $file->current(); |
| 52 | 52 | } |
| 53 | 53 | |
| 54 | - return null; |
|
| 54 | + return NULL; |
|
| 55 | 55 | |
| 56 | 56 | } |
| 57 | 57 | |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | $query = $this->createQuery(); |
| 40 | 40 | |
| 41 | 41 | $constraints = array(); |
| 42 | - $constraints[] = $query->equals('owner_id', $ownerId, false); |
|
| 42 | + $constraints[] = $query->equals('owner_id', $ownerId, FALSE); |
|
| 43 | 43 | |
| 44 | 44 | $constraints[] = $query->equals('year', $year); |
| 45 | 45 | |
@@ -87,7 +87,7 @@ |
||
| 87 | 87 | * |
| 88 | 88 | * @var boolean |
| 89 | 89 | */ |
| 90 | - protected $valid = false; |
|
| 90 | + protected $valid = FALSE; |
|
| 91 | 91 | |
| 92 | 92 | /** |
| 93 | 93 | * |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | * |
| 26 | 26 | * @var \DateTime |
| 27 | 27 | */ |
| 28 | - protected $date = null; |
|
| 28 | + protected $date = NULL; |
|
| 29 | 29 | |
| 30 | 30 | /** |
| 31 | 31 | * response |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | $baseUrl = trim($uploadDomain, "/ "); |
| 40 | 40 | |
| 41 | 41 | if (empty($baseUrl)) { |
| 42 | - $protocol = stripos($_SERVER['SERVER_PROTOCOL'], 'https') === false ? 'http://' : 'https://'; |
|
| 42 | + $protocol = stripos($_SERVER['SERVER_PROTOCOL'], 'https') === FALSE ? 'http://' : 'https://'; |
|
| 43 | 43 | $baseUrl = $protocol . $_SERVER['HTTP_HOST']; |
| 44 | 44 | } |
| 45 | 45 | |
@@ -125,12 +125,12 @@ |
||
| 125 | 125 | <language>{$dataCiteLanguage}</language> |
| 126 | 126 | <resourceType resourceTypeGeneral="Text">{$dataCiteResourceType}</resourceType> |
| 127 | 127 | </resource> |
| 128 | -XML |
|
| 128 | +xml |
|
| 129 | 129 | ); |
| 130 | 130 | |
| 131 | 131 | $dataCiteXml = new \DOMDocument('1.0', 'UTF-8'); |
| 132 | - $dataCiteXml->preserveWhiteSpace = false; |
|
| 133 | - $dataCiteXml->formatOutput = true; |
|
| 132 | + $dataCiteXml->preserveWhiteSpace = FALSE; |
|
| 133 | + $dataCiteXml->formatOutput = TRUE; |
|
| 134 | 134 | $dataCiteXml->loadXML($xml->asXML()); |
| 135 | 135 | |
| 136 | 136 | return($dataCiteXml->saveXML()); |