also looking at this
Initial Progress
#2
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.
| @@ -1,79 +0,0 @@ | ||
| 1 | <?php | |
| 2 | ||
| 3 | namespace Meema\LaravelMeema\Models; | |
| 4 | ||
| 5 | use Meema\LaravelMeema\Contracts\FavoriteInterface; | |
| 6 | ||
| 7 | class 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 | } | |
| @@ -1,127 +0,0 @@ | ||
| 1 | <?php | |
| 2 | ||
| 3 | namespace Meema\LaravelMeema\Models; | |
| 4 | ||
| 5 | use Meema\LaravelMeema\Contracts\FolderInterface; | |
| 6 | ||
| 7 | class 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 | } | |
| @@ -1,163 +0,0 @@ | ||
| 1 | <?php | |
| 2 | ||
| 3 | namespace Meema\LaravelMeema\Models; | |
| 4 | ||
| 5 | use Meema\LaravelMeema\Contracts\MediaInterface; | |
| 6 | ||
| 7 | class 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 | } | |
| @@ -2,16 +2,13 @@ | ||
| 2 | 2 | |
| 3 | 3 | namespace Meema\LaravelMeema\Tests; |
| 4 | 4 | |
| 5 | use Meema\LaravelMeema\Facades\Meema; | |
| 6 | 5 | use PHPUnit\Framework\TestCase; |
| 7 | 6 | |
| 8 | 7 | class ExampleTest extends TestCase |
| 9 | 8 | { |
| 10 | 9 | /** @test */ |
| 11 | public function it_can_be_instantiated() | |
| 10 | public function true_is_true() | |
| 12 | 11 | { |
| 13 | $accessKey = Meema::getAccessKey(); | |
| 14 | ||
| 15 | dump($accessKey); | |
| 12 | $this->assertTrue(true); | |
| 16 | 13 | } |
| 17 | 14 | } |