@@ -541,7 +541,7 @@ discard block |
||
541 | 541 | * @param string $sourceDir The path to the source directory. |
542 | 542 | * @param string $fileList The HTML list of files generated (pass by reference). |
543 | 543 | * @param int $fileCount The current file count (used in recursive calls). |
544 | - * @param array $excludeFiles An array of file names to exclude from the list rendered. |
|
544 | + * @param string[] $excludeFiles An array of file names to exclude from the list rendered. |
|
545 | 545 | * |
546 | 546 | * @return int The current filecount for the directory. |
547 | 547 | * |
@@ -578,7 +578,7 @@ discard block |
||
578 | 578 | * Recursively deletes the contents of the directory indicated (the directory itself is not deleted). |
579 | 579 | * |
580 | 580 | * @param string $sourceDir The path to the source directory. |
581 | - * @param array $excludeFiles An array of file names to exclude from the deletion. |
|
581 | + * @param string[] $excludeFiles An array of file names to exclude from the deletion. |
|
582 | 582 | * |
583 | 583 | * @throws \Alpha\Exception\AlphaException |
584 | 584 | * |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | if (isset($codeTypeTag[0])) { |
76 | 76 | $start = mb_strpos($codeTypeTag[0], '['); |
77 | 77 | $end = mb_strpos($codeTypeTag[0], ']'); |
78 | - $language = mb_substr($codeTypeTag[0], $start + 1, $end - ($start + 1)); |
|
78 | + $language = mb_substr($codeTypeTag[0], $start+1, $end-($start+1)); |
|
79 | 79 | } else { |
80 | 80 | // will use php as a default language type when none is provided |
81 | 81 | $language = 'php'; |
@@ -106,11 +106,11 @@ discard block |
||
106 | 106 | { |
107 | 107 | $config = ConfigProvider::getInstance(); |
108 | 108 | |
109 | - $whole_match = $matches[1]; |
|
110 | - $link_text = $this->runSpanGamut($matches[2]); |
|
111 | - $url = $matches[3] == '' ? $matches[4] : $matches[3]; |
|
112 | - $title =& $matches[7]; |
|
113 | - $attr = $this->doExtraAttributes("a", $dummy =& $matches[8]); |
|
109 | + $whole_match = $matches[1]; |
|
110 | + $link_text = $this->runSpanGamut($matches[2]); |
|
111 | + $url = $matches[3] == '' ? $matches[4] : $matches[3]; |
|
112 | + $title = & $matches[7]; |
|
113 | + $attr = $this->doExtraAttributes("a", $dummy = & $matches[8]); |
|
114 | 114 | |
115 | 115 | $external = false; |
116 | 116 | |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | $result = "<a href=\"$url\""; |
133 | 133 | if (isset($title)) { |
134 | 134 | $title = $this->encodeAttribute($title); |
135 | - $result .= " title=\"$title\""; |
|
135 | + $result .= " title=\"$title\""; |
|
136 | 136 | } |
137 | 137 | if ($external) { |
138 | 138 | $result .= " target=\"$url\""; |
@@ -214,6 +214,6 @@ discard block |
||
214 | 214 | $text .= "</tbody>\n"; |
215 | 215 | $text .= "</table>"; |
216 | 216 | |
217 | - return $this->hashBlock($text) . "\n"; |
|
217 | + return $this->hashBlock($text)."\n"; |
|
218 | 218 | } |
219 | 219 | } |
@@ -379,7 +379,7 @@ |
||
379 | 379 | */ |
380 | 380 | public static function isBase64($value) |
381 | 381 | { |
382 | - return (bool) preg_match('/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/', $value); |
|
382 | + return (bool)preg_match('/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/', $value); |
|
383 | 383 | } |
384 | 384 | |
385 | 385 | /** |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | 'state' => 'Account state', |
115 | 115 | 'URL' => 'Your site address', |
116 | 116 | 'rights' => 'Rights Group Membership', |
117 | - 'actions' => 'Actions', ); |
|
117 | + 'actions' => 'Actions',); |
|
118 | 118 | |
119 | 119 | /** |
120 | 120 | * The name of the database table for the class. |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | $this->password->isPassword(true); |
179 | 179 | $this->state = new Enum(array( |
180 | 180 | 'Active', |
181 | - 'Disabled', )); |
|
181 | + 'Disabled',)); |
|
182 | 182 | $this->state->setValue('Active'); |
183 | 183 | $this->URL = new SmallText(); |
184 | 184 | $this->URL->setRule(Validator::OPTIONAL_HTTP_URL); |