Completed
Push — develop ( e66bf4...bd65fa )
by Dan
31:22 queued 11:28
created
src/Util/Debug.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -30,6 +30,7 @@
 block discarded – undo
30 30
     );
31 31
 
32 32
     /**
33
+     * @param \Axstrad\Common\Tests\Util\DebugUtilTest $var
33 34
      */
34 35
     public static function dump($var, $maxDepth = 2, $stripTags = true)
35 36
     {
Please login to merge, or discard this patch.
tests/Util/DebugUtilTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@
 block discarded – undo
109 109
 
110 110
     public function testDumpResetsXdebugVarDisplayMaxDepthSettingToOriginal()
111 111
     {
112
-        if (!extension_loaded('xdebug')) {
112
+        if ( ! extension_loaded('xdebug')) {
113 113
             $this->markTestSkipped('XDebug extension is not loaded/installed');
114 114
         }
115 115
 
Please login to merge, or discard this patch.
tests/Util/ArrayUtil/MergeRecursiveDistinctTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
     {
64 64
         $assertion = array();
65 65
         $arguments = array();
66
-        for ($x=1; $x<=100; $x++) {
66
+        for ($x = 1; $x <= 100; $x++) {
67 67
             $arguments[] = array('test '.$x);
68 68
             $assertion[] = 'test '.$x;
69 69
         }
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 
110 110
         $this->assertEquals(
111 111
             array(
112
-                'replace'=>array('one','two'),
112
+                'replace'=>array('one', 'two'),
113 113
             ),
114 114
             ArrayUtil::mergeRecursiveDistinct($array1, $array2)
115 115
         );
Please login to merge, or discard this patch.
tests/Util/ArrayUtil/GetValueTest.php 1 patch
Indentation   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -24,45 +24,45 @@
 block discarded – undo
24 24
  */
25 25
 class GetValueTest extends \PHPUnit_Framework_TestCase
26 26
 {
27
-	/**
28
-	 */
29
-	public function testReturnsValueFromKey()
30
-	{
31
-		$key = 'foo';
32
-		$array = array($key => 'bar');
33
-		$this->assertEquals(
34
-			$array[$key],
35
-			ArrayUtil::get($key, $array)
36
-		);
37
-	}
27
+    /**
28
+     */
29
+    public function testReturnsValueFromKey()
30
+    {
31
+        $key = 'foo';
32
+        $array = array($key => 'bar');
33
+        $this->assertEquals(
34
+            $array[$key],
35
+            ArrayUtil::get($key, $array)
36
+        );
37
+    }
38 38
 
39
-	/**
40
-	 * @depends Axstrad\Common\Tests\Util\ArrayUtil\DecompilePathTest::testCanParseDotNotation
41
-	 */
42
-	public function testReturnsValueByPath()
43
-	{
44
-		$array = array('one' => array('two'=>'three'));
45
-		$this->assertEquals(
46
-			'three',
47
-			ArrayUtil::get('one.two', $array)
48
-		);
49
-	}
39
+    /**
40
+     * @depends Axstrad\Common\Tests\Util\ArrayUtil\DecompilePathTest::testCanParseDotNotation
41
+     */
42
+    public function testReturnsValueByPath()
43
+    {
44
+        $array = array('one' => array('two'=>'three'));
45
+        $this->assertEquals(
46
+            'three',
47
+            ArrayUtil::get('one.two', $array)
48
+        );
49
+    }
50 50
 
51
-	/**
52
-	 */
53
-	public function testReturnsNullWhenKeyDoesntExist()
54
-	{
55
-		$this->assertNull(
56
-			ArrayUtil::get('one', array('foo'=>'bar'))
57
-		);
58
-	}
51
+    /**
52
+     */
53
+    public function testReturnsNullWhenKeyDoesntExist()
54
+    {
55
+        $this->assertNull(
56
+            ArrayUtil::get('one', array('foo'=>'bar'))
57
+        );
58
+    }
59 59
 
60
-	/**
61
-	 */
62
-	public function testReturnsDefaultValueWhenKeyDoesntExist()
63
-	{
64
-		$this->assertFalse(
65
-			ArrayUtil::get('one', array('foo'=>'bar'), false)
66
-		);
67
-	}
60
+    /**
61
+     */
62
+    public function testReturnsDefaultValueWhenKeyDoesntExist()
63
+    {
64
+        $this->assertFalse(
65
+            ArrayUtil::get('one', array('foo'=>'bar'), false)
66
+        );
67
+    }
68 68
 }
Please login to merge, or discard this patch.
tests/Util/ArrayUtil/DecompilePathTest.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -26,33 +26,33 @@
 block discarded – undo
26 26
 {
27 27
     /**
28 28
      */
29
-	public function testCanParseDotNotation()
30
-	{
31
-		$this->assertEquals(array('one', 'two', 'three'), ArrayUtil::decompilePath('one.two.three'));
32
-	}
29
+    public function testCanParseDotNotation()
30
+    {
31
+        $this->assertEquals(array('one', 'two', 'three'), ArrayUtil::decompilePath('one.two.three'));
32
+    }
33 33
 
34 34
     /**
35 35
      */
36
-	public function testCanParseArrayNotation()
37
-	{
38
-		$this->assertEquals(array('one', 'two', 'three'), ArrayUtil::decompilePath('[one][two][three]'));
39
-	}
36
+    public function testCanParseArrayNotation()
37
+    {
38
+        $this->assertEquals(array('one', 'two', 'three'), ArrayUtil::decompilePath('[one][two][three]'));
39
+    }
40 40
 
41 41
     /**
42 42
      */
43
-	public function testCanParseArrayNotation2()
44
-	{
45
-		$this->assertEquals(array('one', 'two', 'three'), ArrayUtil::decompilePath('one[two][three]'));
46
-	}
43
+    public function testCanParseArrayNotation2()
44
+    {
45
+        $this->assertEquals(array('one', 'two', 'three'), ArrayUtil::decompilePath('one[two][three]'));
46
+    }
47 47
 
48 48
     /**
49 49
      * @uses Axstrad\Common\Util\Debug
50 50
      * @uses Axstrad\Common\Exception\InvalidArgumentException::create
51 51
      */
52
-	public function testExpectException()
53
-	{
54
-		$this->setExpectedException('Axstrad\Common\Exception\InvalidArgumentException');
52
+    public function testExpectException()
53
+    {
54
+        $this->setExpectedException('Axstrad\Common\Exception\InvalidArgumentException');
55 55
 
56
-		ArrayUtil::decompilePath(new \StdClass);
57
-	}
56
+        ArrayUtil::decompilePath(new \StdClass);
57
+    }
58 58
 }
Please login to merge, or discard this patch.
tests/Util/ArrayUtil/IsAssociativeTest.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -51,14 +51,14 @@
 block discarded – undo
51 51
 
52 52
     /**
53 53
      */
54
-	public function testReturnsFalseForNumericallyIndexedArray()
55
-	{
56
-		$this->assertFalse(
57
-			ArrayUtil::isAssociative(array(
58
-				1 => 'one',
59
-				2 => 'two',
60
-				3 => 'three',
61
-			))
62
-		);
63
-	}
54
+    public function testReturnsFalseForNumericallyIndexedArray()
55
+    {
56
+        $this->assertFalse(
57
+            ArrayUtil::isAssociative(array(
58
+                1 => 'one',
59
+                2 => 'two',
60
+                3 => 'three',
61
+            ))
62
+        );
63
+    }
64 64
 }
Please login to merge, or discard this patch.