Completed
Push — master ( 8f206a...fbe9b5 )
by Fernando
07:12 queued 29s
created
app/tests/HomePageTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 	/**
17 17
 	 * Test Introduction Page loads correctly
18 18
 	 *
19
-     */
19
+	 */
20 20
 	public function testIntroductionPage()
21 21
 	{
22 22
 		$page = $this->client->request('GET', '/4.1/introduction/');
Please login to merge, or discard this patch.
app/helpers/assets.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -7,17 +7,17 @@
 block discarded – undo
7 7
  * @return string
8 8
  */
9 9
 function asset_path($filename) {
10
-    $manifest_path = public_path().'/rev-manifest.json';
10
+	$manifest_path = public_path().'/rev-manifest.json';
11 11
 
12
-    if (file_exists($manifest_path)) {
13
-        $manifest = json_decode(file_get_contents($manifest_path), TRUE);
14
-    } else {
15
-        $manifest = [];
16
-    }
12
+	if (file_exists($manifest_path)) {
13
+		$manifest = json_decode(file_get_contents($manifest_path), TRUE);
14
+	} else {
15
+		$manifest = [];
16
+	}
17 17
 
18
-    if (array_key_exists($filename, $manifest)) {
19
-        return '/' . $manifest[$filename];
20
-    }
18
+	if (array_key_exists($filename, $manifest)) {
19
+		return '/' . $manifest[$filename];
20
+	}
21 21
 
22
-    return '/'. $filename;
22
+	return '/'. $filename;
23 23
 }
24 24
\ No newline at end of file
Please login to merge, or discard this patch.
app/controllers/HomeController.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,6 +5,6 @@
 block discarded – undo
5 5
 
6 6
 	public function getIndex()
7 7
 	{
8
-    return Redirect::secure(self::VERSION);
8
+	return Redirect::secure(self::VERSION);
9 9
 	}
10 10
 }
11 11
\ No newline at end of file
Please login to merge, or discard this patch.
app/controllers/Page.php 1 patch
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -4,31 +4,31 @@
 block discarded – undo
4 4
 
5 5
   public function getIndex($version, $id = 'installation')
6 6
   {
7
-    $supportedVersions = $this->getSupportedVersions();
7
+	$supportedVersions = $this->getSupportedVersions();
8 8
 
9
-    if(File::exists(base_path()."/docs/$version/$id.md")) {
10
-      $page_source = File::get(base_path()."/docs/$version/$id.md");
11
-      $pd = new ParsedownExtra();
12
-      $page = $this->replaceVersionPlaceholder($version, $pd->text($page_source));
13
-      $index = $this->replaceVersionPlaceholder($version, $pd->text(File::get(base_path()."/docs/$version/documentation.md")));
14
-    } else {
15
-      return Redirect::secure('/');
16
-    }
9
+	if(File::exists(base_path()."/docs/$version/$id.md")) {
10
+	  $page_source = File::get(base_path()."/docs/$version/$id.md");
11
+	  $pd = new ParsedownExtra();
12
+	  $page = $this->replaceVersionPlaceholder($version, $pd->text($page_source));
13
+	  $index = $this->replaceVersionPlaceholder($version, $pd->text(File::get(base_path()."/docs/$version/documentation.md")));
14
+	} else {
15
+	  return Redirect::secure('/');
16
+	}
17 17
 
18
-    return View::make('index', compact('index', 'page', 'version', 'supportedVersions'));
18
+	return View::make('index', compact('index', 'page', 'version', 'supportedVersions'));
19 19
   }
20 20
 
21 21
   private function replaceVersionPlaceholder($version, $content)
22 22
   {
23
-    return str_replace('{{version}}', $version, $content);
23
+	return str_replace('{{version}}', $version, $content);
24 24
   }
25 25
 
26 26
   private function getSupportedVersions()
27 27
   {
28
-    return [
29
-      '5.1' => '5.1',
30
-      '5.0' => '5.0',
31
-      '4.1' => '4.1'
32
-    ];
28
+	return [
29
+	  '5.1' => '5.1',
30
+	  '5.0' => '5.0',
31
+	  '4.1' => '4.1'
32
+	];
33 33
   }
34 34
 }
35 35
\ No newline at end of file
Please login to merge, or discard this patch.