Test Failed
Push — master ( 9a5747...2b3f17 )
by Federico
01:48
created
dist/jate/functions/requirer.php 1 patch
Doc Comments   +11 added lines patch added patch discarded remove patch
@@ -1,4 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2
+  /**
3
+   * @param string $_path
4
+   */
2 5
   function requireComponent( $_path, $_local = true ) {
3 6
     $path = getJFolder($_path, $_local, debug_backtrace());
4 7
     if(file_exists($path) && isPhp($path))
@@ -26,6 +29,10 @@  discard block
 block discarded – undo
26 29
     $info = pathinfo($_file);
27 30
     return ($info["extension"] == "php") || ($info["extension"] == "PHP");
28 31
   }
32
+
33
+  /**
34
+   * @param string $_path
35
+   */
29 36
   function requireModules( $_path, $_local = true ) {
30 37
     $path = getJFolder($_path, $_local, debug_backtrace());
31 38
     $subFolders = subFolderDir($path);
@@ -36,6 +43,10 @@  discard block
 block discarded – undo
36 43
     $path = getJFolder($_path, $_local, debug_backtrace());
37 44
     require_once( $path );
38 45
   }
46
+
47
+  /**
48
+   * @param boolean $_local
49
+   */
39 50
   function getJFolder( $_path, $_local, $_stack ) {
40 51
     if($_local) {
41 52
       $stackInfo = $_stack;
Please login to merge, or discard this patch.