Remove redundant property initialization with `null`
authorMatthias Schmidt <gravatronics@live.com>
Sat, 24 Sep 2016 12:27:42 +0000 (14:27 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sat, 24 Sep 2016 12:27:42 +0000 (14:27 +0200)
files/lib/data/conversation/Conversation.class.php
files/lib/data/conversation/ConversationAction.class.php
files/lib/data/conversation/UserConversationList.class.php
files/lib/data/conversation/label/ConversationLabelAction.class.php
files/lib/data/conversation/message/ConversationMessage.class.php
files/lib/data/conversation/message/SearchResultConversationMessage.class.php
files/lib/data/conversation/message/ViewableConversationMessage.class.php
files/lib/data/conversation/message/ViewableConversationMessageList.class.php
files/lib/data/modification/log/ViewableConversationModificationLog.class.php
files/lib/page/ConversationListPage.class.php
files/lib/system/clipboard/action/ConversationClipboardAction.class.php

index 0ddb6aa7350c25d6b105f4db35467610e06d0d2f..d085a85cee2abcf5da96cd8cdc048ebefa816be2 100644 (file)
@@ -66,7 +66,7 @@ class Conversation extends DatabaseObject implements IRouteController, ITitledLi
         * first message object
         * @var ConversationMessage
         */
-       protected $firstMessage = null;
+       protected $firstMessage;
        
        /**
         * @inheritDoc
index 650f178095f770060e4467b52d71ceb8bc1b96e1..1ad10cecd78527aa1cd92bf1703b652bd36a9531 100644 (file)
@@ -40,7 +40,7 @@ class ConversationAction extends AbstractDatabaseObjectAction implements IClipbo
         * conversation object
         * @var ConversationEditor
         */
-       protected $conversation = null;
+       protected $conversation;
        
        /**
         * list of conversation data modifications
index 8a4f96aa7a82fcf3ffcd7618b3531342764bff74..9eec01d0a21ce011ca6629fcf6f3c1c1a3873656 100644 (file)
@@ -36,7 +36,7 @@ class UserConversationList extends ConversationList {
         * label list object
         * @var ConversationLabelList
         */
-       public $labelList = null;
+       public $labelList;
        
        /**
         * @inheritDoc
index 7b930c8f191ee4ce4e90c41a143cff505d2d0c3e..ae6e2525a76b38aa2b5352c349d64407e733bf52 100644 (file)
@@ -43,13 +43,13 @@ class ConversationLabelAction extends AbstractDatabaseObjectAction {
         * conversation object
         * @var Conversation
         */
-       public $conversation = null;
+       public $conversation;
        
        /**
         * conversation label list object
         * @var ConversationLabelList
         */
-       public $labelList = null;
+       public $labelList;
        
        /**
         * @inheritDoc
index b910d2aa95c5fdebda2d84fdd4827561d1db808f..57a829eb70bb991085ea2010d2ec67aa36ddb52a 100644 (file)
@@ -38,7 +38,7 @@ class ConversationMessage extends DatabaseObject implements IMessage {
         * conversation object
         * @var Conversation
         */
-       protected $conversation = null;
+       protected $conversation;
        
        /**
         * @inheritDoc
index 7a0f05e0a7169767eead73fc05a03c03e9280601..199ed6981a8802abe740fa06cc9dce5283c3a2f7 100644 (file)
@@ -20,7 +20,7 @@ class SearchResultConversationMessage extends ViewableConversationMessage implem
         * conversation object
         * @var Conversation
         */
-       public $conversation = null;
+       public $conversation;
        
        /** @noinspection PhpMissingParentCallCommonInspection */
        /**
index 52c980f0af82fef44ab8dd78487e80c024796e23..3daa105afdb9c1480a1601fe769af13cce636e90 100644 (file)
@@ -28,7 +28,7 @@ class ViewableConversationMessage extends DatabaseObjectDecorator {
         * user profile object
         * @var UserProfile
         */
-       protected $userProfile = null;
+       protected $userProfile;
        
        /**
         * Returns the user profile object.
index a70d63dcf1e44f683dcfbdbdaed722dbceeebdb1..a495af2be14599c21697ab47db0164bbc4907926 100644 (file)
@@ -46,7 +46,7 @@ class ViewableConversationMessageList extends ConversationMessageList {
         * attachment list
         * @var GroupedAttachmentList
         */
-       protected $attachmentList = null;
+       protected $attachmentList;
        
        /**
         * max post time
@@ -70,7 +70,7 @@ class ViewableConversationMessageList extends ConversationMessageList {
         * conversation object
         * @var Conversation
         */
-       protected $conversation = null;
+       protected $conversation;
        
        /**
         * @inheritDoc
index 3611c5e3ab7227a4dcd25b4922a5ef7ff3d9fdea..02607f699f037f82348c601011586f8affd8157e 100644 (file)
@@ -29,7 +29,7 @@ class ViewableConversationModificationLog extends DatabaseObjectDecorator {
         * user profile object
         * @var UserProfile
         */
-       protected $userProfile = null;
+       protected $userProfile;
        
        /**
         * Returns readable representation of current log entry.
index 282629883e3c4625603a5dfdea8d6b5b9949becc..931c700e5749dfeb02d0929b7e2c86254a8f66ad 100644 (file)
@@ -71,7 +71,7 @@ class ConversationListPage extends SortablePage {
         * label list object
         * @var ConversationLabelList
         */
-       public $labelList = null;
+       public $labelList;
        
        /**
         * number of conversations (no filter)
index 3ff202572c5cc705d429752245df2cda2455eb45..86976ebbc0547a2459d09478c648e955ec4c7726 100644 (file)
@@ -24,7 +24,7 @@ class ConversationClipboardAction extends AbstractClipboardAction {
         * list of conversations
         * @var Conversation[]
         */
-       public $conversations = null;
+       public $conversations;
        
        /**
         * @inheritDoc