@@ -121,8 +121,8 @@ discard block |
||
| 121 | 121 | * @param $subdir |
| 122 | 122 | * @param $fileName |
| 123 | 123 | * @param $content |
| 124 | - * @param $created |
|
| 125 | - * @param $notCreated |
|
| 124 | + * @param string $created |
|
| 125 | + * @param string $notCreated |
|
| 126 | 126 | * @param $mode |
| 127 | 127 | */ |
| 128 | 128 | public function create($moduleDirname, $subdir = null, $fileName = null, $content = '', $created = null, $notCreated = null, $mode = 'w+') |
@@ -184,7 +184,7 @@ discard block |
||
| 184 | 184 | * @param string $subdir |
| 185 | 185 | */ |
| 186 | 186 | /** |
| 187 | - * @param $subdir |
|
| 187 | + * @param string $subdir |
|
| 188 | 188 | */ |
| 189 | 189 | private function setSubDir($subdir) |
| 190 | 190 | { |
@@ -229,7 +229,7 @@ discard block |
||
| 229 | 229 | * @param string $content |
| 230 | 230 | */ |
| 231 | 231 | /** |
| 232 | - * @param $content |
|
| 232 | + * @param string $content |
|
| 233 | 233 | */ |
| 234 | 234 | private function setContent($content) |
| 235 | 235 | { |
@@ -316,7 +316,7 @@ discard block |
||
| 316 | 316 | * @param string $mode |
| 317 | 317 | */ |
| 318 | 318 | /** |
| 319 | - * @param $mode |
|
| 319 | + * @param string $mode |
|
| 320 | 320 | */ |
| 321 | 321 | private function setMode($mode) |
| 322 | 322 | { |
@@ -431,7 +431,7 @@ discard block |
||
| 431 | 431 | * @param $string |
| 432 | 432 | */ |
| 433 | 433 | /** |
| 434 | - * @param $string |
|
| 434 | + * @param string $string |
|
| 435 | 435 | * |
| 436 | 436 | * @return string |
| 437 | 437 | */ |
@@ -445,7 +445,7 @@ discard block |
||
| 445 | 445 | * @param $string |
| 446 | 446 | */ |
| 447 | 447 | /** |
| 448 | - * @param $string |
|
| 448 | + * @param string $string |
|
| 449 | 449 | * |
| 450 | 450 | * @return string |
| 451 | 451 | */ |
@@ -524,7 +524,7 @@ discard block |
||
| 524 | 524 | /** |
| 525 | 525 | * @private function getHeaderComment |
| 526 | 526 | * |
| 527 | - * @param $comment |
|
| 527 | + * @param string $comment |
|
| 528 | 528 | * |
| 529 | 529 | * @return string |
| 530 | 530 | */ |
@@ -260,7 +260,7 @@ discard block |
||
| 260 | 260 | if (strrpos($path, '\\')) { |
| 261 | 261 | $str = strrpos($path, '\\'); |
| 262 | 262 | if ($str !== false) { |
| 263 | - return substr($path, $str + 1, strlen($path)); |
|
| 263 | + return substr($path, $str+1, strlen($path)); |
|
| 264 | 264 | } else { |
| 265 | 265 | return substr($path, $str, strlen($path)); |
| 266 | 266 | } |
@@ -388,7 +388,7 @@ discard block |
||
| 388 | 388 | if (strpos($string, '_')) { |
| 389 | 389 | $str = strpos($string, '_'); |
| 390 | 390 | if ($str !== false) { |
| 391 | - $ret = substr($string, $str + 1, strlen($string)); |
|
| 391 | + $ret = substr($string, $str+1, strlen($string)); |
|
| 392 | 392 | |
| 393 | 393 | return $ret; |
| 394 | 394 | } |
@@ -587,7 +587,7 @@ discard block |
||
| 587 | 587 | $ret .= "*/\n"; |
| 588 | 588 | $copyright = array($name => 'module for xoops', '' => '', '@copyright ' => ' module for xoops', '@license ' => " {$license}", '@package ' => " {$dirname}", |
| 589 | 589 | '@since ' => " {$since}", '@min_xoops ' => " {$minXoops}", '@author ' => " {$author} - Email:<{$authorMail}> - Website:<{$authorWebsiteUrl}>", |
| 590 | - '@version ' => " \$Id: {$version} {$fileName} {$subversion} {$date}Z {$credits} \$", ); |
|
| 590 | + '@version ' => " \$Id: {$version} {$fileName} {$subversion} {$date}Z {$credits} \$",); |
|
| 591 | 591 | $ret .= TDMCreatePhpCode::getInstance()->getPhpCodeCommentMultiLine($copyright); |
| 592 | 592 | |
| 593 | 593 | return $ret; |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | $language = ($xLanguage != 'english') ? $xLanguage : 'english'; |
| 114 | 114 | $copyFiles = array('class' => $indexFile, 'include' => $indexFile, 'language' => $indexFile, 'assets' => $indexFile, 'assets/css' => $indexFile, |
| 115 | 115 | 'assets/icons' => $indexFile, 'assets/icons/16' => $indexFile, 'assets/icons/32' => $indexFile, 'docs' => $indexFile, |
| 116 | - 'assets/images' => $indexFile, 'assets/js' => $indexFile, 'language/'.$language => $indexFile, 'language/'.$language.'/help' => $indexFile, 'preloads' => $indexFile, ); |
|
| 116 | + 'assets/images' => $indexFile, 'assets/js' => $indexFile, 'language/'.$language => $indexFile, 'language/'.$language.'/help' => $indexFile, 'preloads' => $indexFile,); |
|
| 117 | 117 | foreach ($copyFiles as $k => $v) { |
| 118 | 118 | // Creation of folders and index.html file |
| 119 | 119 | $this->makeDirAndCopyFile($k, $v, 'index.html'); |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | // Creation of 'module_author_logo.gif' file |
| 139 | 139 | $this->copyFile('assets/images', $copyNewFile, $stlModuleAuthor.'_logo.gif'); |
| 140 | 140 | $docs = array('/credits.txt' => 'credits.txt', '/install.txt' => 'install.txt', |
| 141 | - '/lang_diff.txt' => 'lang_diff.txt', '/license.txt' => 'license.txt', '/readme.txt' => 'readme.txt', ); |
|
| 141 | + '/lang_diff.txt' => 'lang_diff.txt', '/license.txt' => 'license.txt', '/readme.txt' => 'readme.txt',); |
|
| 142 | 142 | foreach ($docs as $k => $v) { |
| 143 | 143 | // Creation of folder docs and .txt files |
| 144 | 144 | $this->makeDirAndCopyFile('docs', TDMC_DOCS_PATH.$k, $v); |