@@ 94-109 (lines=16) @@ | ||
91 | $rankDistribution = new StatRankDistribution(); |
|
92 | $rankDistribution->date = $distribution['date']; |
|
93 | ||
94 | if (array_key_exists('Google', $distribution)) { |
|
95 | $rankDistribution->google = new StatEngineRankDistribution([ |
|
96 | 'one' => $distribution['Google']['One'], |
|
97 | 'two' => $distribution['Google']['Two'], |
|
98 | 'three' => $distribution['Google']['Three'], |
|
99 | 'four' => $distribution['Google']['Four'], |
|
100 | 'five' => $distribution['Google']['Five'], |
|
101 | 'six_to_ten' => $distribution['Google']['SixToTen'], |
|
102 | 'eleven_to_twenty' => $distribution['Google']['ElevenToTwenty'], |
|
103 | 'twenty_one_to_thirty' => $distribution['Google']['TwentyOneToThirty'], |
|
104 | 'thirty_one_to_forty' => $distribution['Google']['ThirtyOneToForty'], |
|
105 | 'forty_one_to_fifty' => $distribution['Google']['FortyOneToFifty'], |
|
106 | 'fifty_one_to_hundred' => $distribution['Google']['FiftyOneToHundred'], |
|
107 | 'non_ranking' => $distribution['Google']['NonRanking'], |
|
108 | ]); |
|
109 | } |
|
110 | ||
111 | if (array_key_exists('GoogleBaseRank', $distribution)) { |
|
112 | $rankDistribution->google_base_rank = new StatEngineRankDistribution([ |
|
@@ 111-126 (lines=16) @@ | ||
108 | ]); |
|
109 | } |
|
110 | ||
111 | if (array_key_exists('GoogleBaseRank', $distribution)) { |
|
112 | $rankDistribution->google_base_rank = new StatEngineRankDistribution([ |
|
113 | 'one' => $distribution['GoogleBaseRank']['One'], |
|
114 | 'two' => $distribution['GoogleBaseRank']['Two'], |
|
115 | 'three' => $distribution['GoogleBaseRank']['Three'], |
|
116 | 'four' => $distribution['GoogleBaseRank']['Four'], |
|
117 | 'five' => $distribution['GoogleBaseRank']['Five'], |
|
118 | 'six_to_ten' => $distribution['GoogleBaseRank']['SixToTen'], |
|
119 | 'eleven_to_twenty' => $distribution['GoogleBaseRank']['ElevenToTwenty'], |
|
120 | 'twenty_one_to_thirty' => $distribution['GoogleBaseRank']['TwentyOneToThirty'], |
|
121 | 'thirty_one_to_forty' => $distribution['GoogleBaseRank']['ThirtyOneToForty'], |
|
122 | 'forty_one_to_fifty' => $distribution['GoogleBaseRank']['FortyOneToFifty'], |
|
123 | 'fifty_one_to_hundred' => $distribution['GoogleBaseRank']['FiftyOneToHundred'], |
|
124 | 'non_ranking' => $distribution['GoogleBaseRank']['NonRanking'], |
|
125 | ]); |
|
126 | } |
|
127 | ||
128 | if (array_key_exists('Bing', $distribution)) { |
|
129 | $rankDistribution->bing = new StatEngineRankDistribution([ |
|
@@ 128-143 (lines=16) @@ | ||
125 | ]); |
|
126 | } |
|
127 | ||
128 | if (array_key_exists('Bing', $distribution)) { |
|
129 | $rankDistribution->bing = new StatEngineRankDistribution([ |
|
130 | 'one' => $distribution['Bing']['One'], |
|
131 | 'two' => $distribution['Bing']['Two'], |
|
132 | 'three' => $distribution['Bing']['Three'], |
|
133 | 'four' => $distribution['Bing']['Four'], |
|
134 | 'five' => $distribution['Bing']['Five'], |
|
135 | 'six_to_ten' => $distribution['Bing']['SixToTen'], |
|
136 | 'eleven_to_twenty' => $distribution['Bing']['ElevenToTwenty'], |
|
137 | 'twenty_one_to_thirty' => $distribution['Bing']['TwentyOneToThirty'], |
|
138 | 'thirty_one_to_forty' => $distribution['Bing']['ThirtyOneToForty'], |
|
139 | 'forty_one_to_fifty' => $distribution['Bing']['FortyOneToFifty'], |
|
140 | 'fifty_one_to_hundred' => $distribution['Bing']['FiftyOneToHundred'], |
|
141 | 'non_ranking' => $distribution['Bing']['NonRanking'], |
|
142 | ]); |
|
143 | } |
|
144 | ||
145 | return $rankDistribution; |
|
146 | } |