Completed
Push — master ( 77d80e...7d4a42 )
by Desjardins
02:44
created
autoload.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,13 +16,13 @@  discard block
 block discarded – undo
16 16
  * @param string $class The fully-qualified class name.
17 17
  * @return void
18 18
  */
19
-spl_autoload_register(function ($class)
19
+spl_autoload_register(function($class)
20 20
 {
21 21
   // project-specific namespace prefix
22 22
   $prefix = 'TopMcFrance\\\Api\\';
23 23
 
24 24
   // base directory for the namespace prefix
25
-  $base_dir =  __DIR__ . '/src/';
25
+  $base_dir = __DIR__.'/src/';
26 26
 
27 27
   // does the class use the namespace prefix?
28 28
   $len = strlen($prefix);
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
   // replace the namespace prefix with the base directory, replace namespace
38 38
   // separators with directory separators in the relative class name, append
39 39
   // with .php
40
-  $file = $base_dir . str_replace('\\', '/', $relative_class) . '.php';
40
+  $file = $base_dir.str_replace('\\', '/', $relative_class).'.php';
41 41
 
42 42
   // if the file exists, require it
43 43
   if (file_exists($file)) {
Please login to merge, or discard this patch.
src/ApiException.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      * @param mixed $response
49 49
      * @return \self
50 50
      */
51
-    public static function alreadyUsed($code, $response){
51
+    public static function alreadyUsed($code, $response) {
52 52
         $exception = new self(sprintf('Code %s has already used at %s.',
53 53
             $code,
54 54
             $response->use_date
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
      * @param mixed $response
67 67
      * @return \self
68 68
      */
69
-    public static function invalidCode($code, $response){
69
+    public static function invalidCode($code, $response) {
70 70
         $exception = new self(sprintf('Code %s isn\'t valid.',
71 71
             $code
72 72
         ));
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
      * @param mixed $response
82 82
      * @return \self
83 83
      */
84
-    public static function unknowException($message, $response){
84
+    public static function unknowException($message, $response) {
85 85
         $exception = new self(sprintf('Unknow code error : %s.',
86 86
             $message
87 87
         ));
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
         return $exception;
92 92
     } 
93 93
     
94
-    private function baseException($response){
94
+    private function baseException($response) {
95 95
         $this->apiCodeError = $response->erreur;
96 96
         $this->apiMessage = $response->detail;
97 97
     }
Please login to merge, or discard this patch.
src/VoteChecker.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
      * @return string
58 58
      */
59 59
     protected function buildURI($code) {
60
-        return self::HOST_API . '?id_serv=' . $this->serverId . '&code=' . $code;
60
+        return self::HOST_API.'?id_serv='.$this->serverId.'&code='.$code;
61 61
     }
62 62
 
63 63
     /**
Please login to merge, or discard this patch.