Completed
Push — master ( a04aa9...a7d02a )
by Ivannis Suárez
02:48
created
Tests/Units/CompositeTests.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,10 +61,10 @@
 block discarded – undo
61 61
             ->then()
62 62
                 ->string($composite->apply(array('foo' => (object) array('bar' => 'baz'))))
63 63
                     ->isEqualTo('baz')
64
-                ->exception(function () use ($composite) {
64
+                ->exception(function() use ($composite) {
65 65
                     $composite->apply(array('foo' => null));
66 66
                 })->isInstanceOf(\RuntimeException::class)
67
-                ->exception(function () use ($composite) {
67
+                ->exception(function() use ($composite) {
68 68
                     $composite->apply(array('foo' => (object) array()));
69 69
                 })->isInstanceOf(\RuntimeException::class)
70 70
         ;
Please login to merge, or discard this patch.
Tests/Units/PropertyTests.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,10 +37,10 @@
 block discarded – undo
37 37
             ->then()
38 38
                 ->string($property->apply((object) array('foo' => 'bar')))
39 39
                     ->isEqualTo('bar')
40
-                ->exception(function () use ($property) {
40
+                ->exception(function() use ($property) {
41 41
                     $property->apply(null);
42 42
                 })->isInstanceOf(\RuntimeException::class)
43
-                ->exception(function () use ($property) {
43
+                ->exception(function() use ($property) {
44 44
                     $property->apply((object) array());
45 45
                 })->isInstanceOf(\RuntimeException::class)
46 46
         ;
Please login to merge, or discard this patch.
Tests/Units/MethodTests.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -79,10 +79,10 @@  discard block
 block discarded – undo
79 79
         $this
80 80
             ->given($method = $this->newTestedInstance('foo'))
81 81
             ->then()
82
-                ->exception(function () use ($method) {
82
+                ->exception(function() use ($method) {
83 83
                     $method->apply(null);
84 84
                 })->isInstanceOf(\RuntimeException::class)
85
-                ->exception(function () use ($method) {
85
+                ->exception(function() use ($method) {
86 86
                     $method->apply($this);
87 87
                 })->isInstanceOf(\RuntimeException::class)
88 88
         ;
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
         $this
91 91
             ->given($method = $this->newTestedInstance('privateMethod'))
92 92
             ->then()
93
-                ->exception(function () use ($method) {
93
+                ->exception(function() use ($method) {
94 94
                     $method->apply($this);
95 95
                 })->isInstanceOf(\RuntimeException::class)
96 96
         ;
Please login to merge, or discard this patch.
Tests/Units/CustomTests.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
      */
26 26
     public function newDefaultTestedInstance()
27 27
     {
28
-        return $this->newTestedInstance(function ($value) {
28
+        return $this->newTestedInstance(function($value) {
29 29
             return $value + 1;
30 30
         });
31 31
     }
Please login to merge, or discard this patch.
Tests/Units/SelectorFactoryInterfaceTestCase.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
         ;
52 52
 
53 53
         $this
54
-            ->exception(function () use ($factory) {
54
+            ->exception(function() use ($factory) {
55 55
                 $factory->addNamespace(null);
56 56
             })
57 57
             ->isInstanceOf(\InvalidArgumentException::class)
@@ -87,21 +87,21 @@  discard block
 block discarded – undo
87 87
         ;
88 88
 
89 89
         $this
90
-            ->exception(function () use ($factory) {
90
+            ->exception(function() use ($factory) {
91 91
                 $factory->addSelector(Key::class);
92 92
             })
93 93
             ->isInstanceOf(\InvalidArgumentException::class)
94 94
         ;
95 95
 
96 96
         $this
97
-            ->exception(function () use ($factory) {
97
+            ->exception(function() use ($factory) {
98 98
                 $factory->addSelector('foo');
99 99
             })
100 100
             ->isInstanceOf(\InvalidArgumentException::class)
101 101
         ;
102 102
 
103 103
         $this
104
-            ->exception(function () use ($factory) {
104
+            ->exception(function() use ($factory) {
105 105
                 $factory->addSelector(SelectorFactory::class);
106 106
             })
107 107
             ->isInstanceOf(\InvalidArgumentException::class)
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
         $this
117 117
             /* @var \Cubiche\Core\Selector\SelectorFactoryInterface $factory */
118 118
             ->given($factory = $this->newDefaultTestedInstance())
119
-            ->exception(function () use ($factory) {
119
+            ->exception(function() use ($factory) {
120 120
                 $factory->addNamespace('foo');
121 121
                 $factory->create('count');
122 122
             })
Please login to merge, or discard this patch.
Selectors.php 1 patch
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
      * @param string $method
88 88
      * @param array  $arguments
89 89
      *
90
-     * @return mixed
90
+     * @return Selectors
91 91
      */
92 92
     public static function __callStatic($method, $arguments)
93 93
     {
@@ -96,9 +96,8 @@  discard block
 block discarded – undo
96 96
 
97 97
     /**
98 98
      * @param string $method
99
-     * @param array  $args
100 99
      *
101
-     * @return mixed
100
+     * @return SelectorInterface
102 101
      */
103 102
     public function __call($method, $arguments)
104 103
     {
Please login to merge, or discard this patch.
Tests/Units/SelectorsTests.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
         $this
69 69
             /* @var \Cubiche\Core\Selector\Selectors $builder */
70 70
             ->given($factory = $this->newMockInstance(SelectorFactoryInterface::class))
71
-            ->when(function () use ($factory) {
71
+            ->when(function() use ($factory) {
72 72
                 Selectors::setFactory($factory);
73 73
                 Selectors::addSelector('foo', 'bar');
74 74
             })
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
         $this
89 89
             /* @var \Cubiche\Core\Selector\Selectors $builder */
90 90
             ->given($factory = $this->newMockInstance(SelectorFactoryInterface::class))
91
-            ->when(function () use ($factory) {
91
+            ->when(function() use ($factory) {
92 92
                 Selectors::setFactory($factory);
93 93
                 Selectors::addNamespace('foo');
94 94
             })
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
             array(Selectors::key('foo'), Key::class),
139 139
             array(Selectors::property('foo'), Property::class),
140 140
             array(Selectors::method('foo'), Method::class),
141
-            array(Selectors::custom(function () {
141
+            array(Selectors::custom(function() {
142 142
 
143 143
             }), Custom::class),
144 144
             array(Selectors::count(), Count::class),
Please login to merge, or discard this patch.