mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-02-25 18:45:27 -06:00 
			
		
		
		
	Some new phpDoc and refactoring.
This commit is contained in:
		@@ -375,6 +375,8 @@ class CategoryController extends Controller
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
 | 
					     * Not the most elegant solution but it works.
 | 
				
			||||||
 | 
					     *
 | 
				
			||||||
     * @param Collection $entries
 | 
					     * @param Collection $entries
 | 
				
			||||||
     *
 | 
					     *
 | 
				
			||||||
     * @return Collection
 | 
					     * @return Collection
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -74,10 +74,10 @@ class TransactionMatcher
 | 
				
			|||||||
            $processed += count($set);
 | 
					            $processed += count($set);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            // Check for conditions to finish the loop
 | 
					            // Check for conditions to finish the loop
 | 
				
			||||||
            $reachedEndOfList           = (count($set) < $pagesize);
 | 
					            $reachedEndOfList = $set->count() < $pagesize;
 | 
				
			||||||
            $foundEnoughTransactions    = (count($result) >= $this->limit);
 | 
					            $foundEnough      = $result->count() >= $this->limit;
 | 
				
			||||||
            $searchedEnoughTransactions = ($processed >= $this->range);
 | 
					            $searchedEnough   = ($processed >= $this->range);
 | 
				
			||||||
        } while (!$reachedEndOfList && !$foundEnoughTransactions && !$searchedEnoughTransactions);
 | 
					        } while (!$reachedEndOfList && !$foundEnough && !$searchedEnough);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        // If the list of matchingTransactions is larger than the maximum number of results
 | 
					        // If the list of matchingTransactions is larger than the maximum number of results
 | 
				
			||||||
        // (e.g. if a large percentage of the transactions match), truncate the list
 | 
					        // (e.g. if a large percentage of the transactions match), truncate the list
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user