Completed
Branch master (554aca)
by Vincenzo
03:13 queued 29s
created
api/config/config1.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 return [
4
-	//Stuff
5
-	'stuff' => 1,
4
+    //Stuff
5
+    'stuff' => 1,
6 6
 ];
7 7
\ No newline at end of file
Please login to merge, or discard this patch.
api/Lib/Helpers/TextFormatter.php 2 patches
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -14,18 +14,18 @@
 block discarded – undo
14 14
      * @return float
15 15
      */
16 16
     public static function currencyStringToFloat($currencyString){
17
-		//currency is always in this format € 550
17
+        //currency is always in this format € 550
18 18
 
19
-		return floatval(
20
-			str_replace(
21
-				',',
22
-				'',
23
-				RegExp::getFirstMatch(
24
-					'/([+-]?[0-9]{1,3}(?:,?[0-9]{3})*(?:\.[0-9]{2})?)/',
25
-					$currencyString
26
-				)
27
-			)
28
-		);
29
-	}
19
+        return floatval(
20
+            str_replace(
21
+                ',',
22
+                '',
23
+                RegExp::getFirstMatch(
24
+                    '/([+-]?[0-9]{1,3}(?:,?[0-9]{3})*(?:\.[0-9]{2})?)/',
25
+                    $currencyString
26
+                )
27
+            )
28
+        );
29
+    }
30 30
 
31 31
 }
32 32
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      * @param $currencyString
14 14
      * @return float
15 15
      */
16
-    public static function currencyStringToFloat($currencyString){
16
+    public static function currencyStringToFloat($currencyString) {
17 17
 		//currency is always in this format € 550
18 18
 
19 19
 		return floatval(
Please login to merge, or discard this patch.
api/Lib/Helpers/Dom.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -20,12 +20,12 @@
 block discarded – undo
20 20
      * @return string
21 21
      */
22 22
     public static function getHtml($node) {
23
-		$innerHTML= '';
24
-		$children = $node->childNodes;
25
-		foreach ($children as $child) {
26
-			$innerHTML .= $child->ownerDocument->saveXML( $child );
27
-		}
28
-		return $innerHTML;
29
-	}
23
+        $innerHTML= '';
24
+        $children = $node->childNodes;
25
+        foreach ($children as $child) {
26
+            $innerHTML .= $child->ownerDocument->saveXML( $child );
27
+        }
28
+        return $innerHTML;
29
+    }
30 30
 
31 31
 }
32 32
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,10 +20,10 @@
 block discarded – undo
20 20
      * @return string
21 21
      */
22 22
     public static function getHtml($node) {
23
-		$innerHTML= '';
23
+		$innerHTML = '';
24 24
 		$children = $node->childNodes;
25 25
 		foreach ($children as $child) {
26
-			$innerHTML .= $child->ownerDocument->saveXML( $child );
26
+			$innerHTML .= $child->ownerDocument->saveXML($child);
27 27
 		}
28 28
 		return $innerHTML;
29 29
 	}
Please login to merge, or discard this patch.
api/Lib/Helpers/RegExp.php 2 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -21,11 +21,11 @@  discard block
 block discarded – undo
21 21
      * @return null
22 22
      */
23 23
     public static function getFirstMatch($regexp, $target)
24
-	{
25
-		preg_match_all($regexp, $target, $matches);
26
-		$match = array_key_exists(0,$matches[1]) ? $matches[1][0] : null;
27
-		return $match;
28
-	}
24
+    {
25
+        preg_match_all($regexp, $target, $matches);
26
+        $match = array_key_exists(0,$matches[1]) ? $matches[1][0] : null;
27
+        return $match;
28
+    }
29 29
 
30 30
     /**
31 31
      * @param $regexp
@@ -33,10 +33,10 @@  discard block
 block discarded – undo
33 33
      * @return null
34 34
      */
35 35
     public static function getAllMatch($regexp, $target)
36
-	{
37
-		$matches = null;
38
-		preg_match_all($regexp, $target, $matches);
39
-		return $matches;
40
-	}
36
+    {
37
+        $matches = null;
38
+        preg_match_all($regexp, $target, $matches);
39
+        return $matches;
40
+    }
41 41
 
42 42
 }
