@@ -100,8 +100,8 @@ |
||
100 | 100 | $buffer .= "File Opened Since: ".sprintf($since, $time['days'], $time['hours'], $time['minutes'], $time['seconds']).PHP_EOL; |
101 | 101 | } |
102 | 102 | |
103 | - $buffer .= "Disk Size: ".round($this->diskSize/(1024*1024*1024), 3)." GB".PHP_EOL; |
|
104 | - $buffer .= "Data Size: ".round($this->dataSize/(1024*1024*1024), 3)." GB".PHP_EOL; |
|
103 | + $buffer .= "Disk Size: ".round($this->diskSize / (1024 * 1024 * 1024), 3)." GB".PHP_EOL; |
|
104 | + $buffer .= "Data Size: ".round($this->dataSize / (1024 * 1024 * 1024), 3)." GB".PHP_EOL; |
|
105 | 105 | $buffer .= "Disk Format Version: ".$this->diskFormatVersion.PHP_EOL; |
106 | 106 | |
107 | 107 | $compactRunning = ($this->compactRunning) ? 'active' : 'inactive'; |
@@ -67,29 +67,29 @@ discard block |
||
67 | 67 | */ |
68 | 68 | class UUID { |
69 | 69 | /* UUID versions */ |
70 | - const UUID_TIME = 1; /* Time based UUID */ |
|
71 | - const UUID_NAME_MD5 = 3; /* Name based (MD5) UUID */ |
|
72 | - const UUID_RANDOM = 4; /* Random UUID */ |
|
73 | - const UUID_NAME_SHA1 = 5; /* Name based (SHA1) UUID */ |
|
70 | + const UUID_TIME = 1; /* Time based UUID */ |
|
71 | + const UUID_NAME_MD5 = 3; /* Name based (MD5) UUID */ |
|
72 | + const UUID_RANDOM = 4; /* Random UUID */ |
|
73 | + const UUID_NAME_SHA1 = 5; /* Name based (SHA1) UUID */ |
|
74 | 74 | |
75 | 75 | /* UUID formats */ |
76 | 76 | const FMT_FIELD = 100; |
77 | 77 | const FMT_STRING = 101; |
78 | 78 | const FMT_BINARY = 102; |
79 | - const FMT_QWORD = 1; /* Quad-word, 128-bit (not impl.) */ |
|
80 | - const FMT_DWORD = 2; /* Double-word, 64-bit (not impl.) */ |
|
81 | - const FMT_WORD = 4; /* Word, 32-bit (not impl.) */ |
|
82 | - const FMT_SHORT = 8; /* Short (not impl.) */ |
|
83 | - const FMT_BYTE = 16; /* Byte */ |
|
84 | - const FMT_DEFAULT = 16; |
|
79 | + const FMT_QWORD = 1; /* Quad-word, 128-bit (not impl.) */ |
|
80 | + const FMT_DWORD = 2; /* Double-word, 64-bit (not impl.) */ |
|
81 | + const FMT_WORD = 4; /* Word, 32-bit (not impl.) */ |
|
82 | + const FMT_SHORT = 8; /* Short (not impl.) */ |
|
83 | + const FMT_BYTE = 16; /* Byte */ |
|
84 | + const FMT_DEFAULT = 16; |
|
85 | 85 | |
86 | 86 | /* Field UUID representation */ |
87 | 87 | static private $m_uuid_field = array( |
88 | - 'time_low' => 0, /* 32-bit */ |
|
89 | - 'time_mid' => 0, /* 16-bit */ |
|
90 | - 'time_hi' => 0, /* 16-bit */ |
|
91 | - 'clock_seq_hi' => 0, /* 8-bit */ |
|
92 | - 'clock_seq_low' => 0, /* 8-bit */ |
|
88 | + 'time_low' => 0, /* 32-bit */ |
|
89 | + 'time_mid' => 0, /* 16-bit */ |
|
90 | + 'time_hi' => 0, /* 16-bit */ |
|
91 | + 'clock_seq_hi' => 0, /* 8-bit */ |
|
92 | + 'clock_seq_low' => 0, /* 8-bit */ |
|
93 | 93 | 'node' => array() /* 48-bit */ |
94 | 94 | ); |
95 | 95 | |
@@ -284,7 +284,7 @@ discard block |
||
284 | 284 | $uuid[9] = $src['clock_seq_low']; |
285 | 285 | |
286 | 286 | for ($i = 0; $i < 6; $i++) |
287 | - $uuid[10+$i] = $src['node'][$i]; |
|
287 | + $uuid[10 + $i] = $src['node'][$i]; |
|
288 | 288 | |
289 | 289 | return ($uuid); |
290 | 290 | } |
@@ -314,7 +314,7 @@ discard block |
||
314 | 314 | $field['clock_seq_low'] = $uuid[9]; |
315 | 315 | |
316 | 316 | for ($i = 0; $i < 6; $i++) |
317 | - $field['node'][$i] = $uuid[10+$i]; |
|
317 | + $field['node'][$i] = $uuid[10 + $i]; |
|
318 | 318 | return ($field); |
319 | 319 | } |
320 | 320 | |
@@ -339,7 +339,7 @@ discard block |
||
339 | 339 | $field['clock_seq_hi'] = ($parts[3] & 0xff00) >> 8; |
340 | 340 | $field['clock_seq_low'] = $parts[3] & 0x00ff; |
341 | 341 | for ($i = 0; $i < 6; $i++) |
342 | - $field['node'][$i] = $parts[4+$i]; |
|
342 | + $field['node'][$i] = $parts[4 + $i]; |
|
343 | 343 | |
344 | 344 | return ($field); |
345 | 345 | } |
@@ -35,8 +35,8 @@ discard block |
||
35 | 35 | //!@{ |
36 | 36 | |
37 | 37 | const STD_DOC_PATH = ""; //!< Path for standard documents. |
38 | - const LOCAL_DOC_PATH = "_local/"; //!< Path for local documents. |
|
39 | - const DESIGN_DOC_PATH = "_design/"; //!< Path for design documents. |
|
38 | + const LOCAL_DOC_PATH = "_local/"; //!< Path for local documents. |
|
39 | + const DESIGN_DOC_PATH = "_design/"; //!< Path for design documents. |
|
40 | 40 | |
41 | 41 | //!@} |
42 | 42 | |
@@ -662,7 +662,7 @@ discard block |
||
662 | 662 | * @see http://docs.couchdb.org/en/latest/api/database/compact.html#db-view-cleanup |
663 | 663 | */ |
664 | 664 | public function cleanupViews($dbName) { |
665 | - $request = new Request(Request::POST_METHOD, "/".rawurlencode($this->prefix.$dbName)."/_view_cleanup"); |
|
665 | + $request = new Request(Request::POST_METHOD, "/".rawurlencode($this->prefix.$dbName)."/_view_cleanup"); |
|
666 | 666 | |
667 | 667 | // A POST method requires Content-Type header. |
668 | 668 | $request->setHeaderField(Request::CONTENT_TYPE_HF, "application/json"); |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | * arrays. |
55 | 55 | * @return array An array of rows. |
56 | 56 | */ |
57 | - public function asArray() { |
|
57 | + public function asArray() { |
|
58 | 58 | return $this->result['rows']; |
59 | 59 | } |
60 | 60 | |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | * @param integer $offset The offset to retrieve. |
106 | 106 | * @return mixed Can return all value types. |
107 | 107 | */ |
108 | - public function offsetGet($offset) { |
|
108 | + public function offsetGet($offset) { |
|
109 | 109 | return $this->result['rows'][$offset]; |
110 | 110 | } |
111 | 111 |