@@ -220,7 +220,7 @@ |
||
220 | 220 | * @param mixed $context It optionally contains an array of every variable |
221 | 221 | * that existed in the scope the error was triggered in. |
222 | 222 | * |
223 | - * @return bool |
|
223 | + * @return boolean|null |
|
224 | 224 | */ |
225 | 225 | function pmf_error_handler($level, $message, $filename, $line, $context) |
226 | 226 | { |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | // We always need a valid session! |
152 | 152 | // |
153 | 153 | ini_set('session.use_only_cookies', 1); // Avoid any PHP version to move sessions on URLs |
154 | -ini_set('session.auto_start', 0); // Prevent error to use session_start() if it's active in php.ini |
|
154 | +ini_set('session.auto_start', 0); // Prevent error to use session_start() if it's active in php.ini |
|
155 | 155 | ini_set('session.use_trans_sid', 0); |
156 | 156 | ini_set('url_rewriter.tags', ''); |
157 | 157 | |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | $tmp = dirname(__DIR__).DIRECTORY_SEPARATOR.$confAttachmentsPath; |
185 | 185 | |
186 | 186 | // Check that nobody is traversing |
187 | - if (0 === strpos((string) $tmp, dirname(__DIR__))) { |
|
187 | + if (0 === strpos((string)$tmp, dirname(__DIR__))) { |
|
188 | 188 | define('PMF_ATTACHMENTS_DIR', $tmp); |
189 | 189 | } else { |
190 | 190 | define('PMF_ATTACHMENTS_DIR', false); |
@@ -108,7 +108,7 @@ |
||
108 | 108 | * @param PMF_Configuration $config |
109 | 109 | * @param integer $recordId ID of the record |
110 | 110 | * |
111 | - * @return array |
|
111 | + * @return integer|null |
|
112 | 112 | */ |
113 | 113 | public static function fetchByRecordId(PMF_Configuration $config, $recordId) |
114 | 114 | { |
@@ -51,9 +51,9 @@ |
||
51 | 51 | protected $aes; |
52 | 52 | |
53 | 53 | /** |
54 | - * @param $filepath |
|
55 | - * @param $mode |
|
56 | - * @param $key |
|
54 | + * @param string $filepath |
|
55 | + * @param string $mode |
|
56 | + * @param string $key |
|
57 | 57 | * |
58 | 58 | * @return PMF_Attachment_Filesystem_File_Encrypted |
59 | 59 | */ |
@@ -89,7 +89,7 @@ |
||
89 | 89 | } |
90 | 90 | |
91 | 91 | /** |
92 | - * @param $dir |
|
92 | + * @param boolean $dir |
|
93 | 93 | * @return array |
94 | 94 | */ |
95 | 95 | protected function getOldFileList($dir) |
@@ -159,8 +159,8 @@ discard block |
||
159 | 159 | case self::MIGRATION_TYPE1: |
160 | 160 | |
161 | 161 | PMF_Attachment_Factory::init(PMF_Attachment::STORAGE_TYPE_FILESYSTEM, |
162 | - '', |
|
163 | - false); |
|
162 | + '', |
|
163 | + false); |
|
164 | 164 | $this->migrateFromOldFormatToFs(); |
165 | 165 | // FIXME should attachment settings update be triggered here? |
166 | 166 | |
@@ -172,8 +172,8 @@ discard block |
||
172 | 172 | */ |
173 | 173 | if (isset($options['defaultKey']) && !empty($options['defaultKey'])) { |
174 | 174 | PMF_Attachment_Factory::init(PMF_Attachment::STORAGE_TYPE_FILESYSTEM, |
175 | - $options['defaultKey'], |
|
176 | - true); |
|
175 | + $options['defaultKey'], |
|
176 | + true); |
|
177 | 177 | $this->migrateFromOldFormatToFs(); |
178 | 178 | } else { |
179 | 179 | $this->error[] = 'Default key required to be set for this option'; |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | * |
95 | 95 | * @param string $prefix SQL table prefix |
96 | 96 | * |
97 | - * @return bool |
|
97 | + * @return boolean|null |
|
98 | 98 | */ |
99 | 99 | public function createClientTables($prefix) |
100 | 100 | { |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | * @param string $dest Destination folder |
193 | 193 | * @param string $templateDir Template folder |
194 | 194 | * |
195 | - * @return bool |
|
195 | + * @return boolean|null |
|
196 | 196 | */ |
197 | 197 | public function copyTemplateFolder($dest, $templateDir = 'default') |
198 | 198 | { |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | /** |
82 | 82 | * Checks basic folders and creates them if necessary |
83 | 83 | * |
84 | - * @param array $dirs |
|
84 | + * @param string[] $dirs |
|
85 | 85 | * |
86 | 86 | * @return array |
87 | 87 | */ |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | * @param string $name Name of the new folder |
163 | 163 | * @param string $path Path to the new folder |
164 | 164 | * |
165 | - * @return bool |
|
165 | + * @return boolean|null |
|
166 | 166 | */ |
167 | 167 | public function createFolder($name, $path) |
168 | 168 | { |
@@ -353,7 +353,7 @@ discard block |
||
353 | 353 | /** |
354 | 354 | * Returns the HTTP GET parameters |
355 | 355 | * |
356 | - * @return array |
|
356 | + * @return string |
|
357 | 357 | */ |
358 | 358 | protected function getHttpGetParameters() |
359 | 359 | { |
@@ -747,7 +747,7 @@ discard block |
||
747 | 747 | * @param string $text Text |
748 | 748 | * @param bool $active Add CSS class named "active"? |
749 | 749 | * |
750 | - * @return string |
|
750 | + * @return integer |
|
751 | 751 | */ |
752 | 752 | public static function renderNavigationLink($url, $text, $active = false) |
753 | 753 | { |
@@ -476,7 +476,7 @@ |
||
476 | 476 | // being requested, as obtained from the original URI given by the user or referring resource |
477 | 477 | |
478 | 478 | // Remove any ref to standard ports 80 and 443. |
479 | - $pattern[0] = '/:80$/'; // HTTP: port 80 |
|
479 | + $pattern[0] = '/:80$/'; // HTTP: port 80 |
|
480 | 480 | $pattern[1] = '/:443$/'; // HTTPS: port 443 |
481 | 481 | $sysUri = $this->getSystemScheme().preg_replace($pattern, '', $_SERVER['HTTP_HOST']); |
482 | 482 |
@@ -124,7 +124,7 @@ |
||
124 | 124 | /** |
125 | 125 | * Add the matching columns into the columns for the resultset |
126 | 126 | * |
127 | - * @return PMF_Search_Database |
|
127 | + * @return string |
|
128 | 128 | */ |
129 | 129 | public function getMatchingColumnsAsResult() |
130 | 130 | { |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | /** |
103 | 103 | * Returns all available first letters |
104 | 104 | * |
105 | - * @return array |
|
105 | + * @return string |
|
106 | 106 | * @since 2007-03-30 |
107 | 107 | * @author Thorsten Rinne <[email protected]> |
108 | 108 | */ |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | * Returns all records from the current first letter |
209 | 209 | * |
210 | 210 | * @param string $letter Letter |
211 | - * @return array |
|
211 | + * @return string |
|
212 | 212 | * @since 2007-03-30 |
213 | 213 | * @author Thorsten Rinne <[email protected]> |
214 | 214 | */ |
@@ -198,7 +198,7 @@ |
||
198 | 198 | $this->_config->getLanguage()->getLanguage() |
199 | 199 | ); |
200 | 200 | $oLink = new PMF_Link($url, $this->_config); |
201 | - $oLink->text = (string) $letters; |
|
201 | + $oLink->text = (string)$letters; |
|
202 | 202 | $writeLetters .= '<li>'.$oLink->toHtmlAnchor().'</li>'; |
203 | 203 | } |
204 | 204 | } |