@@ -16,12 +16,12 @@ class LatLngBounds
1616 /**
1717 * @var LatBounds The latitude bounds of the bounding box.
1818 */
19- protected $ _LatBounds ; // NOSONAR
19+ protected $ _latBounds ; // NOSONAR
2020
2121 /**
2222 * @var LngBounds The longitude bounds of the bounding box.
2323 */
24- protected $ _LngBounds ; // NOSONAR
24+ protected $ _lngBounds ; // NOSONAR
2525
2626 /**
2727 * LatLngBounds constructor.
@@ -48,26 +48,26 @@ public function __construct($latLngSw = null, $tatLngNe = null)
4848 {
4949 $ sw = SphericalGeometry::clampLatitude ($ latLngSw ->getLat ());
5050 $ ne = SphericalGeometry::clampLatitude ($ tatLngNe ->getLat ());
51- $ this ->_LatBounds = new LatBounds ($ sw , $ ne );
51+ $ this ->_latBounds = new LatBounds ($ sw , $ ne );
5252
5353 $ sw = $ latLngSw ->getLng ();
5454 $ ne = $ tatLngNe ->getLng ();
5555
5656 if ($ ne - $ sw >= 360 )
5757 {
58- $ this ->_LngBounds = new LngBounds (-180 , 180 );
58+ $ this ->_lngBounds = new LngBounds (-180 , 180 );
5959 }
6060 else
6161 {
6262 $ sw = SphericalGeometry::wrapLongitude ($ latLngSw ->getLng ());
6363 $ ne = SphericalGeometry::wrapLongitude ($ tatLngNe ->getLng ());
64- $ this ->_LngBounds = new LngBounds ($ sw , $ ne );
64+ $ this ->_lngBounds = new LngBounds ($ sw , $ ne );
6565 }
6666 }
6767 else
6868 {
69- $ this ->_LatBounds = new LatBounds (1 , -1 );
70- $ this ->_LngBounds = new LngBounds (180 , -180 );
69+ $ this ->_latBounds = new LatBounds (1 , -1 );
70+ $ this ->_lngBounds = new LngBounds (180 , -180 );
7171 }
7272 }
7373
@@ -78,7 +78,7 @@ public function __construct($latLngSw = null, $tatLngNe = null)
7878 */
7979 public function getLatBounds ()
8080 {
81- return $ this ->_LatBounds ;
81+ return $ this ->_latBounds ;
8282 }
8383
8484 /**
@@ -88,7 +88,7 @@ public function getLatBounds()
8888 */
8989 public function getLngBounds ()
9090 {
91- return $ this ->_LngBounds ;
91+ return $ this ->_lngBounds ;
9292 }
9393
9494 /**
@@ -98,7 +98,7 @@ public function getLngBounds()
9898 */
9999 public function getCenter ()
100100 {
101- return new LatLng ($ this ->_LatBounds ->getMidpoint (), $ this ->_LngBounds ->getMidpoint ());
101+ return new LatLng ($ this ->_latBounds ->getMidpoint (), $ this ->_lngBounds ->getMidpoint ());
102102 }
103103
104104 /**
@@ -108,7 +108,7 @@ public function getCenter()
108108 */
109109 public function isEmpty ()
110110 {
111- return $ this ->_LatBounds ->isEmpty () || $ this ->_LngBounds ->isEmpty ();
111+ return $ this ->_latBounds ->isEmpty () || $ this ->_lngBounds ->isEmpty ();
112112 }
113113
114114 /**
@@ -118,7 +118,7 @@ public function isEmpty()
118118 */
119119 public function getSouthWest ()
120120 {
121- return new LatLng ($ this ->_LatBounds ->getSw (), $ this ->_LngBounds ->getSw (), true );
121+ return new LatLng ($ this ->_latBounds ->getSw (), $ this ->_lngBounds ->getSw (), true );
122122 }
123123
124124 /**
@@ -128,7 +128,7 @@ public function getSouthWest()
128128 */
129129 public function getNorthEast ()
130130 {
131- return new LatLng ($ this ->_LatBounds ->getNe (), $ this ->_LngBounds ->getNe (), true );
131+ return new LatLng ($ this ->_latBounds ->getNe (), $ this ->_lngBounds ->getNe (), true );
132132 }
133133
134134 /**
@@ -138,19 +138,19 @@ public function getNorthEast()
138138 */
139139 public function toSpan ()
140140 {
141- if ($ this ->_LatBounds ->isEmpty ()) {
141+ if ($ this ->_latBounds ->isEmpty ()) {
142142 $ lat = 0 ;
143143 } else {
144- $ lat = $ this ->_LatBounds ->getNe () - $ this ->_LatBounds ->getSw ();
144+ $ lat = $ this ->_latBounds ->getNe () - $ this ->_latBounds ->getSw ();
145145 }
146146
147- if ($ this ->_LngBounds ->isEmpty ()) {
147+ if ($ this ->_lngBounds ->isEmpty ()) {
148148 $ lng = 0 ;
149149 } else {
150- if ($ this ->_LngBounds ->getSw () > $ this ->_LngBounds ->getNe ()) {
151- $ lng = 360 - ($ this ->_LngBounds ->getSw () - $ this ->_LngBounds ->getNe ());
150+ if ($ this ->_lngBounds ->getSw () > $ this ->_lngBounds ->getNe ()) {
151+ $ lng = 360 - ($ this ->_lngBounds ->getSw () - $ this ->_lngBounds ->getNe ());
152152 } else {
153- $ lng = $ this ->_LngBounds ->getNe () - $ this ->_LngBounds ->getSw ();
153+ $ lng = $ this ->_lngBounds ->getNe () - $ this ->_lngBounds ->getSw ();
154154 }
155155 }
156156
@@ -190,8 +190,8 @@ public function equals($latLngBounds)
190190 {
191191 return !$ latLngBounds
192192 ? false
193- : $ this ->_LatBounds ->equals ($ latLngBounds ->getLatBounds ())
194- && $ this ->_LngBounds ->equals ($ latLngBounds ->getLngBounds ());
193+ : $ this ->_latBounds ->equals ($ latLngBounds ->getLatBounds ())
194+ && $ this ->_lngBounds ->equals ($ latLngBounds ->getLngBounds ());
195195 }
196196
197197 /**
@@ -202,8 +202,8 @@ public function equals($latLngBounds)
202202 */
203203 public function intersects ($ latLngBounds )
204204 {
205- return $ this ->_LatBounds ->intersects ($ latLngBounds ->getLatBounds ())
206- && $ this ->_LngBounds ->intersects ($ latLngBounds ->getLngBounds ());
205+ return $ this ->_latBounds ->intersects ($ latLngBounds ->getLatBounds ())
206+ && $ this ->_lngBounds ->intersects ($ latLngBounds ->getLngBounds ());
207207 }
208208
209209 /**
@@ -227,8 +227,8 @@ public function union($latLngBounds)
227227 */
228228 public function contains ($ latLng )
229229 {
230- return $ this ->_LatBounds ->contains ($ latLng ->getLat ())
231- && $ this ->_LngBounds ->contains ($ latLng ->getLng ());
230+ return $ this ->_latBounds ->contains ($ latLng ->getLat ())
231+ && $ this ->_lngBounds ->contains ($ latLng ->getLng ());
232232 }
233233
234234 /**
@@ -239,8 +239,8 @@ public function contains($latLng)
239239 */
240240 public function extend ($ latLng )
241241 {
242- $ this ->_LatBounds ->extend ($ latLng ->getLat ());
243- $ this ->_LngBounds ->extend ($ latLng ->getLng ());
242+ $ this ->_latBounds ->extend ($ latLng ->getLat ());
243+ $ this ->_lngBounds ->extend ($ latLng ->getLng ());
244244 return $ this ;
245245 }
246246}
0 commit comments