patch.txt 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  1. diff --git a/lib/Configuration.php b/lib/Configuration.php
  2. index 9249a744ab32b422c313e5b71e32091d978f9969..62edd6760a7ab78e2e0a17dcf068e44c280f2572 100644
  3. --- a/lib/Configuration.php
  4. +++ b/lib/Configuration.php
  5. @@ -10,7 +10,7 @@
  6. * @version 1.0
  7. */
  8. -namespace PrivateBin;;
  9. +namespace PrivateBin;
  10. use Exception;
  11. use PDO;
  12. diff --git a/lib/Data/AbstractData.php b/lib/Data/AbstractData.php
  13. index 95b403938fac4bdcf0f5e5b6a8fa7f1c842c84df..c5d336797b8b1884e877d8db71c108318bbd71d9 100644
  14. --- a/lib/Data/AbstractData.php
  15. +++ b/lib/Data/AbstractData.php
  16. @@ -10,7 +10,9 @@
  17. * @version 1.0
  18. */
  19. -namespace PrivateBin;\Data;
  20. +namespace PrivateBin;
  21. +
  22. +\Data;
  23. use stdClass;
  24. diff --git a/lib/Data/Database.php b/lib/Data/Database.php
  25. index bea75f2785245664f81fd0a3b2234397cc69b000..fbce6637535161892689ae18007fa2a98994dddf 100644
  26. --- a/lib/Data/Database.php
  27. +++ b/lib/Data/Database.php
  28. @@ -10,12 +10,13 @@
  29. * @version 1.0
  30. */
  31. -namespace PrivateBin;\Data;
  32. +namespace PrivateBin;
  33. +
  34. +\Data;
  35. use Exception;
  36. use PDO;
  37. use PDOException;
  38. -use PrivateBin\PrivateBin;
  39. use stdClass;
  40. /**
  41. diff --git a/lib/Data/Filesystem.php b/lib/Data/Filesystem.php
  42. index 1a371e89f8686f4bd19fcb3b14ce1b0e228a07d0..456516fe978d59160436c0d90aed442e041e4b96 100644
  43. --- a/lib/Data/Filesystem.php
  44. +++ b/lib/Data/Filesystem.php
  45. @@ -10,9 +10,10 @@
  46. * @version 1.0
  47. */
  48. -namespace PrivateBin;\Data;
  49. +namespace PrivateBin;
  50. +
  51. +\Data;
  52. -use PrivateBin\Json;
  53. use PrivateBin\Model\Paste;
  54. /**
  55. diff --git a/lib/Filter.php b/lib/Filter.php
  56. index 141c3ce4ff3c6f48e8e87bb44aecfa1a5635c131..2ecc3b5896c516c7e36ea55fe6fdb0d664baef3f 100644
  57. --- a/lib/Filter.php
  58. +++ b/lib/Filter.php
  59. @@ -10,7 +10,7 @@
  60. * @version 1.0
  61. */
  62. -namespace PrivateBin;;
  63. +namespace PrivateBin;
  64. use Exception;
  65. diff --git a/lib/I18n.php b/lib/I18n.php
  66. index 60dbdd4e377fa0ac8d5ff64442e726cbbbd897fc..df9f734b35fbc209bc81d3706e6b3f2877ae1d0b 100644
  67. --- a/lib/I18n.php
  68. +++ b/lib/I18n.php
  69. @@ -10,7 +10,7 @@
  70. * @version 1.0
  71. */
  72. -namespace PrivateBin;;
  73. +namespace PrivateBin;
  74. /**
  75. * I18n
  76. diff --git a/lib/Json.php b/lib/Json.php
  77. index ec27e6e31aac7850d3e9f141e1a9f3a39acf2222..2f26956562f228e10a710b2526bd44ed72271d82 100644
  78. --- a/lib/Json.php
  79. +++ b/lib/Json.php
  80. @@ -10,7 +10,7 @@
  81. * @version 1.0
  82. */
  83. -namespace PrivateBin;;
  84. +namespace PrivateBin;
  85. use Exception;
  86. diff --git a/lib/Model.php b/lib/Model.php
  87. index e53da6bcd65e1ec5bf7e547bee23846a9073d54e..6dbe0214074245e81a9863cae70ef9d0aab7cbae 100644
  88. --- a/lib/Model.php
  89. +++ b/lib/Model.php
  90. @@ -10,7 +10,7 @@
  91. * @version 1.0
  92. */
  93. -namespace PrivateBin;;
  94. +namespace PrivateBin;
  95. use PrivateBin\Model\Paste;
  96. use PrivateBin\Persistence\PurgeLimiter;
  97. diff --git a/lib/Model/AbstractModel.php b/lib/Model/AbstractModel.php
  98. index 38cedfd4d7eaa648d778535314bc9268ef36299e..6e1a98a9b7ce217eaf343cece3a61efcd0033cf8 100644
  99. --- a/lib/Model/AbstractModel.php
  100. +++ b/lib/Model/AbstractModel.php
  101. @@ -10,12 +10,12 @@
  102. * @version 1.0
  103. */
  104. -namespace PrivateBin;\Model;
  105. +namespace PrivateBin;
  106. +
  107. +\Model;
  108. use Exception;
  109. -use PrivateBin\Configuration;
  110. use PrivateBin\Data\AbstractData;
  111. -use PrivateBin\Sjcl;
  112. use stdClass;
  113. /**
  114. diff --git a/lib/Model/Comment.php b/lib/Model/Comment.php
  115. index 39d78733aa788f16489a0956cc0fb1f55d384238..dd3ce305ab1312b8be04c43306074f5151de50ad 100644
  116. --- a/lib/Model/Comment.php
  117. +++ b/lib/Model/Comment.php
  118. @@ -10,13 +10,13 @@
  119. * @version 1.0
  120. */
  121. -namespace PrivateBin;\Model;
  122. +namespace PrivateBin;
  123. +
  124. +\Model;
  125. use Exception;
  126. use Identicon\Identicon;
  127. use PrivateBin\Persistence\TrafficLimiter;
  128. -use PrivateBin\Sjcl;
  129. -use PrivateBin\Vizhash16x16;
  130. /**
  131. * Comment
  132. diff --git a/lib/Model/Paste.php b/lib/Model/Paste.php
  133. index 0ee3232d639ba189295b990f79e7909c7baf01b7..4e55b85c6bc4318039ab9d5d9c6a5fb08627d2e7 100644
  134. --- a/lib/Model/Paste.php
  135. +++ b/lib/Model/Paste.php
  136. @@ -10,12 +10,12 @@
  137. * @version 1.0
  138. */
  139. -namespace PrivateBin;\Model;
  140. +namespace PrivateBin;
  141. +
  142. +\Model;
  143. use Exception;
  144. use PrivateBin\Persistence\ServerSalt;
  145. -use PrivateBin\PrivateBin;
  146. -use PrivateBin\Sjcl;
  147. /**
  148. * Paste
  149. diff --git a/lib/Persistence/AbstractPersistence.php b/lib/Persistence/AbstractPersistence.php
  150. index 7ec98caadeddbbadd61d2eda12f59a67dfd5e238..d5bebdda341e6abf77941f63fe399fc1e3917558 100644
  151. --- a/lib/Persistence/AbstractPersistence.php
  152. +++ b/lib/Persistence/AbstractPersistence.php
  153. @@ -10,7 +10,9 @@
  154. * @version 1.0
  155. */
  156. -namespace PrivateBin;\Persistence;
  157. +namespace PrivateBin;
  158. +
  159. +\Persistence;
  160. use Exception;
  161. diff --git a/lib/Persistence/PurgeLimiter.php b/lib/Persistence/PurgeLimiter.php
  162. index 90bc17ceb17fcb4a1ae5eb77668fe8461f55afc9..9c4f6ffcb7bf51a79ca0910f50343674f3074a5e 100644
  163. --- a/lib/Persistence/PurgeLimiter.php
  164. +++ b/lib/Persistence/PurgeLimiter.php
  165. @@ -10,9 +10,9 @@
  166. * @version 1.0
  167. */
  168. -namespace PrivateBin;\Persistence;
  169. +namespace PrivateBin;
  170. -use PrivateBin\Configuration;
  171. +\Persistence;
  172. /**
  173. * PurgeLimiter
  174. diff --git a/lib/Persistence/ServerSalt.php b/lib/Persistence/ServerSalt.php
  175. index 734d037a9b0a15c0bc0c2ad1438b38f8513eed43..1248555245ae107708b7e2a5d935689d120e4b2c 100644
  176. --- a/lib/Persistence/ServerSalt.php
  177. +++ b/lib/Persistence/ServerSalt.php
  178. @@ -10,7 +10,9 @@
  179. * @version 1.0
  180. */
  181. -namespace PrivateBin;\Persistence;
  182. +namespace PrivateBin;
  183. +
  184. +\Persistence;
  185. use Exception;
  186. diff --git a/lib/Persistence/TrafficLimiter.php b/lib/Persistence/TrafficLimiter.php
  187. index e752a0c9c4a8d89da0d25e068f526d8a1d815860..7d7fd0914f291df8da32af0eed2d56563399aef8 100644
  188. --- a/lib/Persistence/TrafficLimiter.php
  189. +++ b/lib/Persistence/TrafficLimiter.php
  190. @@ -10,9 +10,9 @@
  191. * @version 1.0
  192. */
  193. -namespace PrivateBin;\Persistence;
  194. +namespace PrivateBin;
  195. -use PrivateBin\Configuration;
  196. +\Persistence;
  197. /**
  198. * TrafficLimiter
  199. diff --git a/lib/PrivateBin.php b/lib/PrivateBin.php
  200. index 54c296a25823db32d62898f1b29de01f995769e8..29d21a9158125617ce80a87e49b94e34b88cd318 100644
  201. --- a/lib/PrivateBin.php
  202. +++ b/lib/PrivateBin.php
  203. @@ -10,7 +10,7 @@
  204. * @version 1.0
  205. */
  206. -namespace PrivateBin;;
  207. +namespace PrivateBin;
  208. use Exception;
  209. use PrivateBin\Persistence\ServerSalt;
  210. diff --git a/lib/Request.php b/lib/Request.php
  211. index 143b6047ba499a8b4a0971436cc5c39b85f8010f..03cd100ecdc33b26b49634608a2131ce808012ac 100644
  212. --- a/lib/Request.php
  213. +++ b/lib/Request.php
  214. @@ -10,7 +10,7 @@
  215. * @version 1.0
  216. */
  217. -namespace PrivateBin;;
  218. +namespace PrivateBin;
  219. /**
  220. * Request
  221. diff --git a/lib/Sjcl.php b/lib/Sjcl.php
  222. index 5ed16fc8adb8704bdf49c66d6157a676bdc17bd5..72be729476960d0db86814eb57827cd0c508e935 100644
  223. --- a/lib/Sjcl.php
  224. +++ b/lib/Sjcl.php
  225. @@ -10,7 +10,7 @@
  226. * @version 1.0
  227. */
  228. -namespace PrivateBin;;
  229. +namespace PrivateBin;
  230. /**
  231. * Sjcl
  232. diff --git a/lib/View.php b/lib/View.php
  233. index 6f8fdb74b8ccfc62a0a724d5165d30e98bcbb34c..45d7b3a0b17ac2117806cd4343b5211772f3df23 100644
  234. --- a/lib/View.php
  235. +++ b/lib/View.php
  236. @@ -10,7 +10,7 @@
  237. * @version 1.0
  238. */
  239. -namespace PrivateBin;;
  240. +namespace PrivateBin;
  241. use Exception;
  242. diff --git a/lib/Vizhash16x16.php b/lib/Vizhash16x16.php
  243. index 282dac736d32837c613d2d473e6d0b19662e5e01..be648f28d85c46adff32a69cd984532d0987ded6 100644
  244. --- a/lib/Vizhash16x16.php
  245. +++ b/lib/Vizhash16x16.php
  246. @@ -11,7 +11,7 @@
  247. * @version 0.0.5 beta PrivateBin 1.0
  248. */
  249. -namespace PrivateBin;;
  250. +namespace PrivateBin;
  251. /**
  252. * Vizhash16x16