Completed
Pull Request — master (#6)
by Raphaël
01:51
created
src/CertainApiClient.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@
 block discarded – undo
121 121
         if(!is_null($ressourcePath)){
122 122
             $this->builPath = 'accounts/'.$this->getAccountCode().$ressourceAdded;
123 123
             return  $this->builPath;
124
-        }else{
124
+        } else{
125 125
             $this->builPath = $ressourceName.'/'.$this->getAccountCode().$ressourceAdded;
126 126
             return  $this->builPath;
127 127
         }
Please login to merge, or discard this patch.
src/Ressources/RegistrationCertain.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,8 +69,7 @@
 block discarded – undo
69 69
                         'registrationCode' => $registrationCertainResults->registrations[0]->registrationCode,
70 70
                         'attendeeTypeCode' => (isset($registrationCertainResults->registrations[0]->attendeeTypeCode))?$registrationCertainResults->registrations[0]->attendeeTypeCode:'',
71 71
                     ];
72
-            }
73
-            elseif($registrationCertainResults->size > 0 && $returnRegCode){
72
+            } elseif($registrationCertainResults->size > 0 && $returnRegCode){
74 73
                     return $registrationCertainResults->registrations[0]->registrationCode;
75 74
             } elseif($registrationCertainResults->size > 0  && !$returnRegCode){
76 75
                 return true;
Please login to merge, or discard this patch.
src/Response/CertainResponse.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
 
63 63
             if($contentType === 'json'){
64 64
                $response['results'] = $this->jsonp_decode($bodyString, $assoc);
65
-            }else{
65
+            } else{
66 66
                $response['results']=$bodyString;
67 67
             }
68 68
 
Please login to merge, or discard this patch.
src/Commands/DetectAppointmentsChangingCommand.php 1 patch
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
             if(!$appointmentsOldHistoryFilePath){
87 87
                 //No files so it's the first time we attempt to synchronize.
88 88
                 $appointmentsOld = [];
89
-            }else{
89
+            } else{
90 90
                 //Get the last old appointments data.
91 91
                 $appointmentsOldHistory = FileChangesHelper::getJsonContentFromFile($appointmentsOldHistoryFilePath);
92 92
                 $appointmentsOld = DetectAppointmentsChangingsService::recursiveArrayObjectToFullArray($appointmentsOldHistory);
@@ -98,14 +98,14 @@  discard block
 block discarded – undo
98 98
                 //Changes? So we save the new online appointments
99 99
                 FileChangesHelper::saveAppointmentsFileByHistory($this->dirPathHistoryAppointments.'/appointments_'.$eventCode.'.json',json_encode($appointmentsNew));
100 100
                 $output->writeln('Detect changes - Save Changes');
101
-            }else{
101
+            } else{
102 102
                 $output->writeln('Detect changes - No Changes');
103 103
             }
104 104
             foreach ($this->listeners as $listener){
105 105
                 //Run Listener. For instance,Here we can use ChangingsToFileListeners to save the changes in file.
106 106
                 $listener->run($eventCode,$listChangings);
107 107
             }
108
-        }else{
108
+        } else{
109 109
             $output->writeln('Detect changes - Stop.');
110 110
         }
111 111
     }
Please login to merge, or discard this patch.