├── src ├── ModeResolver │ ├── ModeResolverInterface.php │ ├── EmbedModeResolver.php │ ├── IdsModeResolver.php │ └── SideloadModeResolver.php ├── Utility.php └── Architect.php ├── composer.json ├── LICENSE ├── CONTRIBUTING.md └── README.md /src/ModeResolver/ModeResolverInterface.php: -------------------------------------------------------------------------------- 1 | map(function ($entry) { 41 | return (int) Utility::getProperty($entry, 'id'); 42 | }); 43 | // The relation is not a collection, but rather 44 | // a singular relation 45 | } elseif ($object instanceof Model) { 46 | return $object->id; 47 | } 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | ### Commit Message Format 2 | 3 | [Angular.js commit message style](https://docs.google.com/document/d/1QrDFcIiPjSLDn3EL15IJygNPiHORgU1_OOAqWjiDU5Y/edit#) 4 | 5 | Each commit message consists of a **header**, a **body** and a **footer**. The header has a special 6 | format that includes a **type**, a **scope** and a **subject**: 7 | 8 | ``` 9 | (): 10 | 11 | 12 | 13 |