Completed
Push — master ( c5bd76...a04aa9 )
by Ivannis Suárez
04:38
created
Selectors.php 1 patch
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
      * @param string $method
86 86
      * @param array  $arguments
87 87
      *
88
-     * @return mixed
88
+     * @return Selectors
89 89
      */
90 90
     public static function __callStatic($method, $arguments)
91 91
     {
@@ -94,9 +94,8 @@  discard block
 block discarded – undo
94 94
 
95 95
     /**
96 96
      * @param string $method
97
-     * @param array  $args
98 97
      *
99
-     * @return mixed
98
+     * @return Selectors
100 99
      */
101 100
     public function __call($method, $arguments)
102 101
     {
Please login to merge, or discard this patch.
Tests/Units/SelectorsTests.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
         $this
79 79
             /* @var \Cubiche\Core\Selector\Selectors $builder */
80 80
             ->given($factory = $this->newMockInstance(SelectorFactoryInterface::class))
81
-            ->when(function () use ($factory) {
81
+            ->when(function() use ($factory) {
82 82
                 Selectors::setFactory($factory);
83 83
                 Selectors::addSelector('foo', 'bar');
84 84
             })
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
         $this
99 99
             /* @var \Cubiche\Core\Selector\Selectors $builder */
100 100
             ->given($factory = $this->newMockInstance(SelectorFactoryInterface::class))
101
-            ->when(function () use ($factory) {
101
+            ->when(function() use ($factory) {
102 102
                 Selectors::setFactory($factory);
103 103
                 Selectors::addNamespace('foo');
104 104
             })
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
             )
137 137
             ->calling($visitorMock)
138 138
                 ->methods(
139
-                    function ($method) use ($shouldVisitMethod) {
139
+                    function($method) use ($shouldVisitMethod) {
140 140
                         return $method === \strtolower($shouldVisitMethod);
141 141
                     }
142 142
                 )
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
             array(Selectors::key('foo'), Key::class),
182 182
             array(Selectors::property('foo'), Property::class),
183 183
             array(Selectors::method('foo'), Method::class),
184
-            array(Selectors::custom(function () {
184
+            array(Selectors::custom(function() {
185 185
 
186 186
             }), Custom::class),
187 187
             array(Selectors::count(), Count::class),
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.