Completed
Push — master ( 9ec840...6f4c0e )
by Haralan
03:06
created
classes/Kohana/Jam/Association/Belongsto.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,6 @@
 block discarded – undo
43 43
 	/**
44 44
 	 * Automatically sets foreign to sensible defaults.
45 45
 	 *
46
-	 * @param   string  $model
47 46
 	 * @param   string  $name
48 47
 	 * @return  void
49 48
 	 */
Please login to merge, or discard this patch.
classes/Kohana/Jam/Association/Hasmany.php 1 patch
Doc Comments   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -48,7 +48,6 @@  discard block
 block discarded – undo
48 48
 	/**
49 49
 	 * Initialize foreign_key, as, and polymorphic_key with default values
50 50
 	 *
51
-	 * @param   string  $model
52 51
 	 * @param   string  $name
53 52
 	 */
54 53
 	public function initialize(Jam_Meta $meta, $name)
@@ -174,7 +173,7 @@  discard block
 block discarded – undo
174 173
 	/**
175 174
 	 * Generate a query to delete associated models in the database
176 175
 	 * @param  Jam_Model $model
177
-	 * @return Database_Query
176
+	 * @return null|Jam_Query_Builder_Delete
178 177
 	 */
179 178
 	public function erase_query(Jam_Model $model)
180 179
 	{
@@ -197,7 +196,7 @@  discard block
 block discarded – undo
197 196
 	/**
198 197
 	 * Generate a query to remove models from this association (without deleting them)
199 198
 	 * @param  Jam_Model $model
200
-	 * @return Database_Query
199
+	 * @return null|Jam_Query_Builder_Update
201 200
 	 */
202 201
 	public function nullify_query(Jam_Model $model)
203 202
 	{
@@ -280,6 +279,10 @@  discard block
 block discarded – undo
280 279
 	}
281 280
 
282 281
 
282
+	/**
283
+	 * @param string|null $polymorphic_key
284
+	 * @param Jam_Validated|null $inverse_of
285
+	 */
283 286
 	protected function assign_item(Jam_Model $item, $foreign_key, $polymorphic_key, $inverse_of)
284 287
 	{
285 288
 		$item->{$this->foreign_key} = $foreign_key;
Please login to merge, or discard this patch.
classes/Kohana/Jam/Meta.php 1 patch
Doc Comments   +5 added lines, -3 removed lines patch added patch discarded remove patch
@@ -261,6 +261,9 @@  discard block
 block discarded – undo
261 261
 		return $this->_collection;
262 262
 	}
263 263
 
264
+	/**
265
+	 * @param string $field
266
+	 */
264 267
 	public function validator($field, $options)
265 268
 	{
266 269
 		$fields = func_get_args();
@@ -403,7 +406,7 @@  discard block
 block discarded – undo
403 406
 	 *
404 407
 	 * @param   string       $name     name of the field
405 408
 	 * @param   mixed        $field    the field alias or object
406
-	 * @return  Jam_Field|Jam_Meta|null
409
+	 * @return  string
407 410
 	 */
408 411
 	public function field($name, $field = NULL, $prepend = FALSE)
409 412
 	{
@@ -629,7 +632,6 @@  discard block
 block discarded – undo
629 632
 	 * Get / Set individual behaviors.
630 633
 	 *
631 634
 	 * @param   string       $name     name of the association
632
-	 * @param   mixed        $association    the association alias or object
633 635
 	 * @return  Jam_Association|Jam_Meta|null
634 636
 	 */
635 637
 	public function behavior($name, $behavior = NULL, $prepend = FALSE)
@@ -677,7 +679,7 @@  discard block
 block discarded – undo
677 679
 	 * Gets or sets the model's primary key.
678 680
 	 *
679 681
 	 * @param   string  $value
680
-	 * @return  mixed
682
+	 * @return  string
681 683
 	 */
682 684
 	public function primary_key($value = NULL)
683 685
 	{
Please login to merge, or discard this patch.
classes/Kohana/Jam/Validated.php 1 patch
Doc Comments   +1 added lines, -5 removed lines patch added patch discarded remove patch
@@ -54,7 +54,6 @@  discard block
 block discarded – undo
54 54
 	 * A key can be passed to automatically load a model by its
55 55
 	 * unique key.
56 56
 	 *
57
-	 * @param  mixed|null  $key
58 57
 	 */
59 58
 	public function __construct($meta_name = NULL)
60 59
 	{
@@ -204,7 +203,6 @@  discard block
 block discarded – undo
204 203
 	 * This method—combined with get(), which first searches for changed
205 204
 	 * values—is useful for comparing changes that occurred on a model.
206 205
 	 *
207
-	 * @param   string  $field The field's or alias name
208 206
 	 * @return  mixed
209 207
 	 */
210 208
 	public function original($field_name = NULL)
@@ -321,8 +319,7 @@  discard block
 block discarded – undo
321 319
 	 * Validates the current model's data
322 320
 	 *
323 321
 	 * @throws  Jam_Exception_Validation
324
-	 * @param   Validation|null   $extra_validation
325
-	 * @return  Kohana_Jam_Model
322
+	 * @return  boolean
326 323
 	 */
327 324
 	public function check($force = FALSE)
328 325
 	{
@@ -437,7 +434,6 @@  discard block
 block discarded – undo
437 434
 	 * If $field is NULL, the method returns whether or not any
438 435
 	 * data whatsoever was changed on the model.
439 436
 	 *
440
-	 * @param   string   $field
441 437
 	 * @return  boolean
442 438
 	 */
443 439
 	public function changed($name = NULL)
Please login to merge, or discard this patch.