Completed
Push — master ( 2a5ecd...2437ad )
by Ronaldo
07:19
created
src/Resources/BaseResource.php 3 patches
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,10 +2,10 @@
 block discarded – undo
2 2
 
3 3
 namespace WSW\LojaIntegrada\Resources;
4 4
 
5
-use WSW\LojaIntegrada\Credentials;
5
+use Cake\Validation\Validator;
6 6
 use WSW\LojaIntegrada\Client\Client;
7 7
 use WSW\LojaIntegrada\Client\LojaIntegradaException;
8
-use Cake\Validation\Validator;
8
+use WSW\LojaIntegrada\Credentials;
9 9
 
10 10
 /**
11 11
  * Class BaseResource
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -224,7 +224,7 @@
 block discarded – undo
224 224
         $outputErr = 'Some errors occurred:';
225 225
 
226 226
         foreach ($erros as $field => $message) {
227
-            $outputErr .= PHP_EOL . '[' . $field . '] ' . implode('', $message);
227
+            $outputErr .= PHP_EOL.'['.$field.'] '.implode('', $message);
228 228
         }
229 229
 
230 230
         throw new \InvalidArgumentException($outputErr);
Please login to merge, or discard this patch.
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -122,8 +122,8 @@  discard block
 block discarded – undo
122 122
 
123 123
 
124 124
     /**
125
-     * @param $key
126
-     * @param $value
125
+     * @param string $key
126
+     * @param integer $value
127 127
      */
128 128
     protected function setFieldDefault($key, $value)
129 129
     {
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 
133 133
 
134 134
     /**
135
-     * @param null $key
135
+     * @param string $key
136 136
      * @return array|bool
137 137
      */
138 138
     protected function getFieldDefault($key = null)
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
 
160 160
 
161 161
     /**
162
-     * @param $id
162
+     * @param integer $id
163 163
      * @return object
164 164
      */
165 165
     public function find($id)
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
     
191 191
 
192 192
     /**
193
-     * @param null $endpoint
193
+     * @param string $endpoint
194 194
      * @return object
195 195
      */
196 196
     protected function __find($endpoint = null)
Please login to merge, or discard this patch.
src/Environment.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
      */
29 29
     public function getWsUrl($resource)
30 30
     {
31
-        return 'https://' . $this->getWsHost() . $resource;
31
+        return 'https://'.$this->getWsHost().$resource;
32 32
     }
33 33
 
34 34
 
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
      */
39 39
     public function getUrl($resource)
40 40
     {
41
-        return 'https://' . $this->getHost() . $resource;
41
+        return 'https://'.$this->getHost().$resource;
42 42
     }
43 43
 
44 44
 
Please login to merge, or discard this patch.
src/Credentials.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
93 93
      */
94 94
     public function getWsUrl($resource, $params = false)
95 95
     {
96
-        $resource = '/' . ltrim($resource, '/');
96
+        $resource = '/'.ltrim($resource, '/');
97 97
 
98 98
         if ($params && !empty($params)) {
99 99
             return sprintf(
Please login to merge, or discard this patch.
src/Resources/Image.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace WSW\LojaIntegrada\Resources;
4 4
 
5
-use WSW\LojaIntegrada\Resources\BaseResource;
6 5
 use WSW\LojaIntegrada\Client\LojaIntegradaException;
6
+use WSW\LojaIntegrada\Resources\BaseResource;
7 7
 
8 8
 /**
9 9
  * Class Image
Please login to merge, or discard this patch.