mirror of
https://github.com/jawira/emoji-catalog.git
synced 2023-08-10 21:12:49 +03:00
Remove leading whitespaces #15
This commit is contained in:
parent
b03d0252d3
commit
bff303bfa6
BIN
build.png
BIN
build.png
Binary file not shown.
Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 62 KiB |
22
build.xml
22
build.xml
@ -15,9 +15,9 @@
|
||||
|
||||
<target name="setup" description="Prepare project for dev" depends="composer:install,visualizer"/>
|
||||
<target name="qa" description="Quality assurance" depends="composer:validate,php:lint"/>
|
||||
<target name="update" description="Update class and catalog" depends="emoji:update, catalog:update"/>
|
||||
<target name="update" description="Update class and catalog" depends="emoji:update,catalog:update,emoji:count"/>
|
||||
<target name="emoji:update" description="Update Emoji.php"
|
||||
depends="emoji-list:download, emoji:parse, emoji:build, emoji:clean"/>
|
||||
depends="emoji-list:download,emoji:parse,emoji:build"/>
|
||||
<target name="catalog:update" description="Update catalog.md"
|
||||
depends="emoji-list:download,catalog:parse,catalog:build"/>
|
||||
|
||||
@ -36,6 +36,7 @@
|
||||
|
||||
<target name="composer:install" description="Install for dev">
|
||||
<composer command="install">
|
||||
<arg value="--quiet"/>
|
||||
<arg value="--no-suggest"/>
|
||||
<arg value="--no-interaction"/>
|
||||
<arg value="--profile"/>
|
||||
@ -66,9 +67,9 @@
|
||||
</target>
|
||||
|
||||
<target name="emoji-list:download">
|
||||
<mkdir dir="resources/unicode/"/>
|
||||
<httpget dir="resources/unicode/" url="https://unicode.org/emoji/charts/full-emoji-list.html"/>
|
||||
<httpget dir="resources/unicode/" url="https://unicode.org/emoji/charts/full-emoji-modifiers.html"/>
|
||||
<mkdir dir="resources/unicode"/>
|
||||
<httpget dir="resources/unicode" url="https://unicode.org/emoji/charts/full-emoji-list.html"/>
|
||||
<httpget dir="resources/unicode" url="https://unicode.org/emoji/charts/full-emoji-modifiers.html"/>
|
||||
</target>
|
||||
|
||||
<target name="emoji:parse">
|
||||
@ -97,17 +98,6 @@
|
||||
<append file="resources/templates/emoji-footer.php.dist" destFile="src/Emoji.php"/>
|
||||
</target>
|
||||
|
||||
<target name="emoji:clean" description="Reduce Emoji.php size">
|
||||
<reflexive file="src/Emoji.php">
|
||||
<filterchain>
|
||||
<stripphpcomments/>
|
||||
<linecontainsregexp>
|
||||
<regexp pattern="\S"/>
|
||||
</linecontainsregexp>
|
||||
</filterchain>
|
||||
</reflexive>
|
||||
</target>
|
||||
|
||||
<target name="catalog:parse">
|
||||
<mkdir dir="resources/output"/>
|
||||
<delete file="resources/output/catalog-1.txt"/>
|
||||
|
@ -6,20 +6,11 @@
|
||||
|
||||
<xsl:template match="/">
|
||||
<xsl:for-each select="//table//tr[./td//img]">
|
||||
<xsl:text> /** </xsl:text>
|
||||
<xsl:text> * </xsl:text>
|
||||
<xsl:call-template name="get-name"/>
|
||||
<xsl:text> </xsl:text>
|
||||
<xsl:text> * </xsl:text>
|
||||
<xsl:text> * Code point(s): </xsl:text>
|
||||
<xsl:call-template name="get-code"/>
|
||||
<xsl:text> </xsl:text>
|
||||
<xsl:text> */ </xsl:text>
|
||||
<xsl:text>const </xsl:text>
|
||||
<xsl:call-template name="get-constant-name"/>
|
||||
<xsl:text> = "</xsl:text>
|
||||
<xsl:call-template name="get-emoji"/>
|
||||
<xsl:text>"; </xsl:text>
|
||||
<xsl:text>"; </xsl:text>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
|
||||
|
@ -1,5 +1,15 @@
|
||||
<?php
|
||||
<?php /** @noinspection PhpUnused */
|
||||
|
||||
namespace Jawira\EmojiCatalog;
|
||||
|
||||
/**
|
||||
* Class Emoji
|
||||
*
|
||||
* Get access to all emojis as class constants.
|
||||
*
|
||||
* @package Jawira\EmojiCatalog
|
||||
* @author Jawira Portugal <dev@tugal.be>
|
||||
*/
|
||||
class Emoji
|
||||
{
|
||||
const GRINNING_FACE = "😀";
|
||||
|
Loading…
Reference in New Issue
Block a user