Skip to content
Permalink
Browse files

Fix phpdoc inconsistencies noticed by master branch of phan

  • Loading branch information...
TysonAndre authored and kiwiz committed Jun 19, 2017
1 parent 46302b0 commit 5b69ef17376e806e3f34e866e9c3c7402928ac49
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
@@ -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',
@@ -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) {
@@ -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) {
@@ -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;
@@ -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 5b69ef1

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.