Completed
Push — master ( b6018a...af2f64 )
by Andreas
03:13
created
api/midgard/connection.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -37,6 +37,9 @@
 block discarded – undo
37 37
         //??
38 38
     }
39 39
 
40
+    /**
41
+     * @return integer
42
+     */
40 43
     public static function get_instance()
41 44
     {
42 45
         if (self::$instance === null)
Please login to merge, or discard this patch.
api/midgard/object/class.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -106,6 +106,9 @@
 block discarded – undo
106 106
         return true;
107 107
     }
108 108
 
109
+    /**
110
+     * @param string $guid
111
+     */
109 112
     public static function get_object_by_guid($guid)
110 113
     {
111 114
         if (!mgd_is_guid($guid))
Please login to merge, or discard this patch.
api/midgard/query/builder.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -22,6 +22,9 @@
 block discarded – undo
22 22
         }
23 23
     }
24 24
 
25
+    /**
26
+     * @param string $operator
27
+     */
25 28
     public function add_constraint($name, $operator, $value)
26 29
     {
27 30
         try
Please login to merge, or discard this patch.
api/midgard/replicator.php 1 patch
Doc Comments   +11 added lines, -2 removed lines patch added patch discarded remove patch
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
     }
275 275
 
276 276
     /**
277
-     * @return boolean Indicating success
277
+     * @return boolean|null Indicating success
278 278
      */
279 279
     public static function import_from_xml($xml, $force = false)
280 280
     {
@@ -302,6 +302,9 @@  discard block
 block discarded – undo
302 302
         $blob->write_content($blob->content);
303 303
     }
304 304
 
305
+    /**
306
+     * @return string|null
307
+     */
305 308
     private static function resolve_link_id(ClassMetadata $cm, dbobject $object, $name)
306 309
     {
307 310
         if ($object->$name == 0)
@@ -387,7 +390,7 @@  discard block
 block discarded – undo
387 390
      *
388 391
      * @param SimpleXMLElement $node
389 392
      * @param boolean $force
390
-     * @return dbobject
393
+     * @return blob
391 394
      */
392 395
     private static function blob_from_xml(SimpleXMLElement $node, $force)
393 396
     {
@@ -398,6 +401,9 @@  discard block
 block discarded – undo
398 401
         return $blob;
399 402
     }
400 403
 
404
+    /**
405
+     * @param string $guid
406
+     */
401 407
     private static function get_object_action($guid)
402 408
     {
403 409
         $result = connection::get_em()
@@ -425,6 +431,9 @@  discard block
 block discarded – undo
425 431
         }
426 432
     }
427 433
 
434
+    /**
435
+     * @return string|null
436
+     */
428 437
     private static function convert_value($value)
429 438
     {
430 439
         if ($value instanceof midgard_datetime)
Please login to merge, or discard this patch.
src/api/blob.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -31,6 +31,9 @@
 block discarded – undo
31 31
         return null;
32 32
     }
33 33
 
34
+    /**
35
+     * @param string $content
36
+     */
34 37
     public function write_content($content)
35 38
     {
36 39
         return file_put_contents($this->get_path(), $content) !== false;
Please login to merge, or discard this patch.
src/api/config.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -30,6 +30,9 @@  discard block
 block discarded – undo
30 30
     public $cachedir = '/var/cache/midgard2';
31 31
     public $gdathreads = false;
32 32
 
33
+    /**
34
+     * @param string $path
35
+     */
33 36
     public function read_file_at_path($path)
34 37
     {
35 38
         if (   !file_exists($path)
@@ -136,6 +139,9 @@  discard block
 block discarded – undo
136 139
         return true;
137 140
     }
138 141
 
142
+    /**
143
+     * @param string $key
144
+     */
139 145
     private function convert_to_storage($key, $value)
140 146
     {
141 147
         if (is_bool($value))
Please login to merge, or discard this patch.
src/query.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -239,6 +239,9 @@  discard block
 block discarded – undo
239 239
         }
240 240
     }
241 241
 
242
+    /**
243
+     * @param string $targetclass
244
+     */
242 245
     protected function add_collection_join($current_table, $targetclass)
243 246
     {
244 247
         if (!array_key_exists($targetclass, $this->join_tables))
@@ -250,6 +253,9 @@  discard block
 block discarded – undo
250 253
         return $this->join_tables[$targetclass];
251 254
     }
252 255
 
256
+    /**
257
+     * @param \midgard_reflection_property $mrp
258
+     */
253 259
     protected function add_join($current_table, $mrp, $property)
254 260
     {
255 261
         $targetclass = $mrp->get_link_name($property);
Please login to merge, or discard this patch.
src/storage/connection.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -114,6 +114,7 @@  discard block
 block discarded – undo
114 114
 
115 115
     /**
116 116
      * Toggle autostart
117
+     * @param boolean $autostart
117 118
      */
118 119
     public static function set_autostart($autostart)
119 120
     {
@@ -145,6 +146,9 @@  discard block
 block discarded – undo
145 146
         }
146 147
     }
147 148
 
149
+    /**
150
+     * @param string $name
151
+     */
148 152
     public static function get_parameter($name)
149 153
     {
150 154
         if (!array_key_exists($name, self::$parameters))
Please login to merge, or discard this patch.
src/storage/objectmanager.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -68,6 +68,7 @@  discard block
 block discarded – undo
68 68
      * This is basically a workaround for some quirks when merging detached entities with changed associations
69 69
      *
70 70
      * @todo: This may or may not be a bug in Doctrine
71
+     * @param dbobject $source
71 72
      */
72 73
     private function copy_associations($source, $target)
73 74
     {
@@ -239,6 +240,9 @@  discard block
 block discarded – undo
239 240
         return $entity;
240 241
     }
241 242
 
243
+    /**
244
+     * @param dbobject $target
245
+     */
242 246
     private function copy_metadata($source, $target, $action = 'update')
243 247
     {
244 248
         if (!$source instanceof entity)
Please login to merge, or discard this patch.