Completed
Pull Request — master (#7)
by Siwapun
04:49 queued 03:16
created
test/GteTest.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -6,27 +6,27 @@
 block discarded – undo
6 6
 
7 7
 class GteTest extends TestCase
8 8
 {
9
-  public function testGteWithFirstArgIsLessThanSecondOne()
10
-  {
9
+    public function testGteWithFirstArgIsLessThanSecondOne()
10
+    {
11 11
     $firstArg = 1;
12 12
     $secondArg = 2;
13 13
     $actual = gte($firstArg)($secondArg);
14 14
     $this->assertFalse($actual);
15
-  }
15
+    }
16 16
 
17
-  public function testGteWithFirstArgIsEqualToSecondOne()
18
-  {
17
+    public function testGteWithFirstArgIsEqualToSecondOne()
18
+    {
19 19
     $firstArg = 2;
20 20
     $secondArg = 2;
21 21
     $actual = gte($firstArg)($secondArg);
22 22
     $this->assertTrue($actual);
23
-  }
23
+    }
24 24
 
25
-  public function testGteWithFirstArgIsGreaterThanSecondOne()
26
-  {
25
+    public function testGteWithFirstArgIsGreaterThanSecondOne()
26
+    {
27 27
     $firstArg = 3;
28 28
     $secondArg = 2;
29 29
     $actual = gte($firstArg)($secondArg);
30 30
     $this->assertTrue($actual);
31
-  }
31
+    }
32 32
 }
Please login to merge, or discard this patch.
test/GtTest.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -6,27 +6,27 @@
 block discarded – undo
6 6
 
7 7
 class GtTest extends TestCase
8 8
 {
9
-  public function testGtWithFirstArgIsLessThanSecondOne()
10
-  {
9
+    public function testGtWithFirstArgIsLessThanSecondOne()
10
+    {
11 11
     $firstArg = 1;
12 12
     $secondArg = 2;
13 13
     $actual = gt($firstArg)($secondArg);
14 14
     $this->assertFalse($actual);
15
-  }
15
+    }
16 16
 
17
-  public function testGtWithFirstArgIsEqualToSecondOne()
18
-  {
17
+    public function testGtWithFirstArgIsEqualToSecondOne()
18
+    {
19 19
     $firstArg = 2;
20 20
     $secondArg = 2;
21 21
     $actual = gt($firstArg)($secondArg);
22 22
     $this->assertFalse($actual);
23
-  }
23
+    }
24 24
 
25
-  public function testGtWithFirstArgIsGreaterThanSecondOne()
26
-  {
25
+    public function testGtWithFirstArgIsGreaterThanSecondOne()
26
+    {
27 27
     $firstArg = 3;
28 28
     $secondArg = 2;
29 29
     $actual = gt($firstArg)($secondArg);
30 30
     $this->assertTrue($actual);
31
-  }
31
+    }
32 32
 }
Please login to merge, or discard this patch.
test/LtTest.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -6,27 +6,27 @@
 block discarded – undo
6 6
 
7 7
 class LtTest extends TestCase
8 8
 {
9
-  public function testLtWithFirstArgIsLessThanSecondOne()
10
-  {
9
+    public function testLtWithFirstArgIsLessThanSecondOne()
10
+    {
11 11
     $firstArg = 1;
12 12
     $secondArg = 2;
13 13
     $actual = lt($firstArg)($secondArg);
14 14
     $this->assertTrue($actual);
15
-  }
15
+    }
16 16
 
17
-  public function testLtWithFirstArgIsEqualToSecondOne()
18
-  {
17
+    public function testLtWithFirstArgIsEqualToSecondOne()
18
+    {
19 19
     $firstArg = 2;
20 20
     $secondArg = 2;
21 21
     $actual = lt($firstArg)($secondArg);
22 22
     $this->assertFalse($actual);
23
-  }
23
+    }
24 24
 
25
-  public function testLtWithFirstArgIsGreaterThanSecondOne()
26
-  {
25
+    public function testLtWithFirstArgIsGreaterThanSecondOne()
26
+    {
27 27
     $firstArg = 3;
28 28
     $secondArg = 2;
29 29
     $actual = lt($firstArg)($secondArg);
30 30
     $this->assertFalse($actual);
31
-  }
31
+    }
32 32
 }
Please login to merge, or discard this patch.
test/LteTest.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -6,27 +6,27 @@
 block discarded – undo
6 6
 
7 7
 class LteTest extends TestCase
8 8
 {
9
-  public function testLteWithFirstArgIsLessThanSecondOne()
10
-  {
9
+    public function testLteWithFirstArgIsLessThanSecondOne()
10
+    {
11 11
     $firstArg = 1;
12 12
     $secondArg = 2;
13 13
     $actual = lte($firstArg)($secondArg);
14 14
     $this->assertTrue($actual);
15
-  }
15
+    }
16 16
 
17
-  public function testLteWithFirstArgIsEqualToSecondOne()
18
-  {
17
+    public function testLteWithFirstArgIsEqualToSecondOne()
18
+    {
19 19
     $firstArg = 2;
20 20
     $secondArg = 2;
21 21
     $actual = lte($firstArg)($secondArg);
22 22
     $this->assertTrue($actual);
23
-  }
23
+    }
24 24
 
25
-  public function testLteWithFirstArgIsGreaterThanSecondOne()
26
-  {
25
+    public function testLteWithFirstArgIsGreaterThanSecondOne()
26
+    {
27 27
     $firstArg = 3;
28 28
     $secondArg = 2;
29 29
     $actual = lte($firstArg)($secondArg);
30 30
     $this->assertFalse($actual);
31
-  }
31
+    }
32 32
 }
Please login to merge, or discard this patch.
src/relation.php 2 patches
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -8,50 +8,50 @@
 block discarded – undo
8 8
  */
9 9
 function equals()
10 10
 {
11
-  $equals = function ($a, $b) {
11
+    $equals = function ($a, $b) {
12 12
     return $a == $b;
13
-  };
14
-  $arguments = func_get_args();
15
-  $curried = curryN($equals, 2);
16
-  return call_user_func_array($curried, $arguments);
13
+    };
14
+    $arguments = func_get_args();
15
+    $curried = curryN($equals, 2);
16
+    return call_user_func_array($curried, $arguments);
17 17
 }
18 18
 
19 19
 function gt()
20 20
 {
21
-  $gt = function ($a, $b) {
21
+    $gt = function ($a, $b) {
22 22
     return $a > $b;
23
-  };
24
-  $arguments = func_get_args();
25
-  $curried = curryN($gt, 2);
26
-  return call_user_func_array($curried, $arguments);
23
+    };
24
+    $arguments = func_get_args();
25
+    $curried = curryN($gt, 2);
26
+    return call_user_func_array($curried, $arguments);
27 27
 }
28 28
 
29 29
 function gte()
30 30
 {
31
-  $gte = function ($a, $b) {
31
+    $gte = function ($a, $b) {
32 32
     return $a >= $b;
33
-  };
34
-  $arguments = func_get_args();
35
-  $curried = curryN($gte, 2);
36
-  return call_user_func_array($curried, $arguments);
33
+    };
34
+    $arguments = func_get_args();
35
+    $curried = curryN($gte, 2);
36
+    return call_user_func_array($curried, $arguments);
37 37
 }
38 38
 
39 39
 function lt()
40 40
 {
41
-  $lt = function ($a, $b) {
41
+    $lt = function ($a, $b) {
42 42
     return $a < $b;
43
-  };
44
-  $arguments = func_get_args();
45
-  $curried = curryN($lt, 2);
46
-  return call_user_func_array($curried, $arguments);
43
+    };
44
+    $arguments = func_get_args();
45
+    $curried = curryN($lt, 2);
46
+    return call_user_func_array($curried, $arguments);
47 47
 }
48 48
 
49 49
 function lte()
50 50
 {
51
-  $lte = function ($a, $b) {
51
+    $lte = function ($a, $b) {
52 52
     return $a <= $b;
53
-  };
54
-  $arguments = func_get_args();
55
-  $curried = curryN($lte, 2);
56
-  return call_user_func_array($curried, $arguments);
53
+    };
54
+    $arguments = func_get_args();
55
+    $curried = curryN($lte, 2);
56
+    return call_user_func_array($curried, $arguments);
57 57
 }
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
  */
9 9
 function equals()
10 10
 {
11
-  $equals = function ($a, $b) {
11
+  $equals = function($a, $b) {
12 12
     return $a == $b;
13 13
   };
14 14
   $arguments = func_get_args();
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 
19 19
 function gt()
20 20
 {
21
-  $gt = function ($a, $b) {
21
+  $gt = function($a, $b) {
22 22
     return $a > $b;
23 23
   };
24 24
   $arguments = func_get_args();
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 
29 29
 function gte()
30 30
 {
31
-  $gte = function ($a, $b) {
31
+  $gte = function($a, $b) {
32 32
     return $a >= $b;
33 33
   };
34 34
   $arguments = func_get_args();
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 
39 39
 function lt()
40 40
 {
41
-  $lt = function ($a, $b) {
41
+  $lt = function($a, $b) {
42 42
     return $a < $b;
43 43
   };
44 44
   $arguments = func_get_args();
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 
49 49
 function lte()
50 50
 {
51
-  $lte = function ($a, $b) {
51
+  $lte = function($a, $b) {
52 52
     return $a <= $b;
53 53
   };
54 54
   $arguments = func_get_args();
Please login to merge, or discard this patch.