Completed
Push — master ( 61f3b2...32110c )
by Jean-Christophe
02:56
created
Ubiquity/orm/traits/DAORelationsTrait.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -7,6 +7,9 @@  discard block
 block discarded – undo
7 7
 
8 8
 trait DAORelationsTrait {
9 9
 	
10
+	/**
11
+	 * @param boolean|null $useCache
12
+	 */
10 13
 	private static function _affectsRelationObjects($manyToOneQueries,$oneToManyQueries,$manyToManyParsers,$objects,$included,$useCache){
11 14
 		if(\sizeof($manyToOneQueries)>0){
12 15
 			self::_affectsObjectsFromArray($manyToOneQueries, $objects,$included, function($object,$member,$manyToOneObjects,$fkField){
@@ -33,6 +36,9 @@  discard block
 block discarded – undo
33 36
 		}
34 37
 	}
35 38
 	
39
+	/**
40
+	 * @param \Closure $affectsCallback
41
+	 */
36 42
 	private static function _affectsObjectsFromArray($queries,$objects,$included,$affectsCallback,$useCache=NULL){
37 43
 		$includedNext=false;
38 44
 		foreach ($queries as $key=>$conditions){
Please login to merge, or discard this patch.
Ubiquity/utils/base/UFileSystem.php 1 patch
Doc Comments   +15 added lines patch added patch discarded remove patch
@@ -9,6 +9,9 @@  discard block
 block discarded – undo
9 9
  */
10 10
 class UFileSystem {
11 11
 
12
+	/**
13
+	 * @param string $pattern
14
+	 */
12 15
 	public static function glob_recursive($pattern, $flags=0) {
13 16
 		$files=\glob($pattern, $flags);
14 17
 		foreach ( \glob(\dirname($pattern) . '/*', GLOB_ONLYDIR | GLOB_NOSORT) as $dir ) {
@@ -31,6 +34,9 @@  discard block
 block discarded – undo
31 34
 		return false;
32 35
 	}
33 36
 
37
+	/**
38
+	 * @param string $dir
39
+	 */
34 40
 	public static function safeMkdir($dir) {
35 41
 		if (!\is_dir($dir))
36 42
 			return \mkdir($dir, 0777, true);
@@ -51,6 +57,9 @@  discard block
 block discarded – undo
51 57
 		return $path;
52 58
 	}
53 59
 	
60
+	/**
61
+	 * @param string $path
62
+	 */
54 63
 	public static function cleanFilePathname($path) {
55 64
 		if (UString::isNotNull($path)) {
56 65
 			if (DS === "/")
@@ -98,6 +107,9 @@  discard block
 block discarded – undo
98 107
 		return false;
99 108
 	}
100 109
 
110
+	/**
111
+	 * @param string $filename
112
+	 */
101 113
 	public static function lastModified($filename) {
102 114
 		return \filemtime($filename);
103 115
 	}
@@ -109,6 +121,9 @@  discard block
 block discarded – undo
109 121
 		return false;
110 122
 	}
111 123
 
124
+	/**
125
+	 * @param string $filename
126
+	 */
112 127
 	public static function save($filename,$content,$flags=LOCK_EX){
113 128
 		return \file_put_contents($filename, $content, $flags);
114 129
 	}
Please login to merge, or discard this patch.