Completed
Push — master ( ccaea6...c0c6b3 )
by
unknown
02:43
created
Service/IzbergClient.php 3 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 
76 76
         try {
77 77
             return $request->send()->json();
78
-        } catch(BadResponseException $e) {
78
+        } catch (BadResponseException $e) {
79 79
             echo $e->getMessage();
80 80
             echo 'There is no object with this id:'.$id;
81 81
         }
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
         $className = (new \ReflectionClass($this))->getShortName();
103 103
         $apiNameCalled = str_replace('Izberg', '', $className);
104 104
 
105
-        switch($functionName) {
105
+        switch ($functionName) {
106 106
             case 'get'.$apiNameCalled.'s':
107 107
                 return $this->getObjects(static::$url);
108 108
                 break;
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,6 @@  discard block
 block discarded – undo
30 30
 
31 31
     /**
32 32
      * @param IzbergConnector $izbergConnector
33
-     * @param string $nameSpace
34 33
      */
35 34
     public function setIzbergConnector(IzbergConnector $izbergConnector)
36 35
     {
@@ -47,7 +46,7 @@  discard block
 block discarded – undo
47 46
     }
48 47
 
49 48
     /**
50
-     * @param string $namespace
49
+     * @param string $nameSpace
51 50
      */
52 51
     public function setNameSpace(string $nameSpace)
53 52
     {
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
      */
52 52
     public function setNameSpace(string $nameSpace)
53 53
     {
54
-       $this->nameSpace = $nameSpace;
54
+        $this->nameSpace = $nameSpace;
55 55
     }
56 56
 
57 57
     /**
Please login to merge, or discard this patch.
Service/IzbergConnector.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -109,8 +109,8 @@
 block discarded – undo
109 109
         $message_auth = hash_hmac('sha1', implode(";", $toCompose), $secretKey);
110 110
 
111 111
         $url = $this->izbergUrl;
112
-        $url .= 'first_name=' . urlencode($firstName) . '&last_name=' . urlencode($lastName) . '&message_auth=' . $message_auth . '&email=' . urlencode($email);
113
-        $url .= '&timestamp=' . $timestamp . '&is_staff=true';
112
+        $url .= 'first_name='.urlencode($firstName).'&last_name='.urlencode($lastName).'&message_auth='.$message_auth.'&email='.urlencode($email);
113
+        $url .= '&timestamp='.$timestamp.'&is_staff=true';
114 114
         return $url;
115 115
     }
116 116
 
Please login to merge, or discard this patch.