Permalink
Browse files

Fix phpdoc inconsistencies noticed by master branch of phan

  • Loading branch information...
TysonAndre committed Jun 19, 2017
1 parent 7101e12 commit 3048f3979108b454b7330ab4e2d1b4a7f110f941
Showing with 6 additions and 6 deletions.
  1. +3 −2 .phan/config.php
  2. +1 −1 phplib/AlertLog.php
  3. +1 −1 phplib/Model.php
  4. +0 −1 phplib/Notification.php
  5. +1 −1 phplib/REST/Models.php
View
@@ -11,7 +11,9 @@
// A list of individual files to include in analysis
// with a path relative to the root directory of the
// project
'file_list' => [],
'file_list' => [
'phplib/411bootstrap.php',
],
// A list of directories that should be parsed for class and
// method information. After excluding the directories
// defined in exclude_analysis_directory_list, the remaining
@@ -20,7 +22,6 @@
// Thus, both first-party and third-party code being used by
// your application should be included in this list.
'directory_list' => [
'phplib/411bootstrap.php',
'bin',
'phplib',
'vendor',
View
@@ -125,7 +125,7 @@ public static function getRecent($date, $type, $range) {
* @param int $from The lower time threshold
* @param int $to The upper time threshold
* @param int $count The number of results to return.
* @return int A count of resolved Alerts by each User.
* @return array A count of resolved Alerts by each User.
* @throws DBException
*/
public static function getRecentResolveCounts($from, $to, $count) {
View
@@ -541,7 +541,7 @@ public static function countByQuery(array $query=[], $count=null, $offset=null,
* @param array $sort An array of columns to sort by.
* @param array $group An array of columns to group by.
* @param bool|null $reverse Whether to reverse the order of the result set.
* @return int A count.
* @return array [string $sql, array $vals]
* @throws DBException
*/
public static function generateQuery(array $fields, array $query=[], $count=null, $offset=null, $sort=[], $group=[], $reverse=null) {
View
@@ -226,7 +226,6 @@ public static function sendReportErrorEmail($to, $report, $errors, $debug_data=[
* @param array $noisy_searches Searches that generate the most Alerts w/ a count.
* @param array $quiet_searches Searches that generate the least Alerts w/ a count.
* @param array $debug_data Watermarking data for debugging purposes.
* @param
*/
public static function sendSummaryEmail($to, $start_date, $stats, $leaders, $noisy_searches, $quiet_searches, $debug_data=[]) {
$end_date = clone $start_date;
View
@@ -104,7 +104,6 @@ public function create($get, $data, $set_fields=[]) {
/**
* Get models.
* @param array $get URL params
* @param array $data Request body params.
* @return Model[] The list of matching Models.
*/
@@ -115,6 +114,7 @@ public function read($data) {
$FINDER = 'FOO\\' . static::$MODEL . 'Finder';
$id_query = Util::exists($data, 'id');
$query = [];
if($id_query) {
$query['id'] = $data['id'];
} else {

0 comments on commit 3048f39

Please sign in to comment.