Completed
Push — master ( f707c6...9fe665 )
by Mark
01:07 queued 56s
created
helper/index.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -272,10 +272,10 @@
 block discarded – undo
272 272
     {
273 273
         // rational64u
274 274
         $nums = explode('/', $param);
275
-        if ((int) $nums[1] > 0) {
276
-            return (float) $nums[0] / (int) $nums[1];
275
+        if (( int ) $nums[1] > 0) {
276
+            return ( float ) $nums[0] / ( int ) $nums[1];
277 277
         } else {
278
-            return (float) $nums[0];
278
+            return ( float ) $nums[0];
279 279
         }
280 280
     }
281 281
 
Please login to merge, or discard this patch.
helper/search.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
         foreach ($adjacent as $adjHash) {
117 117
             if (is_array($this->spatial_idx)) {
118 118
                 foreach ($this->spatial_idx as $_geohash => $_docIds) {
119
-                    if (strpos($_geohash, (string) $adjHash) !== false) {
119
+                    if (strpos($_geohash, ( string ) $adjHash) !== false) {
120 120
                         // dbglog ( "Found adjacent geo hash: $adjHash in $_geohash" );
121 121
                         // if $adjHash similar to geohash
122 122
                         $docIds = array_merge($docIds, $_docIds);
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
                             $point
144 144
                         ]
145 145
                     );
146
-                    $media [] = ['id'       => $id, 'distance' => (int) ($line->greatCircleLength()), 'lat'      => $point->y(), 'lon'      => $point->x()];
146
+                    $media [] = ['id'       => $id, 'distance' => ( int ) ($line->greatCircleLength()), 'lat'      => $point->y(), 'lon'      => $point->x()];
147 147
                 }
148 148
             } elseif (auth_quickaclcheck($id) >= /*AUTH_READ*/ 1) {
149 149
                 $geotags  = p_get_metadata($id, 'geo');
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
                         $point
155 155
                     ]
156 156
                 );
157
-                $pages [] = ['id'          => $id, 'distance'    => (int) ($line->greatCircleLength()), 'description' => p_get_metadata($id, 'description')['abstract'], 'lat'         => $geotags ['lat'], 'lon'         => $geotags ['lon']];
157
+                $pages [] = ['id'          => $id, 'distance'    => ( int ) ($line->greatCircleLength()), 'description' => p_get_metadata($id, 'description')['abstract'], 'lat'         => $geotags ['lat'], 'lon'         => $geotags ['lon']];
158 158
             }
159 159
         }
160 160
 
Please login to merge, or discard this patch.
action.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -256,11 +256,11 @@
 block discarded – undo
256 256
      */
257 257
     private function printHTML(array $searchresults, bool $showMedia = true): void
258 258
     {
259
-        $pages = (array)($searchresults ['pages']);
260
-        $media = (array)$searchresults ['media'];
261
-        $lat = (float)$searchresults ['lat'];
262
-        $lon = (float)$searchresults ['lon'];
263
-        $geohash = (string)$searchresults ['geohash'];
259
+        $pages = ( array ) ($searchresults ['pages']);
260
+        $media = ( array ) $searchresults ['media'];
261
+        $lat = ( float ) $searchresults ['lat'];
262
+        $lon = ( float ) $searchresults ['lon'];
263
+        $geohash = ( string ) $searchresults ['geohash'];
264 264
 
265 265
         if (isset($searchresults ['error'])) {
266 266
             echo '<div class="level1"><p>' . hsc($searchresults ['error']) . '</p></div>';
Please login to merge, or discard this patch.