@@ -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 | |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | |
| 47 | 47 | if (is_array($dpfTSconfig['settings.'])) { |
| 48 | 48 | |
| 49 | - \TYPO3\CMS\Core\Utility\ArrayUtility::mergeRecursiveWithOverrule($dpfTSconfig['settings.'], $this->conf, true, false); |
|
| 49 | + \TYPO3\CMS\Core\Utility\ArrayUtility::mergeRecursiveWithOverrule($dpfTSconfig['settings.'], $this->conf, TRUE, FALSE); |
|
| 50 | 50 | $this->conf = $dpfTSconfig['settings.']; |
| 51 | 51 | |
| 52 | 52 | } |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | // Load current document. |
| 55 | 55 | $this->loadDocument(); |
| 56 | 56 | |
| 57 | - if ($this->doc === null || empty($this->conf['fileGrpDownload'])) { |
|
| 57 | + if ($this->doc === NULL || empty($this->conf['fileGrpDownload'])) { |
|
| 58 | 58 | |
| 59 | 59 | // Quit without doing anything if required variables are not set. |
| 60 | 60 | return $content; |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | 'useCacheHash' => 0, |
| 88 | 88 | 'parameter' => $this->conf['apiPid'] . ' - piwik_download', |
| 89 | 89 | 'additionalParams' => '&tx_dpf[qid]=' . $this->doc->recordId . '&tx_dpf[action]=attachment' . '&tx_dpf[attachment]=' . $file['ID'], |
| 90 | - 'forceAbsoluteUrl' => true, |
|
| 90 | + 'forceAbsoluteUrl' => TRUE, |
|
| 91 | 91 | ); |
| 92 | 92 | |
| 93 | 93 | $title = $file['LABEL'] ? $file['LABEL'] : $file['ID']; |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | |
| 102 | 102 | } |
| 103 | 103 | |
| 104 | - return $this->cObj->substituteSubpart($this->template, '###DOWNLOADS###', $content, true); |
|
| 104 | + return $this->cObj->substituteSubpart($this->template, '###DOWNLOADS###', $content, TRUE); |
|
| 105 | 105 | |
| 106 | 106 | } |
| 107 | 107 | |
@@ -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 | |