Commit 752fd5a7 authored by xjm's avatar xjm
Browse files

Issue #2924780 by zaporylie: Missing @var annotation for scalars that provide default values

parent 5d2b7fba
...@@ -66,31 +66,43 @@ class DateTimePlus { ...@@ -66,31 +66,43 @@ class DateTimePlus {
/** /**
* The value of the time value passed to the constructor. * The value of the time value passed to the constructor.
*
* @var string
*/ */
protected $inputTimeRaw = ''; protected $inputTimeRaw = '';
/** /**
* The prepared time, without timezone, for this date. * The prepared time, without timezone, for this date.
*
* @var string
*/ */
protected $inputTimeAdjusted = ''; protected $inputTimeAdjusted = '';
/** /**
* The value of the timezone passed to the constructor. * The value of the timezone passed to the constructor.
*
* @var string
*/ */
protected $inputTimeZoneRaw = ''; protected $inputTimeZoneRaw = '';
/** /**
* The prepared timezone object used to construct this date. * The prepared timezone object used to construct this date.
*
* @var string
*/ */
protected $inputTimeZoneAdjusted = ''; protected $inputTimeZoneAdjusted = '';
/** /**
* The value of the format passed to the constructor. * The value of the format passed to the constructor.
*
* @var string
*/ */
protected $inputFormatRaw = ''; protected $inputFormatRaw = '';
/** /**
* The prepared format, if provided. * The prepared format, if provided.
*
* @var string
*/ */
protected $inputFormatAdjusted = ''; protected $inputFormatAdjusted = '';
......
...@@ -19,6 +19,8 @@ class Schema extends DatabaseSchema { ...@@ -19,6 +19,8 @@ class Schema extends DatabaseSchema {
/** /**
* Override DatabaseSchema::$defaultSchema * Override DatabaseSchema::$defaultSchema
*
* @var string
*/ */
protected $defaultSchema = 'main'; protected $defaultSchema = 'main';
......
...@@ -48,6 +48,8 @@ abstract class Query implements PlaceholderInterface { ...@@ -48,6 +48,8 @@ abstract class Query implements PlaceholderInterface {
/** /**
* The placeholder counter. * The placeholder counter.
*
* @var int
*/ */
protected $nextPlaceholder = 0; protected $nextPlaceholder = 0;
......
...@@ -113,6 +113,8 @@ class Select extends Query implements SelectInterface { ...@@ -113,6 +113,8 @@ class Select extends Query implements SelectInterface {
/** /**
* The FOR UPDATE status * The FOR UPDATE status
*
* @var bool
*/ */
protected $forUpdate = FALSE; protected $forUpdate = FALSE;
......
...@@ -30,6 +30,8 @@ class SelectExtender implements SelectInterface { ...@@ -30,6 +30,8 @@ class SelectExtender implements SelectInterface {
/** /**
* The placeholder counter. * The placeholder counter.
*
* @var int
*/ */
protected $placeholder = 0; protected $placeholder = 0;
......
...@@ -19,6 +19,8 @@ abstract class Schema implements PlaceholderInterface { ...@@ -19,6 +19,8 @@ abstract class Schema implements PlaceholderInterface {
/** /**
* The placeholder counter. * The placeholder counter.
*
* @var int
*/ */
protected $placeholder = 0; protected $placeholder = 0;
...@@ -30,6 +32,8 @@ abstract class Schema implements PlaceholderInterface { ...@@ -30,6 +32,8 @@ abstract class Schema implements PlaceholderInterface {
* method. * method.
* *
* @see DatabaseSchema::getPrefixInfo() * @see DatabaseSchema::getPrefixInfo()
*
* @var string
*/ */
protected $defaultSchema = 'public'; protected $defaultSchema = 'public';
......
...@@ -33,6 +33,8 @@ class EntityType extends Plugin { ...@@ -33,6 +33,8 @@ class EntityType extends Plugin {
/** /**
* The group machine name. * The group machine name.
*
* @var string
*/ */
public $group = 'default'; public $group = 'default';
......
...@@ -28,6 +28,8 @@ class PhpassHashedPassword implements PasswordInterface { ...@@ -28,6 +28,8 @@ class PhpassHashedPassword implements PasswordInterface {
/** /**
* Returns a string for mapping an int to the corresponding base 64 character. * Returns a string for mapping an int to the corresponding base 64 character.
*
* @var string
*/ */
public static $ITOA64 = './0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'; public static $ITOA64 = './0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
......
...@@ -16,6 +16,8 @@ abstract class BlockContentTestBase extends WebTestBase { ...@@ -16,6 +16,8 @@ abstract class BlockContentTestBase extends WebTestBase {
/** /**
* Profile to use. * Profile to use.
*
* @var string
*/ */
protected $profile = 'testing'; protected $profile = 'testing';
......
...@@ -13,6 +13,8 @@ abstract class BlockContentTestBase extends BrowserTestBase { ...@@ -13,6 +13,8 @@ abstract class BlockContentTestBase extends BrowserTestBase {
/** /**
* Profile to use. * Profile to use.
*
* @var string
*/ */
protected $profile = 'testing'; protected $profile = 'testing';
......
...@@ -73,6 +73,8 @@ class Comment extends ContentEntityBase implements CommentInterface { ...@@ -73,6 +73,8 @@ class Comment extends ContentEntityBase implements CommentInterface {
/** /**
* The thread for which a lock was acquired. * The thread for which a lock was acquired.
*
* @var string
*/ */
protected $threadLock = ''; protected $threadLock = '';
......
...@@ -21,6 +21,8 @@ class Comment extends WizardPluginBase { ...@@ -21,6 +21,8 @@ class Comment extends WizardPluginBase {
/** /**
* Set the created column. * Set the created column.
*
* @var string
*/ */
protected $createdColumn = 'created'; protected $createdColumn = 'created';
......
...@@ -13,6 +13,8 @@ abstract class ModerationStateTestBase extends BrowserTestBase { ...@@ -13,6 +13,8 @@ abstract class ModerationStateTestBase extends BrowserTestBase {
/** /**
* Profile to use. * Profile to use.
*
* @var string
*/ */
protected $profile = 'testing'; protected $profile = 'testing';
......
...@@ -25,6 +25,8 @@ class FilterDateTimeTest extends DateTimeHandlerTestBase { ...@@ -25,6 +25,8 @@ class FilterDateTimeTest extends DateTimeHandlerTestBase {
/** /**
* Use a non-UTC timezone. * Use a non-UTC timezone.
*
* @var string
*/ */
protected static $timezone = 'America/Vancouver'; protected static $timezone = 'America/Vancouver';
......
...@@ -18,6 +18,8 @@ class Watchdog extends WizardPluginBase { ...@@ -18,6 +18,8 @@ class Watchdog extends WizardPluginBase {
/** /**
* Set the created column. * Set the created column.
*
* @var string
*/ */
protected $createdColumn = 'timestamp'; protected $createdColumn = 'timestamp';
......
...@@ -17,6 +17,8 @@ class File extends WizardPluginBase { ...@@ -17,6 +17,8 @@ class File extends WizardPluginBase {
/** /**
* Set the created column. * Set the created column.
*
* @var string
*/ */
protected $createdColumn = 'created'; protected $createdColumn = 'created';
......
...@@ -24,6 +24,8 @@ class HelpTest extends BrowserTestBase { ...@@ -24,6 +24,8 @@ class HelpTest extends BrowserTestBase {
/** /**
* Use the Standard profile to test help implementations of many core modules. * Use the Standard profile to test help implementations of many core modules.
*
* @var string
*/ */
protected $profile = 'standard'; protected $profile = 'standard';
......
...@@ -20,6 +20,8 @@ abstract class MigrateUpgradeTestBase extends WebTestBase { ...@@ -20,6 +20,8 @@ abstract class MigrateUpgradeTestBase extends WebTestBase {
/** /**
* Use the Standard profile to test help implementations of many core modules. * Use the Standard profile to test help implementations of many core modules.
*
* @var string
*/ */
protected $profile = 'standard'; protected $profile = 'standard';
......
...@@ -15,6 +15,8 @@ abstract class MigrateUpgradeTestBase extends BrowserTestBase { ...@@ -15,6 +15,8 @@ abstract class MigrateUpgradeTestBase extends BrowserTestBase {
/** /**
* Use the Standard profile to test help implementations of many core modules. * Use the Standard profile to test help implementations of many core modules.
*
* @var string
*/ */
protected $profile = 'standard'; protected $profile = 'standard';
......
...@@ -22,6 +22,8 @@ class Node extends WizardPluginBase { ...@@ -22,6 +22,8 @@ class Node extends WizardPluginBase {
/** /**
* Set the created column. * Set the created column.
*
* @var string
*/ */
protected $createdColumn = 'node_field_data-created'; protected $createdColumn = 'node_field_data-created';
......
...@@ -21,6 +21,8 @@ class NodeRevision extends WizardPluginBase { ...@@ -21,6 +21,8 @@ class NodeRevision extends WizardPluginBase {
/** /**
* Set the created column. * Set the created column.
*
* @var string
*/ */
protected $createdColumn = 'changed'; protected $createdColumn = 'changed';
......
...@@ -34,6 +34,8 @@ class Search extends FilterPluginBase { ...@@ -34,6 +34,8 @@ class Search extends FilterPluginBase {
/** /**
* TRUE if the search query has been parsed. * TRUE if the search query has been parsed.
*
* @var bool
*/ */
protected $parsed = FALSE; protected $parsed = FALSE;
......
...@@ -45,6 +45,8 @@ abstract class TestBase { ...@@ -45,6 +45,8 @@ abstract class TestBase {
/** /**
* Time limit for the test. * Time limit for the test.
*
* @var int
*/ */
protected $timeLimit = 500; protected $timeLimit = 500;
......
...@@ -36,6 +36,8 @@ class InstallationProfileModuleTestsTest extends WebTestBase { ...@@ -36,6 +36,8 @@ class InstallationProfileModuleTestsTest extends WebTestBase {
* contained in the Testing profile. * contained in the Testing profile.
* *
* @see \Drupal\drupal_system_listing_compatible_test\Tests\SystemListingCompatibleTest * @see \Drupal\drupal_system_listing_compatible_test\Tests\SystemListingCompatibleTest
*
* @var string
*/ */
protected $profile = 'testing'; protected $profile = 'testing';
......
...@@ -169,6 +169,8 @@ abstract class WebTestBase extends TestBase { ...@@ -169,6 +169,8 @@ abstract class WebTestBase extends TestBase {
/** /**
* The maximum number of redirects to follow when handling responses. * The maximum number of redirects to follow when handling responses.
*
* @var int
*/ */
protected $maximumRedirects = 5; protected $maximumRedirects = 5;
......
...@@ -28,6 +28,8 @@ class OtherInstallationProfileTestsTest extends BrowserTestBase { ...@@ -28,6 +28,8 @@ class OtherInstallationProfileTestsTest extends BrowserTestBase {
* The Standard profile contains \Drupal\standard\Tests\StandardTest, which * The Standard profile contains \Drupal\standard\Tests\StandardTest, which
* should be found. * should be found.
* *
* @var string
*
* @see \Drupal\simpletest\Tests\InstallationProfileModuleTestsTest * @see \Drupal\simpletest\Tests\InstallationProfileModuleTestsTest
* @see \Drupal\drupal_system_listing_compatible_test\Tests\SystemListingCompatibleTest * @see \Drupal\drupal_system_listing_compatible_test\Tests\SystemListingCompatibleTest
*/ */
......
...@@ -16,6 +16,8 @@ class TestFileTransfer extends FileTransfer { ...@@ -16,6 +16,8 @@ class TestFileTransfer extends FileTransfer {
/** /**
* This is for testing the CopyRecursive logic. * This is for testing the CopyRecursive logic.
*
* @var bool
*/ */
public $shouldIsDirectoryReturnTrue = FALSE; public $shouldIsDirectoryReturnTrue = FALSE;
......
...@@ -39,6 +39,8 @@ class BreadcrumbTest extends BrowserTestBase { ...@@ -39,6 +39,8 @@ class BreadcrumbTest extends BrowserTestBase {
/** /**
* Test paths in the Standard profile. * Test paths in the Standard profile.
*
* @var string
*/ */
protected $profile = 'standard'; protected $profile = 'standard';
......
...@@ -13,6 +13,8 @@ class ClassLoaderTest extends BrowserTestBase { ...@@ -13,6 +13,8 @@ class ClassLoaderTest extends BrowserTestBase {
/** /**
* The expected result from calling the module-provided class' method. * The expected result from calling the module-provided class' method.
*
* @var string
*/ */
protected $expected = 'Drupal\\module_autoload_test\\SomeClass::testMethod() was invoked.'; protected $expected = 'Drupal\\module_autoload_test\\SomeClass::testMethod() was invoked.';
......
...@@ -21,6 +21,8 @@ class Users extends WizardPluginBase { ...@@ -21,6 +21,8 @@ class Users extends WizardPluginBase {
/** /**
* Set the created column. * Set the created column.
*
* @var string
*/ */
protected $createdColumn = 'created'; protected $createdColumn = 'created';
......
...@@ -68,6 +68,9 @@ abstract class FieldPluginBase extends HandlerBase implements FieldHandlerInterf ...@@ -68,6 +68,9 @@ abstract class FieldPluginBase extends HandlerBase implements FieldHandlerInterf
*/ */
const RENDER_TEXT_PHASE_EMPTY = 2; const RENDER_TEXT_PHASE_EMPTY = 2;
/**
* @var string
*/
public $field_alias = 'unknown'; public $field_alias = 'unknown';
public $aliases = []; public $aliases = [];
......
...@@ -53,6 +53,8 @@ abstract class FilterPluginBase extends HandlerBase implements CacheableDependen ...@@ -53,6 +53,8 @@ abstract class FilterPluginBase extends HandlerBase implements CacheableDependen
/** /**
* Contains the operator which is used on the query. * Contains the operator which is used on the query.
*
* @var string
*/ */
public $operator = '='; public $operator = '=';
......
...@@ -61,6 +61,8 @@ class Sql extends QueryPluginBase { ...@@ -61,6 +61,8 @@ class Sql extends QueryPluginBase {
/** /**
* The default operator to use when connecting the WHERE groups. May be * The default operator to use when connecting the WHERE groups. May be
* AND or OR. * AND or OR.
*
* @var string
*/ */
protected $groupOperator = 'AND'; protected $groupOperator = 'AND';
...@@ -82,9 +84,14 @@ class Sql extends QueryPluginBase { ...@@ -82,9 +84,14 @@ class Sql extends QueryPluginBase {
/** /**
* A flag as to whether or not to make the primary field distinct. * A flag as to whether or not to make the primary field distinct.
*
* @var bool
*/ */
public $distinct = FALSE; public $distinct = FALSE;
/**
* @var bool
*/
protected $hasAggregate = FALSE; protected $hasAggregate = FALSE;
/** /**
......
...@@ -29,6 +29,8 @@ class SystemListingCompatibleTest extends WebTestBase { ...@@ -29,6 +29,8 @@ class SystemListingCompatibleTest extends WebTestBase {
* asserts that this test is found. * asserts that this test is found.
* *
* @see SimpleTestInstallationProfileModuleTestsTestCase * @see SimpleTestInstallationProfileModuleTestsTestCase
*
* @var string
*/ */
protected $profile = 'minimal'; protected $profile = 'minimal';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment