Passed
Branch master (2530fd)
by Kazi Mainuddin
03:16
created
src/Helpers/Request.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -25,13 +25,13 @@
 block discarded – undo
25 25
 		$request = curl_init($url);
26 26
 
27 27
 		$default_options = [
28
-           CURLOPT_FAILONERROR    => true,
29
-           CURLOPT_FOLLOWLOCATION => true,
30
-           CURLOPT_RETURNTRANSFER => true,
31
-           CURLOPT_TIMEOUT        => 15,
32
-           CURLOPT_SSL_VERIFYPEER => 0,
33
-           CURLINFO_HEADER_OUT    => true
34
-       ] + $options;
28
+		   CURLOPT_FAILONERROR    => true,
29
+		   CURLOPT_FOLLOWLOCATION => true,
30
+		   CURLOPT_RETURNTRANSFER => true,
31
+		   CURLOPT_TIMEOUT        => 15,
32
+		   CURLOPT_SSL_VERIFYPEER => 0,
33
+		   CURLINFO_HEADER_OUT    => true
34
+	   ] + $options;
35 35
 
36 36
 		curl_setopt_array($request, $default_options);
37 37
 
Please login to merge, or discard this patch.
src/Provider/ScrapePodServiceProvider.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -9,18 +9,18 @@
 block discarded – undo
9 9
 	/**
10 10
 	 * @return void
11 11
 	 */
12
-    public function boot()
13
-    {
14
-	    $this->app->singleton('tzsk-scrape-pod', function() {
15
-		    return new ScrapePodcast();
16
-	    });
17
-    }
12
+	public function boot()
13
+	{
14
+		$this->app->singleton('tzsk-scrape-pod', function() {
15
+			return new ScrapePodcast();
16
+		});
17
+	}
18 18
 
19 19
 	/**
20 20
 	 * @return void
21 21
 	 */
22
-    public function register()
23
-    {
24
-        //
25
-    }
22
+	public function register()
23
+	{
24
+		//
25
+	}
26 26
 }
27 27
\ No newline at end of file
Please login to merge, or discard this patch.
src/Vendors/AbstractVendor.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 	protected function getEpisodes($channel)
39 39
 	{
40 40
 		$items = [];
41
-		foreach($channel->item as $value) {
41
+		foreach ($channel->item as $value) {
42 42
 			$items[] = [
43 43
 				'title'        => (string) $value->title,
44 44
 				'mp3'          => isset($value->enclosure) ? (string) $value->enclosure->attributes()->url : null,
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 				'duration'     => $this->getEpisodeDuration($value),
47 47
 				'description'  => (string) $value->description,
48 48
 				'link'         => (string) $value->link,
49
-				'image'        => $this->getEpisodeImage($value) ? : (string) $channel->image->url,
49
+				'image'        => $this->getEpisodeImage($value) ?: (string) $channel->image->url,
50 50
 				'published_at' => $this->getPublishedDate($value),
51 51
 			];
52 52
 		}
@@ -120,10 +120,10 @@  discard block
 block discarded – undo
120 120
 		$categories = $channel->xpath('itunes:category');
121 121
 
122 122
 		$items = [];
123
-		foreach ( $categories as $category ) {
123
+		foreach ($categories as $category) {
124 124
 			$item = ['title' => (string) $category->attributes()->text, 'children' => []];
125 125
 
126
-			if (! empty($category->xpath('itunes:category'))) {
126
+			if (!empty($category->xpath('itunes:category'))) {
127 127
 				$inner = $this->fetchCategories($category);
128 128
 
129 129
 				$item['children'] = $inner;
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
 
70 70
 	/**
71 71
 	 * @param SimpleXMLElement|mixed $item
72
-	 * @param $path string
72
+	 * @param string $path string
73 73
 	 *
74 74
 	 * @return string
75 75
 	 */
Please login to merge, or discard this patch.
src/Vendors/DigitalPodcast.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
92 92
 
93 93
 		$output['result_count'] = count($xml->item);
94 94
 
95
-		foreach($xml->item as $value) {
95
+		foreach ($xml->item as $value) {
96 96
 			$output['results'][] = [
97 97
 				'title' => (string) $value->title,
98 98
 				'rss'   => (string) $value->source,
Please login to merge, or discard this patch.
src/Vendors/Itunes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
93 93
 		$response = json_decode($response['search']);
94 94
 		$output['result_count'] = $response->resultCount;
95 95
 
96
-		foreach($response->results as $value) {
96
+		foreach ($response->results as $value) {
97 97
 			$output['results'][] = [
98 98
 				'itunes_id' => $value->collectionId,
99 99
 				'author'    => $value->artistName,
Please login to merge, or discard this patch.