Passed
Push — master ( 9da6a4...654ff8 )
by Kishan
02:21
created
download-album.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -43,17 +43,17 @@
 block discarded – undo
43 43
     $fb
44 44
 ) {
45 45
     $request_album_photos = $fb->get($album_id . "/photos?fields=source", $accessToken); //photos?fields=source
46
-    $album_photos=$request_album_photos->getGraphEdge()->asArray();
46
+    $album_photos = $request_album_photos->getGraphEdge()->asArray();
47 47
 
48
-    $album_directory = $album_download_directory.$album_name;
48
+    $album_directory = $album_download_directory . $album_name;
49 49
     if (!file_exists($album_directory)) {
50 50
             mkdir($album_directory, 0777);
51 51
     }
52 52
 
53 53
     $i = 1;
54
-    foreach ( $album_photos as $album_photo ) {
54
+    foreach ($album_photos as $album_photo) {
55 55
         file_put_contents(
56
-            $album_directory.'/'.$i.".jpg", 
56
+            $album_directory . '/' . $i . ".jpg", 
57 57
             fopen($album_photo['source'], 'r')
58 58
         );
59 59
         $i++;
Please login to merge, or discard this patch.