Completed
Branch master (29858e)
by Vitaly
06:18
created
src/instagram.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -85,9 +85,9 @@  discard block
 block discarded – undo
85 85
 
86 86
         if ($getInstaResult) return $results;
87 87
 
88
-        if (sizeof($results) && isset($results['data'])&& is_array($results['data']) && sizeof($results['data'])) {
88
+        if (sizeof($results) && isset($results['data']) && is_array($results['data']) && sizeof($results['data'])) {
89 89
             //Now parse through the $results array
90
-            foreach($results['data'] as $item) {
90
+            foreach ($results['data'] as $item) {
91 91
                 $return[] = $item['images'];
92 92
             }
93 93
         }
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
         $results = $this->listByTag($tag, true);
110 110
         // Create hmlt view list
111 111
         $count = 0;
112
-        if (sizeof($results) && isset($results['data'])&& is_array($results['data']) && sizeof($results['data'])) {
112
+        if (sizeof($results) && isset($results['data']) && is_array($results['data']) && sizeof($results['data'])) {
113 113
             foreach ($results['data'] as $item) {
114 114
                 $list .= $this->view($itemView)->link($item['link'])->img($item['images']['low_resolution']['url'])->output();
115 115
                 $count++;
Please login to merge, or discard this patch.
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -83,7 +83,9 @@  discard block
 block discarded – undo
83 83
         // lose Curl session
84 84
         curl_close($ch);
85 85
 
86
-        if ($getInstaResult) return $results;
86
+        if ($getInstaResult) {
87
+            return $results;
88
+        }
87 89
 
88 90
         if (sizeof($results) && isset($results['data'])&& is_array($results['data']) && sizeof($results['data'])) {
89 91
             //Now parse through the $results array
@@ -113,7 +115,9 @@  discard block
 block discarded – undo
113 115
             foreach ($results['data'] as $item) {
114 116
                 $list .= $this->view($itemView)->link($item['link'])->img($item['images']['low_resolution']['url'])->output();
115 117
                 $count++;
116
-                if ($count >= $limit) break;
118
+                if ($count >= $limit) {
119
+                    break;
120
+                }
117 121
             }
118 122
         }
119 123
 
Please login to merge, or discard this patch.