Completed
Pull Request — master (#81)
by Greg
02:13
created
src/AnnotatedCommandFactory.php 2 patches
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
      * store that does not itself depend on the annotated-command library.
223 223
      *
224 224
      * @param Mixed $dataStore
225
-     * @return type
225
+     * @return AnnotatedCommandFactory
226 226
      */
227 227
     public function setDataStore($dataStore)
228 228
     {
@@ -362,6 +362,10 @@  discard block
 block discarded – undo
362 362
         }
363 363
     }
364 364
 
365
+    /**
366
+     * @param string $string
367
+     * @param integer $n
368
+     */
365 369
     protected function getNthWord($string, $n, $default = '', $delimiter = ' ')
366 370
     {
367 371
         $words = explode($delimiter, $string);
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
         // can never be commands.
249 249
         $commandMethodNames = array_filter(
250 250
             get_class_methods($classNameOrInstance) ?: [],
251
-            function ($m) {
251
+            function($m) {
252 252
                 return !preg_match('#^_#', $m);
253 253
             }
254 254
         );
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
         return $this->createSelectedCommandsFromClassInfo(
275 275
             $commandInfoList,
276 276
             $commandFileInstance,
277
-            function ($commandInfo) use ($includeAllPublicMethods) {
277
+            function($commandInfo) use ($includeAllPublicMethods) {
278 278
                 return static::isCommandMethod($commandInfo, $includeAllPublicMethods);
279 279
             }
280 280
         );
Please login to merge, or discard this patch.
src/Cache/CacheWrapper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
      */
35 35
     public function get($key)
36 36
     {
37
-        return (array) $this->dataStore->get($key);
37
+        return (array)$this->dataStore->get($key);
38 38
     }
39 39
 
40 40
     /**
Please login to merge, or discard this patch.