Passed
Push — teampass_3.0 ( 2c08f5...ae6be7 )
by Nils
04:47
created
sources/main.functions.php 1 patch
Indentation   +61 added lines, -61 removed lines patch added patch discarded remove patch
@@ -133,21 +133,21 @@  discard block
 block discarded – undo
133 133
 
134 134
     // Check if class already exists
135 135
     if (!class_exists('Defuse\Crypto\Crypto', false)) {
136
-		include_once $path . 'Exception/CryptoException.php';
137
-		include_once $path . 'Exception/BadFormatException.php';
138
-		include_once $path . 'Exception/EnvironmentIsBrokenException.php';
139
-		include_once $path . 'Exception/IOException.php';
140
-		include_once $path . 'Exception/WrongKeyOrModifiedCiphertextException.php';
141
-		include_once $path . 'Crypto.php';
142
-		include_once $path . 'Encoding.php';
143
-		include_once $path . 'DerivedKeys.php';
144
-		include_once $path . 'Key.php';
145
-		include_once $path . 'KeyOrPassword.php';
146
-		include_once $path . 'File.php';
147
-		include_once $path . 'RuntimeTests.php';
148
-		include_once $path . 'KeyProtectedByPassword.php';
149
-		include_once $path . 'Core.php';
150
-	}
136
+        include_once $path . 'Exception/CryptoException.php';
137
+        include_once $path . 'Exception/BadFormatException.php';
138
+        include_once $path . 'Exception/EnvironmentIsBrokenException.php';
139
+        include_once $path . 'Exception/IOException.php';
140
+        include_once $path . 'Exception/WrongKeyOrModifiedCiphertextException.php';
141
+        include_once $path . 'Crypto.php';
142
+        include_once $path . 'Encoding.php';
143
+        include_once $path . 'DerivedKeys.php';
144
+        include_once $path . 'Key.php';
145
+        include_once $path . 'KeyOrPassword.php';
146
+        include_once $path . 'File.php';
147
+        include_once $path . 'RuntimeTests.php';
148
+        include_once $path . 'KeyProtectedByPassword.php';
149
+        include_once $path . 'Core.php';
150
+    }
151 151
     
152 152
     // convert KEY
153 153
     $key = \Defuse\Crypto\Key::loadFromAsciiSafeString($ascii_key);
@@ -194,21 +194,21 @@  discard block
 block discarded – undo
194 194
 
195 195
     // Check if class already exists
196 196
     if (!class_exists('Defuse\Crypto\Crypto', false)) {
197
-		include_once $path . 'Exception/CryptoException.php';
198
-		include_once $path . 'Exception/BadFormatException.php';
199
-		include_once $path . 'Exception/EnvironmentIsBrokenException.php';
200
-		include_once $path . 'Exception/IOException.php';
201
-		include_once $path . 'Exception/WrongKeyOrModifiedCiphertextException.php';
202
-		include_once $path . 'Crypto.php';
203
-		include_once $path . 'Encoding.php';
204
-		include_once $path . 'DerivedKeys.php';
205
-		include_once $path . 'Key.php';
206
-		include_once $path . 'KeyOrPassword.php';
207
-		include_once $path . 'File.php';
208
-		include_once $path . 'RuntimeTests.php';
209
-		include_once $path . 'KeyProtectedByPassword.php';
210
-		include_once $path . 'Core.php';
211
-	}
197
+        include_once $path . 'Exception/CryptoException.php';
198
+        include_once $path . 'Exception/BadFormatException.php';
199
+        include_once $path . 'Exception/EnvironmentIsBrokenException.php';
200
+        include_once $path . 'Exception/IOException.php';
201
+        include_once $path . 'Exception/WrongKeyOrModifiedCiphertextException.php';
202
+        include_once $path . 'Crypto.php';
203
+        include_once $path . 'Encoding.php';
204
+        include_once $path . 'DerivedKeys.php';
205
+        include_once $path . 'Key.php';
206
+        include_once $path . 'KeyOrPassword.php';
207
+        include_once $path . 'File.php';
208
+        include_once $path . 'RuntimeTests.php';
209
+        include_once $path . 'KeyProtectedByPassword.php';
210
+        include_once $path . 'Core.php';
211
+    }
212 212
 
213 213
     $key = \Defuse\Crypto\Key::createNewRandomKey();
214 214
     $key = $key->saveToAsciiSafeString();
@@ -233,21 +233,21 @@  discard block
 block discarded – undo
233 233
 
234 234
     // Check if class already exists