43 43
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
     public static function getFirstMatch($regexp, $target)
24 24
 	{
25 25
 		preg_match_all($regexp, $target, $matches);
26
-		$match = array_key_exists(0,$matches[1]) ? $matches[1][0] : null;
26
+		$match = array_key_exists(0, $matches[1]) ? $matches[1][0] : null;
27 27
 		return $match;
28 28
 	}
29 29
 
Please login to merge, or discard this patch.
api/database/migrations/CreateUsersTable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
     public function run()
14 14
     {
15 15
         Capsule::schema()->dropIfExists('users');
16
-        Capsule::schema()->create('users', function (Blueprint $table) {
16
+        Capsule::schema()->create('users', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->string('name');
19 19
             $table->string('surname');
Please login to merge, or discard this patch.
api/tests/ExampleTest.php 2 patches
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -7,25 +7,25 @@
 block discarded – undo
7 7
 class ExampleTest extends PHPUnit_Framework_TestCase
8 8
 {
9 9
 
10
-	/**
11
-	 *
12
-	 */
13
-	public function testIlluminateConnection()
14
-	{
15
-		Illuminate\Database\Capsule\Manager::schema()->create('test', function ($table) {
16
-			$table->increments('id');
17
-			$table->string('email')->unique();
18
-			$table->timestamps();
19
-		});
10
+    /**
11
+     *
12
+     */
13
+    public function testIlluminateConnection()
14
+    {
15
+        Illuminate\Database\Capsule\Manager::schema()->create('test', function ($table) {
16
+            $table->increments('id');
17
+            $table->string('email')->unique();
18
+            $table->timestamps();
19
+        });
20 20
 
21
-		\Illuminate\Database\Capsule\Manager::table('test')->insert(
22
-			[
23
-				'email' => '[email protected]'
24
-			]
25
-		);
21
+        \Illuminate\Database\Capsule\Manager::table('test')->insert(
22
+            [
23
+                'email' => '[email protected]'
24
+            ]
25
+        );
26 26
 
27
-		$test = \Illuminate\Database\Capsule\Manager::table('test')->first();
28
-		$this->assertNotEmpty($test);
29
-		\Illuminate\Database\Capsule\Manager::schema()->drop('test');
30
-	}
27
+        $test = \Illuminate\Database\Capsule\Manager::table('test')->first();
28
+        $this->assertNotEmpty($test);
29
+        \Illuminate\Database\Capsule\Manager::schema()->drop('test');
30
+    }
31 31
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 	 */
13 13
 	public function testIlluminateConnection()
14 14
 	{
15
-		Illuminate\Database\Capsule\Manager::schema()->create('test', function ($table) {
15
+		Illuminate\Database\Capsule\Manager::schema()->create('test', function($table) {
16 16
 			$table->increments('id');
17 17
 			$table->string('email')->unique();
18 18
 			$table->timestamps();
Please login to merge, or discard this patch.
api/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 $c = new \Slim\Container($configuration);
14 14
 $api = new \Slim\App($c);
15 15
 
16
-$api->get('/ping', function ($request, $response, $args) {
16
+$api->get('/ping', function($request, $response, $args) {
17 17
     $jsonResp = json_encode(
18 18
         [
19 19
             "status" => "service up",
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     return Responder::getJsonResponse($jsonResp, $response);
24 24
 });
25 25
 
26
-$api->get('/users', function ($response) {
26
+$api->get('/users', function($response) {
27 27
     return Responder::getJsonResponse(
28 28
         \App\Models\User::all(),
29 29
         $response
Please login to merge, or discard this patch.