Permalink
Browse files

Remove pointless null initializations

  • Loading branch information...
flack committed Jan 6, 2019
1 parent d50a9d7 commit 100201284443d971e5dbc09bddb7ca790a38f9cc
Showing with 93 additions and 94 deletions.
  1. +3 −3 lib/fi/protie/navigation/main.php
  2. +4 −4 lib/midcom/baseclasses/components/handler.php
  3. +1 −1 lib/midcom/baseclasses/components/handler/rest.php
  4. +1 −1 lib/midcom/baseclasses/components/navigation.php
  5. +5 −5 lib/midcom/baseclasses/components/viewer.php
  6. +3 −3 lib/midcom/core/dbaobject.php
  7. +1 −1 lib/midcom/core/dbaproxy.php
  8. +1 −1 lib/midcom/core/group.php
  9. +2 −2 lib/midcom/core/manifest.php
  10. +2 −2 lib/midcom/core/privilege.php
  11. +1 −1 lib/midcom/core/service/implementation/urlparsertopic.php
  12. +5 −5 lib/midcom/core/user.php
  13. +1 −1 lib/midcom/db/attachment.php
  14. +2 −2 lib/midcom/helper/configuration.php
  15. +1 −1 lib/midcom/helper/imagefilter.php
  16. +1 −1 lib/midcom/helper/nav/backend.php
  17. +1 −2 lib/midcom/services/auth/acl.php
  18. +1 −1 lib/midcom/services/auth/backend.php
  19. +4 −4 lib/midcom/services/auth/main.php
  20. +3 −3 lib/midcom/services/cache/module/content.php
  21. +2 −2 lib/midcom/services/indexer/backend/solr.php
  22. +3 −3 lib/midcom/services/indexer/document.php
  23. +1 −1 lib/midcom/services/indexer/document/midcom.php
  24. +1 −1 lib/midcom/services/rcs/config.php
  25. +2 −2 lib/midgard/admin/asgard/handler/object/attachments.php
  26. +1 −1 lib/midgard/admin/asgard/handler/object/manage.php
  27. +1 −1 lib/midgard/admin/asgard/handler/object/parameters.php
  28. +1 −1 lib/midgard/admin/asgard/navigation.php
  29. +1 −1 lib/midgard/admin/user/handler/group/edit.php
  30. +1 −1 lib/midgard/admin/user/handler/group/permissions.php
  31. +3 −3 lib/net/nehmer/blog/handler/archive.php
  32. +2 −2 lib/net/nehmer/blog/handler/feed.php
  33. +1 −1 lib/net/nehmer/blog/handler/index.php
  34. +1 −1 lib/net/nemein/rss/fetch.php
  35. +1 −1 lib/org/openpsa/contacts/handler/group/create.php
  36. +1 −1 lib/org/openpsa/core/siteconfig.php
  37. +1 −1 lib/org/openpsa/directmarketing/handler/campaign/campaign.php
  38. +1 −1 lib/org/openpsa/directmarketing/handler/message/message.php
  39. +1 −1 lib/org/openpsa/documents/handler/document/view.php
  40. +2 −2 lib/org/openpsa/invoices/calculator.php
  41. +1 −1 lib/org/openpsa/invoices/handler/billingdata.php
  42. +1 −1 lib/org/openpsa/invoices/handler/invoice/items.php
  43. +1 −1 lib/org/openpsa/mail/backend/bouncer.php
  44. +1 −1 lib/org/openpsa/mail/message.php
  45. +3 −3 lib/org/openpsa/mypage/workingon.php
  46. +1 −1 lib/org/openpsa/products/handler/group/create.php
  47. +1 −1 lib/org/openpsa/products/handler/group/edit.php
  48. +1 −1 lib/org/openpsa/products/handler/product/create.php
  49. +1 −1 lib/org/openpsa/projects/task.php
  50. +1 −1 lib/org/openpsa/relatedto/handler/journal/entry.php
  51. +1 −1 lib/org/openpsa/sales/handler/deliverable/admin.php
  52. +2 −2 lib/org/openpsa/sales/handler/deliverable/view.php
  53. +1 −1 lib/org/openpsa/sales/handler/edit.php
  54. +1 −1 lib/org/openpsa/sales/salesproject.php
  55. +1 −1 lib/org/openpsa/sales/salesproject/deliverable.php
  56. +1 −1 lib/org/openpsa/widgets/calendar/event.php
  57. +3 −3 lib/org/openpsa/widgets/contact.php