235 235
     if (!class_exists('Defuse\Crypto\Crypto', false)) {
236
-		include_once $path . 'Exception/CryptoException.php';
237
-		include_once $path . 'Exception/BadFormatException.php';
238
-		include_once $path . 'Exception/EnvironmentIsBrokenException.php';
239
-		include_once $path . 'Exception/IOException.php';
240
-		include_once $path . 'Exception/WrongKeyOrModifiedCiphertextException.php';
241
-		include_once $path . 'Crypto.php';
242
-		include_once $path . 'Encoding.php';
243
-		include_once $path . 'DerivedKeys.php';
244
-		include_once $path . 'Key.php';
245
-		include_once $path . 'KeyOrPassword.php';
246
-		include_once $path . 'File.php';
247
-		include_once $path . 'RuntimeTests.php';
248
-		include_once $path . 'KeyProtectedByPassword.php';
249
-		include_once $path . 'Core.php';
250
-	}
236
+        include_once $path . 'Exception/CryptoException.php';
237
+        include_once $path . 'Exception/BadFormatException.php';
238
+        include_once $path . 'Exception/EnvironmentIsBrokenException.php';
239
+        include_once $path . 'Exception/IOException.php';
240
+        include_once $path . 'Exception/WrongKeyOrModifiedCiphertextException.php';
241
+        include_once $path . 'Crypto.php';
242
+        include_once $path . 'Encoding.php';
243
+        include_once $path . 'DerivedKeys.php';
244
+        include_once $path . 'Key.php';
245
+        include_once $path . 'KeyOrPassword.php';
246
+        include_once $path . 'File.php';
247
+        include_once $path . 'RuntimeTests.php';
248
+        include_once $path . 'KeyProtectedByPassword.php';
249
+        include_once $path . 'Core.php';
250
+    }
251 251
     $protected_key = \Defuse\Crypto\KeyProtectedByPassword::createRandomPasswordProtectedKey($psk);
252 252
     return $protected_key->saveToAsciiSafeString(); // save this in user table
253 253
 }
@@ -271,21 +271,21 @@  discard block
 block discarded – undo
271 271
 
272 272
     // Check if class already exists
273 273
     if (!class_exists('Defuse\Crypto\Crypto', false)) {
274
-		include_once $path . 'Exception/CryptoException.php';
275
-		include_once $path . 'Exception/BadFormatException.php';
276
-		include_once $path . 'Exception/EnvironmentIsBrokenException.php';
277
-		include_once $path . 'Exception/IOException.php';
278
-		include_once $path . 'Exception/WrongKeyOrModifiedCiphertextException.php';
279
-		include_once $path . 'Crypto.php';
280
-		include_once $path . 'Encoding.php';
281
-		include_once $path . 'DerivedKeys.php';
282
-		include_once $path . 'Key.php';
283
-		include_once $path . 'KeyOrPassword.php';
284
-		include_once $path . 'File.php';
285
-		include_once $path . 'RuntimeTests.php';
286
-		include_once $path . 'KeyProtectedByPassword.php';
287
-		include_once $path . 'Core.php';
288
-	}
274
+        include_once $path . 'Exception/CryptoException.php';
275
+        include_once $path . 'Exception/BadFormatException.php';
276
+        include_once $path . 'Exception/EnvironmentIsBrokenException.php';
277
+        include_once $path . 'Exception/IOException.php';
278
+        include_once $path . 'Exception/WrongKeyOrModifiedCiphertextException.php';
279
+        include_once $path . 'Crypto.php';
280
+        include_once $path . 'Encoding.php';
281
+        include_once $path . 'DerivedKeys.php';
282
+        include_once $path . 'Key.php';
283
+        include_once $path . 'KeyOrPassword.php';
284
+        include_once $path . 'File.php';
285
+        include_once $path . 'RuntimeTests.php';
286
+        include_once $path . 'KeyProtectedByPassword.php';
287
+        include_once $path . 'Core.php';
288
+    }
289 289
 
290 290
     try {
291 291
         $protected_key = \Defuse\Crypto\KeyProtectedByPassword::loadFromAsciiSafeString($protected_key_encoded);
@@ -2258,7 +2258,7 @@  discard block
 block discarded – undo
2258 2258
  * <tt>exec("find ".$path." -type d -exec chmod 755 {} \;");</tt>
2259 2259
  *
2260 2260
  * @author Jeppe Toustrup (tenzer at tenzer dot dk)
2261
-  *
2261
+ *
2262 2262
  * @param string $path      An either relative or absolute path to a file or directory which should be processed.
2263 2263
  * @param int    $filePerm The permissions any found files should get.
2264 2264
  * @param int    $dirPerm  The permissions any found folder should get.
Please login to merge, or discard this patch.