Passed
Pull Request — master (#3)
by
unknown
01:53
created
src/TVDB.php 1 patch
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -212,27 +212,27 @@
 block discarded – undo
212 212
     }
213 213
 
214 214
     /**
215
-	 * Retrieves Updates From Minutes Ago (max 7 days in the past)
216
-	 *
217
-	 * @param integer $from_minutes_ago
218
-	 * @throws Exceptions\TVDBUnauthorizedException
219
-	 * @throws Exceptions\TVDBNotFoundException
220
-	 *
221
-	 * @return UpdateCollection
222
-	 */
223
-	public static function getUpdates($from_minutes_ago) {
224
-		$from_time = time() - ($from_minutes_ago * 60);
225
-		$response = self::request([
226
-			'method'    => 'GET',
227
-			'url'       => self::apiURL('/updated/query?fromTime=' . $from_time),
228
-			'auth'      => true,
229
-			'name'      => 'get_episode'
230
-		]);
231
-
232
-		if(!$response->isSuccessful()) $response->throwException();
233
-
234
-		return new Updates($response->json()->data);
235
-	}
215
+     * Retrieves Updates From Minutes Ago (max 7 days in the past)
216
+     *
217
+     * @param integer $from_minutes_ago
218
+     * @throws Exceptions\TVDBUnauthorizedException
219
+     * @throws Exceptions\TVDBNotFoundException
220
+     *
221
+     * @return UpdateCollection
222
+     */
223
+    public static function getUpdates($from_minutes_ago) {
224
+        $from_time = time() - ($from_minutes_ago * 60);
225
+        $response = self::request([
226
+            'method'    => 'GET',
227
+            'url'       => self::apiURL('/updated/query?fromTime=' . $from_time),
228
+            'auth'      => true,
229
+            'name'      => 'get_episode'
230
+        ]);
231
+
232
+        if(!$response->isSuccessful()) $response->throwException();
233
+
234
+        return new Updates($response->json()->data);
235
+    }
236 236
     
237 237
     /**
238 238
      * Returns a valid TVDB token to use for authentication
Please login to merge, or discard this patch.
src/Updates.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -6,12 +6,12 @@
 block discarded – undo
6 6
 
7 7
 class Updates
8 8
 {
9
-	public $updates = [];
9
+    public $updates = [];
10 10
 
11
-	public function __construct( $data )
12
-	{
13
-		foreach ( $data as $show_update ) {
14
-			$this->updates[ $show_update->id ] = Carbon::parse( $show_update->lastUpdated );
15
-		}
16
-	}
11
+    public function __construct( $data )
12
+    {
13
+        foreach ( $data as $show_update ) {
14
+            $this->updates[ $show_update->id ] = Carbon::parse( $show_update->lastUpdated );
15
+        }
16
+    }
17 17
 }
Please login to merge, or discard this patch.