[NFC] fix comment blocks capitalising null
authoreileen <emcnaughton@wikimedia.org>
Thu, 23 May 2019 01:14:38 +0000 (13:14 +1200)
committereileen <emcnaughton@wikimedia.org>
Thu, 23 May 2019 01:16:53 +0000 (13:16 +1200)
From running the drupal code sniffer with type checking enabled it turns out the capitalisation of NULL
does not extend to docblocks.

See https://github.com/civicrm/coder/pull/7

CRM/Case/XMLRepository.php
CRM/Core/CodeGen/Main.php
CRM/Core/Component/Info.php
CRM/Report/Form.php
Civi/ActionSchedule/Mapping.php
Civi/Angular/AngularLoader.php
Civi/Angular/Manager.php
Civi/Core/SettingsBag.php
Civi/Core/SettingsManager.php
Civi/Core/SqlTriggers.php
Civi/Test/CiviEnvBuilder.php

index 252babe18a96afb5c663ed304a0036d8d4b4b92f..54011e77e3b91aa0da88799ea7d85d06520febf7 100644 (file)
@@ -43,12 +43,14 @@ class CRM_Case_XMLRepository {
   protected $xml = [];
 
   /**
-   * @var array|NULL
+   * @var array|null
    */
   protected $hookCache = NULL;
 
   /**
-   * @var array|NULL symbolic names of case-types
+   * Symbolic names of case-types.
+   *
+   * @var array|null
    */
   protected $allCaseTypes = NULL;
 
index 7729ea81e8e4f51bbbb138d3c6fa5772103e5875..351ef233effa4baad40eb149832cd47f5c168360 100644 (file)
@@ -37,13 +37,18 @@ class CRM_Core_CodeGen_Main {
   public $database;
 
   /**
-   * @var string|NULL path in which to store a marker that indicates the last execution of
-   * GenCode. If a matching marker already exists, GenCode doesn't run.
+   * Path in which to store a marker that indicates the last execution of GenCode.
+   *
+   * If a matching marker already exists, GenCode doesn't run.
+   *
+   * @var string|null
    */
   public $digestPath;
 
   /**
-   * @var string|NULL a digest of the inputs to the code-generator (eg the properties and source files)
+   * Digest of the inputs to the code-generator (eg the properties and source files).
+   *
+   * @var string|null
    */
   public $sourceDigest;
 
index fd4b55c5be330a6e36057aa298aa4159635b37c8..1d2989c52c994eddd5f1b465f68f5990ee3e79c6 100644 (file)
@@ -31,8 +31,6 @@
  *
  * @package CRM
  * @copyright CiviCRM LLC (c) 2004-2019
- * $Id$
- *
  */
 abstract class CRM_Core_Component_Info {
 
@@ -79,14 +77,16 @@ abstract class CRM_Core_Component_Info {
   const COMPONENT_MENU_XML = 'Menu';
 
   /**
-   * Stores component information.
-   * @var array component settings as key/value pairs
+   * Component settings as key/value pairs.
+   *
+   * @var array
    */
   public $info;
 
   /**
-   * Stores component keyword.
-   * @var string name of component keyword
+   * Component keyword.
+   *
+   * @var string
    */
   protected $keyword;
 
index babcd5793d97491e9880d3e491ff08732a700252..532bd0e022c6965b36189845e75943a5dfa1f5f9 100644 (file)
@@ -325,7 +325,7 @@ class CRM_Report_Form extends CRM_Core_Form {
 
   /**
    * Variables to hold the acl inner join and where clause
-   * @var string|NULL
+   * @var string|null
    */
   protected $_aclFrom = NULL;
   protected $_aclWhere = NULL;
@@ -358,7 +358,7 @@ class CRM_Report_Form extends CRM_Core_Form {
    *
    * (it's unclear if this could be merged with outputMode at this stage)
    *
-   * @var string|NULL
+   * @var string|null
    */
   protected $_format;
 
@@ -380,21 +380,24 @@ class CRM_Report_Form extends CRM_Core_Form {
   public $_havingClauses = [];
 
   /**
-   * DashBoardRowCount Dashboard row count
-   * @var Integer
+   * DashBoardRowCount Dashboard row count.
+   *
+   * @var int
    */
   public $_dashBoardRowCount;
 
   /**
    * Is this being called without a form controller (ie. the report is being render outside the normal form
-   * - e.g the api is retrieving the rows
+   * - e.g the api is retrieving the rows.
+   *
    * @var bool
    */
   public $noController = FALSE;
 
   /**
-   * Variable to hold the currency alias
-   * @var string|NULL
+   * Variable to hold the currency alias.
+   *
+   * @var string|null
    */
   protected $_currencyColumn = NULL;
 
index 9e6dcbf91972951e223d38730e0b3e6729227879..b0666b03ba7901dbab094085f36f912e8830c2ab 100644 (file)
@@ -149,14 +149,14 @@ abstract class Mapping implements MappingInterface {
 
   /**
    * Date filter -- the field name.
-   * @var string|NULL
+   * @var string|null
    *   Ex: 'event_start_date'
    */
   private $entity_date_start;
 
   /**
    * Date filter -- the field name.
-   * @var string|NULL
+   * @var string|null
    *   Ex: 'event_end_date'.
    */
   private $entity_date_end;
index 181c8d2c9347323bce982b0ec4423dc4d94f8deb..f74479fb4685360be0be01adbb36a036f309f88f 100644 (file)
@@ -62,7 +62,7 @@ class AngularLoader {
   protected $modules;
 
   /**
-   * @var array|NULL
+   * @var array|null
    */
   protected $crmApp = NULL;
 
index f822d481d5c61cc938e43cea61dee36e5031ee42..5d019a0318e4c9e1869aab82d15c3ae9bfb4e2a8 100644 (file)
@@ -14,7 +14,9 @@ class Manager {
   protected $res = NULL;
 
   /**
-   * @var array|NULL
+   * Modules.
+   *
+   * @var array|null
    *   Each item has some combination of these keys:
    *   - ext: string
    *     The Civi extension which defines the Angular module.
index 86d48bbb791e713400f320fc7fb0791a055127dd..d2f742ad405323748c1440d9042499210d56244b 100644 (file)
@@ -70,7 +70,7 @@ class SettingsBag {
    * The result of combining default values, mandatory
    * values, and user values.
    *
-   * @var array|NULL
+   * @var array|null
    *   Array(string $settingName => mixed $value).
    */
   protected $combined;
index 1954404ca3812cc1ee8cd2009a721826392a639a..f8873174679783908acf4e143a5b18517a075420 100644 (file)
@@ -80,7 +80,7 @@ class SettingsManager {
   protected $bagsByContact = [];
 
   /**
-   * @var array|NULL
+   * @var array|null
    *   Array(string $entity => array(string $settingName => mixed $value)).
    *   Ex: $mandatory['domain']['uploadDir'].
    *   NULL means "autoload from $civicrm_setting".
index ce54d184489930bde232f96f77aae3cd98c8f1f0..809b2dd960e23c25e41f03b8d837dde323b55ece 100644 (file)
@@ -38,7 +38,7 @@ class SqlTriggers {
   /**
    * The name of the output file.
    *
-   * @var string|NULL
+   * @var string|null
    */
   private $file = NULL;
 
index 91fc4b767885ffca337ad7891292ab438d5c582a..767d34033a814f3de3072fabb884d91bb149f9d8 100644 (file)
@@ -22,7 +22,7 @@ class CiviEnvBuilder {
   private $steps = [];
 
   /**
-   * @var string|NULL
+   * @var string|null
    *   A digest of the values in $steps.
    */
   private $targetSignature = NULL;