Passed
Push — master ( 76436f...0300fc )
by Jeferson
01:22
created
Developers/Log.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -81,12 +81,12 @@  discard block
 block discarded – undo
81 81
 
82 82
         //Predefined and standard text
83 83
         //Texto pré-definido e padrão
84
-        $this->text = "[LOG - ". date("d/m/Y H:i:s")."]
84
+        $this->text = "[LOG - " . date("d/m/Y H:i:s") . "]
85 85
         
86
-       URL: ".__DIR__."
87
-       IP: ".$_SERVER['REMOTE_ADDR']."
88
-       NAVEGADOR: ".$_SERVER['HTTP_USER_AGENT']."
89
-       PORTA: ".$_SERVER['REMOTE_PORT']."";
86
+       URL: ".__DIR__ . "
87
+       IP: ".$_SERVER['REMOTE_ADDR'] . "
88
+       NAVEGADOR: ".$_SERVER['HTTP_USER_AGENT'] . "
89
+       PORTA: ".$_SERVER['REMOTE_PORT'] . "";
90 90
 
91 91
         //We retrieve the data reported through the array
92 92
         //Resgatamos os dados informados através do array
@@ -108,16 +108,16 @@  discard block
 block discarded – undo
108 108
      * @param $folderDir
109 109
      * @param $text
110 110
      */
111
-    public function CreateFile($FolderDir, $text){
111
+    public function CreateFile($FolderDir, $text) {
112 112
 
113 113
         $this->CreateText();
114 114
 
115
-        $this->$FolderDir =  $FolderDir;
116
-        $this->text =  $text;
115
+        $this->$FolderDir = $FolderDir;
116
+        $this->text = $text;
117 117
 
118 118
         //Log File Creation
119 119
         //Criação de Arquivo para o Log
120
-        $file = $this->Name.'-' . date('Y-m-d') . '-'.time() .'.txt';
120
+        $file = $this->Name . '-' . date('Y-m-d') . '-' . time() . '.txt';
121 121
 
122 122
         $dir = $this->$FolderDir . $file;
123 123
         
@@ -138,10 +138,10 @@  discard block
 block discarded – undo
138 138
      * @param $Data
139 139
      * @return bool
140 140
      */
141
-    public function LogCreate($Name, $Status, $Data){
141
+    public function LogCreate($Name, $Status, $Data) {
142 142
         $this->Data = $Data;
143
-        $this->Status= $Status;
144
-        $this->Name= $Name;
143
+        $this->Status = $Status;
144
+        $this->Name = $Name;
145 145
 
146 146
         //We call the method to create the Log folder and subfolder, if it was not generated
147 147
         //Chamamos o método para criar a pasta Log e subpasta, se não foi gerado
@@ -158,16 +158,16 @@  discard block
 block discarded – undo
158 158
 
159 159
     }
160 160
 
161
-    public function CreateManual($FolderDir, $text){
161
+    public function CreateManual($FolderDir, $text) {
162 162
 
163
-        $this->$FolderDir =  $FolderDir;
164
-        $this->text =  $text;
163
+        $this->$FolderDir = $FolderDir;
164
+        $this->text = $text;
165 165
 
166 166
         $dir = $this->$FolderDir;
167 167
 
168 168
         //Log File Creation
169 169
         //Criação de Arquivo para o Log
170
-        $file = $this->Name.'-' . date('Y-m-d') . '-'.time() .'.txt';
170
+        $file = $this->Name . '-' . date('Y-m-d') . '-' . time() . '.txt';
171 171
 
172 172
         //We generate the file name and the content that will be printed on the file.
173 173
         //Geramos o nome do arquivo e o conteúdo do mesmo.
@@ -176,19 +176,19 @@  discard block
 block discarded – undo
176 176
         fclose($fopen);
177 177
     }
178 178
 
179
-    public function LogManual($Name, $Data){
180
-        $this->Data= $Data;
181
-        $this->Name= $Name;
179
+    public function LogManual($Name, $Data) {
180
+        $this->Data = $Data;
181
+        $this->Name = $Name;
182 182
 
183 183
         //We call the method to create the Log folder and subfolder, if it was not generated
184 184
         //Chamamos o método para criar a pasta Log e subpasta, se não foi gerado
185 185
         $this->CreateFolder();
186 186
 
187 187
         //Texto Pré-definido
188
-        $content = "[LOG - ". date("d/m/Y H:i:s")."]";
188
+        $content = "[LOG - " . date("d/m/Y H:i:s") . "]";
189 189
 
190 190
         //Texto personalizado e encaminhado via parâmetro.
191
-        $content.= "{$this->Data}";
191
+        $content .= "{$this->Data}";
192 192
 
193 193
         //We define the name of the folder and its subfolders.
194 194
         //Definimos o nome da pasta e suas subpastas.
Please login to merge, or discard this patch.