Passed
Push — master ( b4f10c...f56dd8 )
by Kishan
02:09
created
zipper.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,8 +45,9 @@
 block discarded – undo
45 45
             foreach ($files as $file) {
46 46
                 $file = str_replace('\\', '/', $file);
47 47
                 // Ignore "." and ".." folders
48
-                if (in_array(substr($file, strrpos($file, '/') + 1), array('.', '..')))
49
-                    continue;
48
+                if (in_array(substr($file, strrpos($file, '/') + 1), array('.', '..'))) {
49
+                                    continue;
50
+                }
50 51
                 $file = realpath($file);
51 52
                 if (is_dir($file) === true) {
52 53
                     $a[] = array(
Please login to merge, or discard this patch.
login.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
  *
18 18
  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND
19 19
  */
20
-  require_once __DIR__ . "/config.php";
20
+    require_once __DIR__ . "/config.php";
21 21
 
22 22
 if (isset($_SESSION['accessToken'])) {
23 23
     header('Location: https://localhost:8443/SociaManager/index.php'); 
Please login to merge, or discard this patch.
google_drive/google_login.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
                     'data' => $fileContent, 'mimeType' => 'image/jpeg',
90 90
                     'uploadType' => 'multipart', 'fields' => 'id')
91 91
                 );
92
-            }catch (Exception $e) {
92
+            } catch (Exception $e) {
93 93
                 print "An error occurred: " . $e->getMessage();
94 94
             }
95 95
             $count++;
Please login to merge, or discard this patch.
download-album.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
 ) {
47 47
     $album_directory = $album_download_directory.$album_name;
48 48
     if (!file_exists($album_directory)) {
49
-         mkdir($album_directory, 0777);
49
+            mkdir($album_directory, 0777);
50 50
     }
51 51
 
52 52
     $request_albums_photo = $fb->get($album_id . "/photos?fields=images&limit=5", $accessToken);
Please login to merge, or discard this patch.
index.php 1 patch
Braces   +6 added lines, -1 removed lines patch added patch discarded remove patch
@@ -245,7 +245,12 @@
 block discarded – undo
245 245
     } 
246 246
     ?>
247 247
 
248
-    <div id="" class="g-access-token"><?php if ($google_access_token) echo "Hello"; else echo ""; ?></div>
248
+    <div id="" class="g-access-token"><?php if ($google_access_token) {
249
+    echo "Hello";
250
+} else {
251
+    echo "";
252
+}
253
+?></div>
249 254
 
250 255
     <!-- Footer -->
251 256
 
Please login to merge, or discard this patch.