x Sorry, these patches are not available anymore due to data migration. Please run a fresh inspection.
Completed
Push — master ( d1b2ba...1d1f81 )
by Ronaldo
08:10
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.
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -78,8 +78,8 @@  discard block
 block discarded – undo
78 78
 
79 79
 
80 80
     /**
81
-     * @param $key
82
-     * @param $value
81
+     * @param string $key
82
+     * @param integer $value
83 83
      */
84 84
     protected function setFieldDefault($key, $value)
85 85
     {
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 
89 89
 
90 90
     /**
91
-     * @param null $key
91
+     * @param string $key
92 92
      * @return array|bool
93 93
      */
94 94
     protected function getFieldDefault($key = null)
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 
116 116
 
117 117
     /**
118
-     * @param $id
118
+     * @param integer $id
119 119
      * @return object
120 120
      */
121 121
     public function find($id)
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.
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.