Completed
Pull Request — master (#5)
by Mariano
05:09
created
src/RequestBuilder.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
      * using a requestParser.
59 59
      *
60 60
      * @param array|\stdClass $request   The request to convert to an object.
61
-     * @param string|array    $className The class of the object to which the request must be converted.
61
+     * @param string    $className The class of the object to which the request must be converted.
62 62
      * @param string          $behavior  The behaviour of the parser.
63 63
      */
64 64
     public function parseRequest(
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
      */
114 114
     private function getClassName($className, $isArray)
115 115
     {
116
-        return '' . $isArray ? $className[0] : $className;
116
+        return ''.$isArray ? $className[0] : $className;
117 117
     }
118 118
 
119 119
     /**
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
      */
125 125
     private function generateRequestParserObject($className, RequestParser $parser)
126 126
     {
127
-        $cacheKey = str_replace('\\', '', $className . get_class($parser));
127
+        $cacheKey = str_replace('\\', '', $className.get_class($parser));
128 128
         $cacheItem = $this->cache->getItem($cacheKey);
129 129
         $return = $cacheItem->get();
130 130
         if ($return === null) {
Please login to merge, or discard this patch.