1 | <?php |
||
15 | class OtherProjectsSitesGenerator implements OtherProjectsSitesProvider { |
||
16 | |||
17 | /** |
||
18 | * @var SiteLookup |
||
19 | */ |
||
20 | private $siteLookup; |
||
21 | |||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | private $localSiteId; |
||
26 | |||
27 | /** |
||
28 | * @var string[] |
||
29 | */ |
||
30 | private $specialSiteGroups; |
||
31 | |||
32 | /** |
||
33 | * @param SiteLookup $siteLookup |
||
34 | * @param string $localSiteId |
||
35 | * @param string[] $specialSiteGroups |
||
36 | */ |
||
37 | public function __construct( SiteLookup $siteLookup, $localSiteId, array $specialSiteGroups ) { |
||
42 | |||
43 | /** |
||
44 | * Get the site ids of other projects to use. |
||
45 | * |
||
46 | * @param array $siteLinkGroups |
||
47 | * @return string[] |
||
48 | */ |
||
49 | public function getOtherProjectsSiteIds( array $siteLinkGroups ) { |
||
74 | |||
75 | /** |
||
76 | * Returns the site to link to for a given group or null |
||
77 | * |
||
78 | * If there is only one site in this group (like for commons) this site is returned else the site in the same language |
||
79 | * as the current site is returned |
||
80 | * |
||
81 | * @param string $groupId |
||
82 | * @param string $currentLanguageCode |
||
83 | * |
||
84 | * @return Site|null |
||
85 | */ |
||
86 | private function getSiteForGroup( $groupId, $currentLanguageCode ) { |
||
101 | |||
102 | /** |
||
103 | * @param array &$groups |
||
104 | */ |
||
105 | private function expandSpecialGroups( &$groups ) { |
||
113 | |||
114 | /** |
||
115 | * @return Site |
||
116 | */ |
||
117 | private function getLocalSite() { |
||
120 | |||
121 | } |
||
122 |
This check looks for function or method calls that always return null and whose return value is assigned to a variable.
The method
getObject()
can return nothing but null, so it makes no sense to assign that value to a variable.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.