Skip to content

Commit 92c9b39

Browse files
committed
php-cs-fixer on all the code Created a new DefaultSetMapper interface and class for field setting methods.
Removed face recognition logic from Media class that isn't on the roadmap. Added media clean up to end of tests. Model->ID is explicitly set as the primary field. Moved all getAll/get methods related to pulling records into the database into a new trait "Getters".
1 parent 9c2569e commit 92c9b39

14 files changed

Lines changed: 749 additions & 689 deletions

File tree

src/Controllers/MediaRequestHandler.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ public function handleUploadRequest($options = []): ResponseInterface
228228

229229
return $this->respond('uploadComplete', [
230230
'success' => (boolean)$Media
231-
,'data' => $Media
231+
,'data' => $Media,
232232
]);
233233
}
234234

@@ -255,9 +255,9 @@ public function handleMediaRequest($mediaID): ResponseInterface
255255
}
256256

257257
if (isset($_SERVER['HTTP_ACCEPT'])) {
258-
if ($_SERVER['HTTP_ACCEPT'] == 'application/json') {
259-
$this->responseBuilder = JsonBuilder::class;
260-
}
258+
if ($_SERVER['HTTP_ACCEPT'] == 'application/json') {
259+
$this->responseBuilder = JsonBuilder::class;
260+
}
261261
}
262262

263263
if ($this->responseBuilder == JsonBuilder::class) {

src/IO/Database/SQL.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ public static function getSQLType($field)
198198
case 'blob':
199199
return 'blob';
200200
case 'binary':
201-
return sprintf('binary(%s)', isset($field['length'])?$field['length']:1);
201+
return sprintf('binary(%s)', isset($field['length']) ? $field['length'] : 1);
202202

203203
case 'timestamp':
204204
return 'timestamp';

0 commit comments

Comments
 (0)