Passed
Push — feature/cache ( 84566e )
by Oguzhan
04:37
created
src/Service/Spotify/Endpoint/Album.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     /**
37 37
      * @param $apiService
38 38
      *
39
-     * @return mixed
39
+     * @return Album
40 40
      */
41 41
     public function setParent($apiService)
42 42
     {
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
     }
111 111
 
112 112
     /**
113
-     * @return mixed
113
+     * @return SpotifyService
114 114
      */
115 115
     public function getParent()
116 116
     {
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
     /**
157 157
      * @param $name
158 158
      *
159
-     * @return mixed
159
+     * @return ArrayCollection
160 160
      */
161 161
     public function getByName($name)
162 162
     {
Please login to merge, or discard this patch.
src/Service/Spotify/Endpoint/Track.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     }
32 32
 
33 33
     /**
34
-     * @param $apiService
34
+     * @param SpotifyService $apiService
35 35
      *
36 36
      * @return $this
37 37
      */
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
     /**
152 152
      * @param $name
153 153
      *
154
-     * @return mixed
154
+     * @return ArrayCollection
155 155
      */
156 156
     public function getByName($name)
157 157
     {
Please login to merge, or discard this patch.
src/Service/VocaDB/Endpoint/Artist.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -87,12 +87,12 @@  discard block
 block discarded – undo
87 87
         $cacheKey = substr(sprintf(
88 88
             '%s_get_%s',
89 89
             self::DATA_SOURCE,
90
-            preg_replace('~[A-Za-z0-9\.\_]~', '_',$name)
91
-        ),0,64);
90
+            preg_replace('~[A-Za-z0-9\.\_]~', '_', $name)
91
+        ), 0, 64);
92 92
 
93 93
         $cachedObject = $this->cache->getItem($cacheKey);
94 94
 
95
-        if(!$cachedObject->isHit()) {
95
+        if (!$cachedObject->isHit()) {
96 96
             $result = $this->transform(parent::getByName($name, $complete));
97 97
             $cachedObject->set($result);
98 98
         } else {
@@ -112,12 +112,12 @@  discard block
 block discarded – undo
112 112
         $cacheKey = substr(sprintf(
113 113
             '%s_transform_%s',
114 114
             self::DATA_SOURCE,
115
-            preg_replace('~[A-Za-z0-9\.\_]~', '_',$raw->getDefaultName())
116
-        ),0,64);
115
+            preg_replace('~[A-Za-z0-9\.\_]~', '_', $raw->getDefaultName())
116
+        ), 0, 64);
117 117
 
118 118
         $cachedObject = $this->cache->getItem($cacheKey);
119 119
 
120
-        if(!$cachedObject->isHit()) {
120
+        if (!$cachedObject->isHit()) {
121 121
             $object = new ArtistModel;
122 122
             $object
123 123
                 ->setId($raw->getId())
Please login to merge, or discard this patch.