@@ -38,7 +38,7 @@ class fi_protie_navigation
*
* @var midcom_helper_nav
*/
private $_nap = null;
private $_nap;
/**
* Stores the navigation access point history or in other words path to the current point.
@@ -52,7 +52,7 @@ class fi_protie_navigation
*
* @var integer
*/
public $root_id = null;
public $root_id;
/**
* Number of the parsed level
@@ -116,7 +116,7 @@ class fi_protie_navigation
*
* @var integer
*/
public $root_object_id = null;
public $root_object_id;
/**
* CSS class for styling the lists
@@ -43,7 +43,7 @@ abstract class midcom_baseclasses_components_handler extends midcom_baseclasses_
*
* @var midcom_db_topic
*/
var $_topic = null;
var $_topic;
/**
* Request specific data storage area. Registered in the component context
@@ -59,7 +59,7 @@ abstract class midcom_baseclasses_components_handler extends midcom_baseclasses_
* @deprecated
* @var midcom_baseclasses_components_viewer
*/
var $_master = null;
var $_master;
/**
* The node toolbar for the current request context. Not available during the can_handle
@@ -68,7 +68,7 @@ abstract class midcom_baseclasses_components_handler extends midcom_baseclasses_
* @var midcom_helper_toolbar
* @see midcom_services_toolbars
*/
var $_node_toolbar = null;
var $_node_toolbar;
/**
* The view toolbar for the current request context. Not available during the can_handle
@@ -77,7 +77,7 @@ abstract class midcom_baseclasses_components_handler extends midcom_baseclasses_
* @var midcom_helper_toolbar
* @see midcom_services_toolbars
*/
var $_view_toolbar = null;
var $_view_toolbar;
/**
* @var \Symfony\Component\Routing\Router
@@ -26,7 +26,7 @@ abstract class midcom_baseclasses_components_handler_rest extends midcom_basecla
*
* @var array
*/
protected $_response = null;
protected $_response;
/**
* the response status
@@ -25,7 +25,7 @@ class midcom_baseclasses_components_navigation extends midcom_baseclasses_compon
*
* @var midcom_db_topic
*/
protected $_topic = null;
protected $_topic;
/**
* Initialize the NAP class, sets all state variables.
@@ -209,14 +209,14 @@ class midcom_baseclasses_components_viewer extends midcom_baseclasses_components
*
* @var midcom_db_topic
*/
public $_topic = null;
public $_topic;
/**
* The current configuration.
*
* @var midcom_helper_configuration
*/
public $_config = null;
public $_config;
/**
* Request specific data storage area. Registered in the component context
@@ -233,7 +233,7 @@ class midcom_baseclasses_components_viewer extends midcom_baseclasses_components
* @var midcom_helper_toolbar
* @see midcom_services_toolbars
*/
public $_node_toolbar = null;
public $_node_toolbar;
/**
* The view toolbar for the current request context. Not available during the can_handle
@@ -242,7 +242,7 @@ class midcom_baseclasses_components_viewer extends midcom_baseclasses_components
* @var midcom_helper_toolbar
* @see midcom_services_toolbars
*/
public $_view_toolbar = null;
public $_view_toolbar;
/**
* This variable keeps track of the registered plugin namespaces. It maps namespace
@@ -282,7 +282,7 @@ class midcom_baseclasses_components_viewer extends midcom_baseclasses_components
*
* @var Array
*/
public $_handler = null;
public $_handler;
/**
* Initializes the class, only basic variable assignment.
@@ -43,14 +43,14 @@ abstract class midcom_core_dbaobject
*
* @var midgard\portable\api\mgdobject MgdSchema object
*/
public $__object = null;
public $__object;
/**
* Metadata object
*
* @var midcom_helper_metadata MidCOM metadata object
*/
private $__metadata = null;
private $__metadata;
/**
* Should the revision control system be enabled for object updates
@@ -80,7 +80,7 @@ abstract class midcom_core_dbaobject
* @access private
* @var string
*/
var $_activitystream_verb = null;
var $_activitystream_verb;
/**
* Should it be allowed to automatically generate unique name in case of clash
@@ -20,7 +20,7 @@ class midcom_core_dbaproxy
*
* @var object
*/
private $__object = null;
private $__object;
/**
* MidCOM DBA classname
@@ -25,7 +25,7 @@ class midcom_core_group
*
* @var midgard_group
*/
protected $_storage = null;
protected $_storage;
/**
* Name of the group
@@ -228,7 +228,7 @@ class midcom_core_manifest
*
* This member is only populated on demand by the get_translated_name() function.
*/
public $name_translated = null;
public $name_translated;
/**
* If this is true, it is a pure-code component, otherwise it is a full blown
@@ -264,7 +264,7 @@ class midcom_core_manifest
*
* @var array
*/
public $watches = null;
public $watches;
/**
* Custom place to extend the schema.
@@ -63,7 +63,7 @@ class midcom_core_privilege
*
* @var midcom_core_privilege_db
*/
private $__privilege_object = null;
private $__privilege_object;
/**
* GUID of the midcom_core_privilege_db object, used when values are retrieved via collector instead of QB
@@ -77,7 +77,7 @@ class midcom_core_privilege
*
* @var midcom_core_dbaobject
*/
private $__cached_object = null;
private $__cached_object;
/**
* The Default constructor creates an empty privilege, if you specify
@@ -16,7 +16,7 @@ class midcom_core_service_implementation_urlparsertopic implements midcom_core_s
public $argv = [];
private $argv_original = [];
private $current_object = null;
private $current_object;
private $url = '';
@@ -73,7 +73,7 @@ class midcom_core_user
*
* @var midcom_core_group[]
*/
private $_all_groups = null;
private $_all_groups;
/**
* Lists all groups in which a user is an immediate member.
@@ -87,7 +87,7 @@ class midcom_core_user
*
* @var midcom_core_group[]
*/
private $_direct_groups = null;
private $_direct_groups;
/**
* All groups the user is a member in, ordered by their inheritance chain.
@@ -102,7 +102,7 @@ class midcom_core_user
*
* @var array
*/
private $_inheritance_chains = null;
private $_inheritance_chains;
/**
* List of all privileges assigned to that user. It is to be considered read-only.
@@ -113,7 +113,7 @@ class midcom_core_user
*
* @var Array
*/
private $_privileges = null;
private $_privileges;
/**
* List of all privileges assigned to that user based on the class he is accessing. It is to
@@ -126,7 +126,7 @@ class midcom_core_user
*
* @var Array
*/
private $_per_class_privileges = null;
private $_per_class_privileges;
/**
* The identification string used to internally identify the user uniquely
@@ -32,7 +32,7 @@ class midcom_db_attachment extends midcom_core_dbaobject
*
* @var resource
*/
private $_open_handle = null;
private $_open_handle;
/**
* Internal tracking state variable, true if the attachment has a handle opened in write mode
@@ -69,8 +69,8 @@ class midcom_helper_configuration
* @ignore
*/
private $_object_stored = false;
private $_object = null;
private $_path = null;
private $_object;
private $_path;
/**
* The constructor initializes the global configuration.
@@ -28,7 +28,7 @@ class midcom_helper_imagefilter
*
* @var string
*/
private $_filename = null;
private $_filename;
/**
* The quality to use for JPEG manipulation, this is not
@@ -127,7 +127,7 @@ class midcom_helper_nav_backend
*
* @var midcom_services_cache_module_nap
*/
private $_nap_cache = null;
private $_nap_cache;
/**
* This array holds the node path from the URL. First value at key 0 is
@@ -214,10 +214,9 @@
class midcom_services_auth_acl
{
/**
*
* @var midcom_services_auth
*/
private $auth = null;
private $auth;
/**
* This is an internal flag used to override all regular permission checks with a sort-of
@@ -24,7 +24,7 @@ abstract class midcom_services_auth_backend
/**
* @var midcom_services_auth
*/
protected $auth = null;
protected $auth;
/**
* The constructor should do only basic initialization.
@@ -42,7 +42,7 @@ class midcom_services_auth
*
* @var midcom_core_user
*/
public $user = null;
public $user;
/**
* Admin user level state. This is true if the currently authenticated user is an
@@ -60,7 +60,7 @@ class midcom_services_auth
*
* @var midcom_services_auth_acl
*/
public $acl = null;
public $acl;
/**
* Internal cache of all loaded groups, indexed by their identifiers.
@@ -101,14 +101,14 @@ class midcom_services_auth
*
* @var midcom_services_auth_backend
*/
private $backend = null;
private $backend;
/**
* The authentication frontend we should use by default.
*
* @var midcom_services_auth_frontend
*/
private $frontend = null;
private $frontend;
/**
* Initialize the service:
@@ -79,7 +79,7 @@ class midcom_services_cache_module_content extends midcom_services_cache_module
*
* @var int
*/
private $_expires = null;
private $_expires;
/**
* The time of the last modification, set during auto-header-completion.
@@ -169,14 +169,14 @@ class midcom_services_cache_module_content extends midcom_services_cache_module
*
* @var Doctrine\Common\Cache\CacheProvider
*/
private $_meta_cache = null;
private $_meta_cache;
/**
* A cache backend used to store the actual cached pages.
*
* @var Doctrine\Common\Cache\CacheProvider
*/
private $_data_cache = null;
private $_data_cache;
/**
* GUIDs loaded per context in this request
@@ -22,7 +22,7 @@ class midcom_services_indexer_backend_solr implements midcom_services_indexer_ba
/**
* The "index" to use (Solr has single index but we add this as query constraint as necessary
*/
private $_index_name = null;
private $_index_name;
/**
* The xml factory class
@@ -215,7 +215,7 @@ class midcom_services_indexer_solrDocumentFactory
/**
* The "index" to use (Solr has single index but we add this as query constraint as necessary
*/
private $_index_name = null;
private $_index_name;
/**
* The xml document to post.
Oops, something went wrong.

0 comments on commit 1002012

Please sign in to comment.