ReviewOS

also looking at this

meemalabs/laravel-meema

Initial Progress

#2
Merged glennmichael123 wants to merge initial-progress into main
11 files +235 -34

Review threads live on the whole diff, not on one commit, so none are shown here - a thread's line means something in the branch's final form, and painting it into an intermediate step would put it on code it is not about.

.github/workflows/run-tests.ymlmodified+1-1
Changes to .github/workflows/run-tests.yml
@@ -1,6 +1,6 @@
11name: run-tests
22
3on: [push, pull_request]
3on: [pull_request]
44
55jobs:
66 test:
composer.jsonmodified+1-1
Changes to composer.json
@@ -20,7 +20,7 @@
2020 }
2121 ],
2222 "require": {
23 "php": "^7.0|^8.0",
23 "php": "^7.2.5 || ^8.0",
2424 "meema/meema-client-php": "dev-main"
2525 },
2626 "require-dev": {
src/Models/Favorite.phpdeleted+0-79
Changes to src/Models/Favorite.php
@@ -1,79 +0,0 @@
1<?php
2
3namespace Meema\LaravelMeema\Models;
4
5use Meema\LaravelMeema\Contracts\FavoriteInterface;
6
7class Favorite implements FavoriteInterface
8{
9 /**
10 * List all favorites.
11 *
12 * @return array
13 */
14 public function all(): array
15 {
16 return [];
17 }
18
19 /**
20 * Get specific favorites.
21 *
22 * @param array $ids
23 *
24 * @return array
25 */
26 public function get($ids = null): array
27 {
28 return [];
29 }
30
31 /**
32 * Get specific favorites.
33 *
34 * @param int $id
35 *
36 * @return array
37 */
38 public function find($id): array
39 {
40 return [];
41 }
42
43 /**
44 * Create favorite.
45 *
46 * @param array $data
47 *
48 * @return array
49 */
50 public function create($data): array
51 {
52 return [];
53 }
54
55 /**
56 * Update favorite.
57 *
58 * @param int $id
59 * @param string $data
60 *
61 * @return array
62 */
63 public function update($id, $data): array
64 {
65 return [];
66 }
67
68 /**
69 * Delete a favorite.
70 *
71 * @param array $ids
72 *
73 * @return null
74 */
75 public function delete($ids)
76 {
77
78 }
79}
src/Models/Folder.phpdeleted+0-127
Changes to src/Models/Folder.php
@@ -1,127 +0,0 @@
1<?php
2
3namespace Meema\LaravelMeema\Models;
4
5use Meema\LaravelMeema\Contracts\FolderInterface;
6
7class Folder implements FolderInterface
8{
9 /**
10 * List all folders.
11 *
12 * @return array
13 */
14 public static function all(): array
15 {
16 return [];
17 }
18
19 /**
20 * Get specific folders.
21 *
22 * @param int $id
23 *
24 * @return array
25 */
26 public static function get($id = null): array
27 {
28 return [];
29 }
30
31 /**
32 * Search for specific folders.
33 *
34 * @param string $query
35 *
36 * @return array
37 */
38 public static function search($query): array
39 {
40 return [];
41 }
42
43 /**
44 * Get specific folders.
45 *
46 * @param int $id
47 *
48 * @return Response
49 */
50 public static function find($id): array
51 {
52 return [];
53 }
54
55 /**
56 * Create folder.
57 *
58 * @param string $name
59 *
60 * @return array
61 */
62 public static function create($name): array
63 {
64 return [];
65 }
66
67 /**
68 * Update folder.
69 *
70 * @param int $id
71 * @param string $name
72 *
73 * @return array
74 */
75 public static function update($id, $name): array
76 {
77 return [];
78 }
79
80 /**
81 * Delete a folder.
82 *
83 * @param array $ids
84 *
85 * @return null
86 */
87 public static function delete($ids)
88 {
89
90 }
91
92 /**
93 * Archive a folder.
94 *
95 * @param array $ids
96 *
97 * @return array
98 */
99 public static function archive($ids): array
100 {
101 return [];
102 }
103
104 /**
105 * Unarchive a folder.
106 *
107 * @param array $ids
108 *
109 * @return array
110 */
111 public static function unarchive($ids): array
112 {
113 return [];
114 }
115
116 /**
117 * Duplicate a folder.
118 *
119 * @param array $ids
120 *
121 * @return array
122 */
123 public static function duplicate($ids): array
124 {
125 return [];
126 }
127}
src/Models/Media.phpdeleted+0-163
Changes to src/Models/Media.php
@@ -1,163 +0,0 @@
1<?php
2
3namespace Meema\LaravelMeema\Models;
4
5use Meema\LaravelMeema\Contracts\MediaInterface;
6
7class Media implements MediaInterface
8{
9 /**
10 * List all media.
11 *
12 * @return array
13 */
14 public static function all(): array
15 {
16 return [];
17 }
18
19 /**
20 * Get specific media.
21 *
22 * @param array $ids
23 *
24 * @return array
25 */
26 public static function get($ids = null): array
27 {
28 return [];
29 }
30
31 /**
32 * Search for specific media.
33 *
34 * @param string $query
35 *
36 * @return array
37 */
38 public static function search($query): array
39 {
40 return [];
41 }
42
43 /**
44 * Get specific media.
45 *
46 * @param int $id
47 *
48 * @return array
49 */
50 public static function find($id): array
51 {
52 return [];
53 }
54
55 /**
56 * Create media.
57 *
58 * @param string $name
59 *
60 * @return array
61 */
62 public static function create($name): array
63 {
64 return [];
65 }
66
67 /**
68 * Update media.
69 *
70 * @param int $id
71 * @param string $name
72 *
73 * @return array
74 */
75 public static function update($id, $name): array
76 {
77 return [];
78 }
79
80 /**
81 * Delete a media.
82 *
83 * @param array $ids
84 *
85 * @return null
86 */
87 public static function delete($ids)
88 {
89
90 }
91
92 /**
93 * Upload a media file.
94 *
95 * @param string $path
96 *
97 * @return array
98 */
99 public static function upload($path): array
100 {
101 return [];
102 }
103
104 /**
105 * Archive a media.
106 *
107 * @param array $ids
108 *
109 * @return array
110 */
111 public static function archive($ids): array
112 {
113 return [];
114 }
115
116 /**
117 * Unarchive a media.
118 *
119 * @param array $ids
120 *
121 * @return array
122 */
123 public static function unarchive($ids): array
124 {
125 return [];
126 }
127
128 /**
129 * Make a media private.
130 *
131 * @param array $ids
132 *
133 * @return array
134 */
135 public static function makePrivate($ids): array
136 {
137 return [];
138 }
139
140 /**
141 * Make a media public.
142 *
143 * @param array $ids
144 *
145 * @return array
146 */
147 public static function makePublic($ids): array
148 {
149 return [];
150 }
151
152 /**
153 * Duplicate a media.
154 *
155 * @param array $ids
156 *
157 * @return array
158 */
159 public static function duplicate($ids): array
160 {
161 return [];
162 }
163}
tests/ExampleTest.phpmodified+2-5
Changes to tests/ExampleTest.php
@@ -2,16 +2,13 @@
22
33namespace Meema\LaravelMeema\Tests;
44
5use Meema\LaravelMeema\Facades\Meema;
65use PHPUnit\Framework\TestCase;
76
87class ExampleTest extends TestCase
98{
109 /** @test */
11 public function it_can_be_instantiated()
10 public function true_is_true()
1211 {
13 $accessKey = Meema::getAccessKey();
14
15 dump($accessKey);
12 $this->assertTrue(true);
1613 }
1714}