Completed
Pull Request — master (#69)
by Gino
03:22
created
class/files/language/LanguageAdmin.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -253,7 +253,7 @@
 block discarded – undo
253 253
     *  @param null
254 254
     */
255 255
     /**
256
-     * @return bool|string
256
+     * @return null|string
257 257
      */
258 258
     public function render()
259 259
     {
Please login to merge, or discard this patch.
class/files/language/LanguageMailTpl.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
     /**
61 61
      * @public function write
62 62
      * @param $module
63
-	 * @param $filename
63
+	 * @param string $filename
64 64
 	 *
65 65
      * @param $module
66 66
      */
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
     /**
78 78
      * @param $filename
79 79
      *
80
-     * @return bool|string
80
+     * @return null|string
81 81
      */
82 82
     public function render()
83 83
     {
Please login to merge, or discard this patch.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -60,14 +60,14 @@  discard block
 block discarded – undo
60 60
     /**
61 61
      * @public function write
62 62
      * @param $module
63
-	 * @param $filename
64
-	 *
63
+     * @param $filename
64
+     *
65 65
      * @param $module
66 66
      */
67 67
     public function write($module, $filename)
68 68
     {
69 69
         $this->setModule($module);
70
-		$this->setFileName($filename);
70
+        $this->setFileName($filename);
71 71
     }
72 72
 
73 73
     /*
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
     public function render()
83 83
     {
84 84
         $module = $this->getModule();
85
-		$filename = $this->getFileName();
85
+        $filename = $this->getFileName();
86 86
         $moduleDirname = $module->getVar('mod_dirname');
87 87
         $content = <<<EOT
88 88
 // ---------- Templates Mail Content Dummy ---------- //
Please login to merge, or discard this patch.
class/files/language/LanguageModinfo.php 1 patch
Doc Comments   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      * @param $module
69 69
      * @param $table
70 70
      * @param $tables
71
-     * @param $filename
71
+     * @param string $filename
72 72
      */
73 73
     public function write($module, $table, $tables, $filename)
74 74
     {
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
     *  @param string $module
85 85
     */
86 86
     /**
87
-     * @param $language
87
+     * @param string $language
88 88
      * @param $module
89 89
      *
90 90
      * @return string
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
     *  @param array $table
105 105
     */
106 106
     /**
107
-     * @param $language
107
+     * @param string $language
108 108
      * @param $table
109 109
      *
110 110
      * @return string
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
     *  @param string $language
137 137
     */
138 138
     /**
139
-     * @param $language
139
+     * @param string $language
140 140
      *
141 141
      * @return string
142 142
      */
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
     *  @param array $tables
156 156
     */
157 157
     /**
158
-     * @param $language
158
+     * @param string $language
159 159
      * @param $tables
160 160
      *
161 161
      * @return string
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
     *  @param array $tables
187 187
     */
188 188
     /**
189
-     * @param $language
189
+     * @param string $language
190 190
      * @param $tables
191 191
      *
192 192
      * @return string
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
     *  @param string $language
230 230
     */
231 231
     /**
232
-     * @param $language
232
+     * @param string $language
233 233
      *
234 234
      * @return string
235 235
      */
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
     *  @param string $table
249 249
     */
250 250
     /**
251
-     * @param $language
251
+     * @param string $language
252 252
      * @param $table
253 253
      *
254 254
      * @return string
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
     *  @param mixed $table
311 311
     */
312 312
     /**
313
-     * @param $language
313
+     * @param string $language
314 314
      *
315 315
      * @return string
316 316
      */
@@ -364,7 +364,7 @@  discard block
 block discarded – undo
364 364
     *  @param string $language
365 365
     */
366 366
     /**
367
-     * @param $language
367
+     * @param string $language
368 368
      *
369 369
      * @return string
370 370
      */
@@ -398,7 +398,7 @@  discard block
 block discarded – undo
398 398
     *  @param null
399 399
     */
400 400
     /**
401
-     * @return bool|string
401
+     * @return null|string
402 402
      */
403 403
     public function render()
404 404
     {
Please login to merge, or discard this patch.
class/files/TDMCreateArchitecture.php 2 patches
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -110,13 +110,13 @@  discard block
 block discarded – undo
110 110
             // Creation of "blocks" folder and index.html file
111 111
             $this->makeDirAndCopyFile('blocks', $indexFile, 'index.html');
112 112
         }
113
-		$copyFiles = array('class' => $indexFile, 'include' => $indexFile, 'language' => $indexFile, 'assets' => $indexFile, 'assets/css' => $indexFile, 
114
-						'assets/icons' => $indexFile, 'assets/icons/16' => $indexFile, 'assets/icons/32' => $indexFile, 'docs' => $indexFile, 
115
-						'assets/images' => $indexFile, 'assets/js' => $indexFile, 'language/english' => $indexFile, 'language/english/help' => $indexFile);
116
-		foreach($copyFiles as $k => $v){
117
-			// Creation of folders and index.html file
118
-			$this->makeDirAndCopyFile( $k, $v, 'index.html');
119
-		}
113
+        $copyFiles = array('class' => $indexFile, 'include' => $indexFile, 'language' => $indexFile, 'assets' => $indexFile, 'assets/css' => $indexFile, 
114
+                        'assets/icons' => $indexFile, 'assets/icons/16' => $indexFile, 'assets/icons/32' => $indexFile, 'docs' => $indexFile, 
115
+                        'assets/images' => $indexFile, 'assets/js' => $indexFile, 'language/english' => $indexFile, 'language/english/help' => $indexFile);
116
+        foreach($copyFiles as $k => $v){
117
+            // Creation of folders and index.html file
118
+            $this->makeDirAndCopyFile( $k, $v, 'index.html');
119
+        }
120 120
         //Copy the logo of the module
121 121
         $modImage = str_replace(' ', '', strtolower($module->getVar('mod_image')));
122 122
         $this->copyFile('assets/images', TDMC_UPLOAD_IMGMOD_PATH.'/'.$modImage, $modImage);
@@ -137,11 +137,11 @@  discard block
 block discarded – undo
137 137
         // Creation of 'module_author_logo.gif' file
138 138
         $this->copyFile('assets/images', $copyNewFile, $stlModuleAuthor.'_logo.gif');
139 139
         $docs = array('/credits.txt' => 'credits.txt', '/install.txt' => 'install.txt', 
140
-					'/lang_diff.txt' => 'lang_diff.txt', '/license.txt' => 'license.txt', '/readme.txt' => 'readme.txt');
141
-		foreach($docs as $k => $v){
142
-			// Creation of folder docs and .txt files
143
-			$this->makeDirAndCopyFile('docs', TDMC_DOCS_PATH . $k, $v);
144
-		}        
140
+                    '/lang_diff.txt' => 'lang_diff.txt', '/license.txt' => 'license.txt', '/readme.txt' => 'readme.txt');
141
+        foreach($docs as $k => $v){
142
+            // Creation of folder docs and .txt files
143
+            $this->makeDirAndCopyFile('docs', TDMC_DOCS_PATH . $k, $v);
144
+        }        
145 145
         // Creation of 'default english' folder
146 146
         if ($language != 'english') {
147 147
             // Creation of "language/local_language" folder and index.html file
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -113,9 +113,9 @@  discard block
 block discarded – undo
113 113
 		$copyFiles = array('class' => $indexFile, 'include' => $indexFile, 'language' => $indexFile, 'assets' => $indexFile, 'assets/css' => $indexFile, 
114 114
 						'assets/icons' => $indexFile, 'assets/icons/16' => $indexFile, 'assets/icons/32' => $indexFile, 'docs' => $indexFile, 
115 115
 						'assets/images' => $indexFile, 'assets/js' => $indexFile, 'language/english' => $indexFile, 'language/english/help' => $indexFile);
116
-		foreach($copyFiles as $k => $v){
116
+		foreach ($copyFiles as $k => $v) {
117 117
 			// Creation of folders and index.html file
118
-			$this->makeDirAndCopyFile( $k, $v, 'index.html');
118
+			$this->makeDirAndCopyFile($k, $v, 'index.html');
119 119
 		}
120 120
         //Copy the logo of the module
121 121
         $modImage = str_replace(' ', '', strtolower($module->getVar('mod_image')));
@@ -138,9 +138,9 @@  discard block
 block discarded – undo
138 138
         $this->copyFile('assets/images', $copyNewFile, $stlModuleAuthor.'_logo.gif');
139 139
         $docs = array('/credits.txt' => 'credits.txt', '/install.txt' => 'install.txt', 
140 140
 					'/lang_diff.txt' => 'lang_diff.txt', '/license.txt' => 'license.txt', '/readme.txt' => 'readme.txt');
141
-		foreach($docs as $k => $v){
141
+		foreach ($docs as $k => $v) {
142 142
 			// Creation of folder docs and .txt files
143
-			$this->makeDirAndCopyFile('docs', TDMC_DOCS_PATH . $k, $v);
143
+			$this->makeDirAndCopyFile('docs', TDMC_DOCS_PATH.$k, $v);
144 144
 		}        
145 145
         // Creation of 'default english' folder
146 146
         if ($language != 'english') {
Please login to merge, or discard this patch.
class/files/classes/ClassFiles.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -544,7 +544,7 @@
 block discarded – undo
544 544
         return $ret;
545 545
     }
546 546
 	
547
-	/*
547
+    /*
548 548
      * @public function getRemoveCarriageReturn
549 549
      * @param $string     
550 550
      *
Please login to merge, or discard this patch.
class/files/language/LanguageDefines.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
  */
28 28
 class LanguageDefines
29 29
 {    		
30
-	/*
30
+    /*
31 31
     * @var mixed
32 32
     */
33 33
     protected $defines;
@@ -40,9 +40,9 @@  discard block
 block discarded – undo
40 40
      *
41 41
      */
42 42
     public function __construct()
43
-	{
44
-		$this->phpcode = TDMCreatePhpCode::getInstance();
45
-	}
43
+    {
44
+        $this->phpcode = TDMCreatePhpCode::getInstance();
45
+    }
46 46
 
47 47
     /*
48 48
     *  @static function &getInstance
Please login to merge, or discard this patch.
class/files/sql/SqlFile.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -544,7 +544,7 @@
 block discarded – undo
544 544
         return $ret;
545 545
     }
546 546
 	
547
-	/*
547
+    /*
548 548
      * @public function getRemoveCarriageReturn
549 549
      * @param $string     
550 550
      *
Please login to merge, or discard this patch.
class/files/templates/admin/TemplatesAdminAbout.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -544,7 +544,7 @@
 block discarded – undo
544 544
         return $ret;
545 545
     }
546 546
 	
547
-	/*
547
+    /*
548 548
      * @public function getRemoveCarriageReturn
549 549
      * @param $string     
550 550
      *
Please login to merge, or discard this patch.
class/files/templates/admin/TemplatesAdminFooter.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -544,7 +544,7 @@
 block discarded – undo
544 544
         return $ret;
545 545
     }
546 546
 	
547
-	/*
547
+    /*
548 548
      * @public function getRemoveCarriageReturn
549 549
      * @param $string     
550 550
      *
Please login to merge, or discard this patch.